:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fffaf5;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --orange: #f97316;
    --pink: #ec4899;
    --blue: #3b82f6;
    --shadow: 0 24px 60px rgba(249, 115, 22, 0.14);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.22), transparent 32rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 30rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 48%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(254, 215, 170, 0.8);
    backdrop-filter: blur(18px);
}

.nav-shell,
.footer-shell,
.section-shell,
.hero-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink), var(--blue));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
}

.brand-text,
.footer-logo {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    background: linear-gradient(90deg, var(--orange), var(--pink), var(--blue));
    -webkit-background-clip: text;
    color: transparent;
}

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

.nav-links a,
.mobile-menu a,
.footer-links a {
    font-weight: 700;
    color: #4b5563;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-menu a:hover,
.mobile-menu a.active,
.footer-links a:hover {
    color: var(--orange);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(251, 146, 60, 0.12);
}

.top-search input,
.mobile-search input,
.search-hero-form input,
.filter-search {
    border: 0;
    outline: none;
    color: var(--text);
    background: transparent;
}

.top-search input {
    width: 220px;
    padding: 8px 6px 8px 14px;
}

.top-search button,
.mobile-search button,
.search-hero-form button,
.primary-button,
.secondary-button,
.filter-button,
.player-overlay {
    cursor: pointer;
}

.top-search button,
.mobile-search button,
.search-hero-form button,
.primary-button {
    border: 0;
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button {
    padding: 9px 18px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
}

.primary-button:hover,
.top-search button:hover,
.mobile-search button:hover,
.search-hero-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.24);
}

.secondary-button {
    color: var(--orange);
    font-weight: 800;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    color: var(--orange);
    font-size: 1.35rem;
}

.mobile-menu {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.mobile-menu.open {
    display: grid;
    gap: 12px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: var(--surface-soft);
}

.mobile-search input {
    flex: 1;
    padding: 8px 12px;
}

.mobile-search button {
    border: 0;
    padding: 8px 16px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: clamp(620px, 80vh, 820px);
    display: flex;
    align-items: center;
    isolation: isolate;
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.84) 0%, rgba(17, 24, 39, 0.56) 45%, rgba(17, 24, 39, 0.18) 100%),
        var(--hero-image, linear-gradient(135deg, #fb923c, #ec4899));
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: background-image 0.6s ease;
    z-index: -2;
}

.hero-carousel::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, #fff7ed 0%, transparent 100%);
    z-index: -1;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 54px;
    align-items: center;
    padding: 90px 0 120px;
}

.hero-copy {
    color: #fff;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 13px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
    max-width: 900px;
}

.hero-copy p {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.8;
}

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

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.category-chip,
.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.hero-tags span {
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-panel {
    position: relative;
    min-height: 520px;
}

.hero-card-stack {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}

.hero-feature-card {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    border-radius: 34px;
    background-image: var(--poster);
    background-size: cover;
    background-position: center;
    box-shadow: 0 35px 80px rgba(17, 24, 39, 0.38);
}

.hero-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(17, 24, 39, 0.92) 100%);
}

.hero-feature-card .feature-content {
    position: absolute;
    inset: auto 24px 24px;
    color: #fff;
}

.feature-content strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.feature-content em {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

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

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

.hero-slide {
    display: none;
}

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

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

.section-shell {
    padding: 64px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.section-heading p,
.page-hero p,
.category-intro,
.detail-title p {
    color: var(--muted);
    line-height: 1.8;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: -72px;
    position: relative;
    z-index: 4;
}

.category-chip {
    min-height: 94px;
    justify-content: space-between;
    padding: 20px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(254, 215, 170, 0.85);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.movie-card:hover,
.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(249, 115, 22, 0.18);
}

.category-chip span:first-child {
    font-size: 1.05rem;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(254, 215, 170, 0.7);
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link,
.poster-bg,
.rank-cover,
.detail-cover {
    background-size: cover;
    background-position: center;
}

.poster-link {
    display: block;
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8, #bfdbfe);
}

.poster-bg {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-bg {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.play-mark,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.play-mark {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    color: #fff;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.86);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.3);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    left: 14px;
    top: 14px;
    min-width: 38px;
    height: 38px;
    color: #fff;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

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

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--orange);
    font-size: 0.83rem;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    line-height: 1.35;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-pill {
    padding: 5px 9px;
    color: #9a3412;
    font-size: 0.78rem;
    background: #ffedd5;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(254, 215, 170, 0.75);
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: #fdba74;
}

.mini-rank {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.mini-rank.soft {
    color: var(--orange);
    background: #ffedd5;
}

.rank-cover {
    width: 64px;
    height: 86px;
    border-radius: 14px;
    background-color: #ffedd5;
}

.rank-copy {
    min-width: 0;
}

.rank-copy strong,
.rank-copy em {
    display: block;
}

.rank-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy em {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.9rem;
    font-style: normal;
}

.rank-heat {
    color: var(--orange);
    font-weight: 900;
    white-space: nowrap;
}

.page-hero,
.detail-hero {
    padding: 56px 0 32px;
}

.page-hero-card,
.detail-card {
    padding: clamp(26px, 5vw, 52px);
    border: 1px solid rgba(254, 215, 170, 0.85);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

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

.category-tile {
    display: grid;
    gap: 14px;
    min-height: 210px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.94));
    border: 1px solid rgba(254, 215, 170, 0.8);
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile strong {
    font-size: 1.5rem;
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(254, 215, 170, 0.75);
}

.filter-search {
    flex: 1 1 260px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: #fff7ed;
}

.filter-button {
    border: 0;
    min-height: 42px;
    padding: 0 16px;
    color: #9a3412;
    font-weight: 800;
    border-radius: 999px;
    background: #ffedd5;
}

.filter-button.active {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.empty-state {
    display: none;
    padding: 50px;
    text-align: center;
    color: var(--muted);
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
}

.empty-state.show {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

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

.detail-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 34px;
    align-items: start;
}

.detail-title h1 {
    margin-bottom: 16px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-meta span {
    padding: 8px 12px;
    color: #9a3412;
    background: #ffedd5;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    border: 0;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.25), rgba(17, 24, 39, 0.84)),
        var(--poster);
    background-size: cover;
    background-position: center;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 24px 46px rgba(236, 72, 153, 0.32);
    font-size: 2rem;
}

.detail-cover {
    min-height: 520px;
    border-radius: 30px;
    background-color: #ffedd5;
    box-shadow: 0 28px 60px rgba(17, 24, 39, 0.12);
}

.content-block {
    margin-top: 28px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(254, 215, 170, 0.75);
}

.content-block h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

.content-block p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

.search-hero-form {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding: 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
}

.search-hero-form input {
    flex: 1;
    padding: 12px 18px;
}

.search-hero-form button {
    border: 0;
    padding: 0 24px;
}

.search-summary {
    margin-bottom: 18px;
    color: var(--muted);
}

.site-footer {
    margin-top: 50px;
    padding: 46px 0;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(254, 215, 170, 0.8);
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.footer-shell p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 16px;
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-shell,
    .detail-card,
    .rank-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 0;
    }

    .hero-card-stack {
        position: static;
    }

    .hero-feature-card {
        min-height: 380px;
    }

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

    .category-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -48px;
    }

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

@media (max-width: 760px) {
    .nav-shell,
    .footer-shell,
    .section-shell,
    .hero-shell {
        width: min(100% - 24px, 1200px);
    }

    .hero-carousel {
        min-height: 760px;
    }

    .hero-shell {
        padding: 54px 0 105px;
        gap: 26px;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .hero-feature-card {
        min-height: 320px;
        border-radius: 26px;
    }

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

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

    .rank-item {
        grid-template-columns: auto 52px minmax(0, 1fr);
    }

    .rank-heat {
        grid-column: 3;
        font-size: 0.86rem;
    }

    .detail-cover {
        min-height: 360px;
    }

    .search-hero-form {
        border-radius: 24px;
        flex-direction: column;
    }

    .search-hero-form button {
        min-height: 46px;
    }
}
