:root {
    --frosting-50: #fef8f3;
    --frosting-100: #fdf0e6;
    --frosting-500: #f06c25;
    --dawn-50: #fff7ed;
    --dawn-500: #f97316;
    --cream-500: #eee5db;
    --ink: #141414;
    --ink-soft: #4b5563;
    --paper: #ffffff;
    --shadow: 0 24px 80px rgba(185, 86, 28, 0.16);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(240, 108, 37, 0.18), transparent 32rem),
        linear-gradient(135deg, #fef8f3 0%, #ffedd5 48%, #fff 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 40px rgba(31, 41, 55, 0.1);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 800;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
    box-shadow: 0 14px 30px rgba(240, 108, 37, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 3px;
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 650;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--frosting-500);
    background: rgba(255, 255, 255, 0.72);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

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

.mobile-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid rgba(238, 229, 219, 0.8);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.mobile-link {
    display: block;
    padding: 12px 14px;
}

.hero-carousel {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: #111827;
}

.hero-stage {
    position: relative;
    min-height: 720px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: center;
    gap: 52px;
    width: 100%;
    padding: 118px max(32px, calc((100vw - 1180px) / 2)) 86px;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) saturate(1.2) brightness(0.58);
    transform: scale(1.12);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18)),
        radial-gradient(circle at 72% 40%, rgba(249, 115, 22, 0.28), transparent 26rem);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fed7aa;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 780px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.9;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
}

.hero-tags span,
.detail-tags span {
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.single-line {
    margin-top: 22px;
}

.btn-primary,
.btn-ghost,
.btn-plain,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
    box-shadow: 0 16px 42px rgba(240, 108, 37, 0.34);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(12px);
}

.btn-plain {
    color: #fed7aa;
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-plain:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 34px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.35);
    aspect-ratio: 3 / 4;
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

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

.hero-dot {
    width: 34px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
}

.intro-search {
    margin-top: 46px;
    padding: 34px;
    border: 1px solid rgba(238, 229, 219, 0.88);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.intro-search h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.18;
}

.intro-search p {
    max-width: 860px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.85;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    margin-top: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--cream-500);
    border-radius: 18px;
    background: #ffffff;
}

.search-box span {
    color: var(--frosting-500);
    font-weight: 750;
}

.search-box input,
.search-box select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #111827;
}

.empty-result {
    margin: 18px 0 0;
    padding: 18px;
    text-align: center;
    color: #6b7280;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
}

.section-block {
    padding: 58px 0;
}

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

.section-heading > div {
    min-width: 0;
}

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

.section-heading p {
    margin: 10px 0 0;
    color: #6b7280;
}

.section-heading a,
.text-link {
    color: var(--frosting-500);
    white-space: nowrap;
}

.section-heading a span {
    margin-left: 6px;
}

.section-mark {
    display: inline-block;
    width: 46px;
    height: 5px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
}

.movie-grid,
.featured-grid,
.rank-grid,
.category-grid,
.overview-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.wide-rank-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

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

.movie-card,
.overview-card,
.text-panel {
    overflow: hidden;
    border: 1px solid rgba(238, 229, 219, 0.85);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 50px rgba(185, 86, 28, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.overview-card:hover,
.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(240, 108, 37, 0.36);
    box-shadow: 0 26px 70px rgba(185, 86, 28, 0.18);
}

.poster-link,
.overview-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--frosting-50), var(--dawn-50));
}

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

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

.poster-shadow {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent);
}

.play-mini {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, #111827, var(--frosting-500));
}

.card-body {
    padding: 16px;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 650;
}

.card-body h3 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.card-body p {
    min-height: 48px;
    margin: 10px 0 14px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

.tag-row span {
    padding: 5px 9px;
    color: #9a4a18;
    background: var(--frosting-100);
}

.category-card {
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 22px;
    color: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.category-card img,
.category-overlay {
    position: absolute;
    inset: 0;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08)),
        linear-gradient(135deg, rgba(240, 108, 37, 0.32), transparent);
}

.category-card strong,
.category-card em {
    position: relative;
    z-index: 2;
}

.category-card strong {
    font-size: 24px;
}

.category-card em {
    margin-top: 8px;
    font-size: 14px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
}

.rank-strip {
    background: linear-gradient(135deg, rgba(254, 248, 243, 0.7), rgba(255, 237, 213, 0.88));
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 136px 0 72px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(120, 53, 15, 0.88)),
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.38), transparent 24rem);
}

.compact-hero {
    padding-bottom: 58px;
}

.page-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 820px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
    line-height: 1.85;
}

.overview-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
}

.overview-cover {
    border-radius: 16px;
}

.overview-card h2 {
    margin: 5px 0 10px;
    font-size: 24px;
}

.overview-card p {
    color: #4b5563;
    line-height: 1.75;
}

.sample-titles {
    font-size: 14px;
}

.detail-hero {
    min-height: 640px;
    display: flex;
    align-items: center;
}

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

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.46) saturate(1.12);
    transform: scale(1.12);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.36));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

.breadcrumb,
.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.74);
    font-weight: 650;
}

.breadcrumb:hover {
    color: #fed7aa;
}

.breadcrumb-sep {
    margin: 0 8px;
}

.detail-summary-card {
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 28px;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

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

.detail-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.1;
}

.detail-copy p {
    max-width: 780px;
    margin: 20px 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.85;
}

.player-section {
    padding: 64px 0 32px;
}

.player-section h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 3vw, 36px);
}

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

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.2));
    cursor: pointer;
    z-index: 3;
}

.player-layer.is-hidden {
    display: none;
}

.play-button-large {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.player-layer strong {
    max-width: 80%;
    text-align: center;
    font-size: 22px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    padding: 32px 0;
}

.text-panel {
    padding: 28px;
}

.text-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.text-panel p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 2;
}

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

.site-footer {
    margin-top: 40px;
    padding: 46px 0 24px;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.78);
    border-top: 1px solid rgba(238, 229, 219, 0.9);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
}

.footer-inner strong {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 22px;
}

.footer-inner p {
    max-width: 680px;
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--frosting-50);
    color: #9a4a18;
    font-weight: 650;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(238, 229, 219, 0.9);
    color: #6b7280;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}


@media (max-width: 1040px) {
    .movie-grid,
    .category-grid,
    .rank-grid,
    .wide-rank-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-poster {
        max-width: 320px;
    }
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-carousel,
    .hero-stage {
        min-height: 780px;
    }

    .hero-slide {
        padding-top: 112px;
        padding-bottom: 80px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .movie-grid,
    .featured-grid,
    .rank-grid,
    .wide-rank-grid,
    .category-grid,
    .overview-grid,
    .related-grid,
    .detail-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        max-width: 280px;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}


@media (max-width: 560px) {
    .container,
    .nav-shell,
    .mobile-panel {
        width: min(100% - 22px, 1180px);
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text em {
        font-size: 11px;
    }

    .hero-carousel,
    .hero-stage {
        min-height: 740px;
    }

    .hero-slide {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-content p,
    .detail-copy p {
        font-size: 15px;
    }

    .movie-grid,
    .featured-grid,
    .rank-grid,
    .wide-rank-grid,
    .category-grid,
    .overview-grid,
    .related-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .overview-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

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

    .intro-search {
        padding: 24px;
    }
}
