:root {
    --sunset-50: #fff7ed;
    --sunset-100: #ffedd5;
    --sunset-400: #fb923c;
    --sunset-500: #f97316;
    --sunset-600: #ea580c;
    --twilight-500: #8b5cf6;
    --twilight-700: #6d28d9;
    --golden-50: #fffbeb;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-soft: 0 12px 32px rgba(17, 24, 39, 0.10);
    --shadow-strong: 0 24px 70px rgba(17, 24, 39, 0.20);
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--sunset-50) 0%, #ffffff 34%, var(--gray-50) 100%);
    color: var(--gray-900);
    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: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.90);
    box-shadow: 0 6px 24px rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

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

.brand-text strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.brand-text small {
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
}

.nav-link {
    padding: 8px 0;
    transition: color 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid var(--gray-200);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav-link {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 600;
}

.mobile-nav-link.is-active,
.mobile-nav-link:hover {
    color: var(--sunset-600);
    background: var(--sunset-50);
}

.hero {
    padding: 22px 0 0;
}

.hero-stage {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border-radius: 0 0 36px 36px;
    background: var(--gray-900);
    box-shadow: var(--shadow-strong);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.45), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.64) 48%, rgba(17, 24, 39, 0.18) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.10));
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100% - 1180px) / 2));
    bottom: 88px;
    width: min(720px, calc(100% - 64px));
    color: #ffffff;
}

.hero-kicker,
.sub-hero span,
.section-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--sunset-100);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-content h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.hero-content h2 {
    margin: 0 0 14px;
    color: var(--sunset-100);
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.1;
}

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

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

.hero-tags span,
.tag-cloud span,
.label-row span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.82);
    font-size: 12px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.compact-actions {
    margin-top: 18px;
}

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunset-500), var(--sunset-600));
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.is-active {
    width: 28px;
    background: var(--sunset-400);
}

.search-panel {
    padding: 28px 0 0;
}

.search-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: 24px;
    align-items: center;
    padding: 22px;
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.search-inner h2 {
    margin: 0 0 4px;
    font-size: 24px;
}

.search-inner p {
    margin: 0;
    color: var(--gray-600);
}

.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    outline: none;
    background: var(--gray-50);
}

.search-box input:focus {
    border-color: var(--sunset-400);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.page-section {
    padding: 70px 0;
}

.soft-bg {
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.55), rgba(255, 255, 255, 0.88));
}

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

.section-head span {
    margin-bottom: 8px;
    color: var(--sunset-600);
}

.section-head h2 {
    margin: 0 0 6px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-head p {
    max-width: 680px;
    margin: 0;
    color: var(--gray-600);
}

.section-head a {
    display: inline-flex;
    min-width: max-content;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--sunset-600);
    background: var(--sunset-50);
    font-weight: 800;
}

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

.ranking-grid {
    counter-reset: rank;
}

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--gray-100);
}

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

.movie-card:hover .poster-wrap img,
.wide-card:hover img,
.category-card:hover img {
    transform: scale(1.06);
}

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.62));
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
    font-weight: 900;
}

.card-body {
    padding: 14px;
}

.card-meta,
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--gray-500);
    font-size: 12px;
}

.card-meta span:first-child {
    color: var(--sunset-600);
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0 6px;
    font-size: 17px;
    line-height: 1.32;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.movie-card p {
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.wide-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--gray-900);
    box-shadow: var(--shadow-soft);
}

.wide-card a {
    display: block;
    position: relative;
    min-height: 310px;
}

.wide-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.wide-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.12));
    pointer-events: none;
}

.wide-card-info {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    color: #ffffff;
}

.wide-card-info h3 {
    margin: 10px 0 8px;
    font-size: 26px;
    line-height: 1.18;
}

.wide-card-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.label-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.category-card,
.category-overview-card a {
    display: grid;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.category-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 126px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card div,
.category-overview-body {
    padding: 16px;
}

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

.category-card p,
.category-overview-body p {
    margin: 0;
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.55;
}

.category-overview-card a {
    height: 100%;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 170px;
    overflow: hidden;
}

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

.category-overview-body span {
    display: inline-flex;
    margin-top: 16px;
    color: var(--sunset-600);
    font-weight: 800;
}

.intro-section {
    padding: 0 0 70px;
}

.prose-box {
    padding: 32px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.prose-box h2 {
    margin-top: 0;
}

.prose-box p {
    color: var(--gray-700);
}

.sub-hero {
    padding: 76px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.42), transparent 30%),
        linear-gradient(135deg, #111827, #3b1d0e 58%, #6d28d9);
}

.sub-hero span {
    color: var(--sunset-100);
}

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

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.rank-side,
.sticky-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-side h2,
.sticky-panel h2 {
    margin: 0 0 18px;
}

.rank-side ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-side a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: var(--gray-50);
}

.rank-side span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #ffffff;
    background: var(--sunset-500);
    font-weight: 900;
}

.rank-side strong,
.rank-side em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-side em {
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

.breadcrumb-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 14px 0;
    color: var(--gray-600);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--sunset-600);
}

.detail-shell {
    padding: 32px 0 70px;
}

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

.player-card,
.detail-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.65), rgba(17, 24, 39, 0.22));
    cursor: pointer;
}

.play-layer span {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    padding-left: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    font-size: 28px;
}

.play-layer strong {
    font-size: 18px;
}

.play-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.detail-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 22px;
    align-items: start;
}

.detail-title-row h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-title-row img {
    width: 128px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 13px;
    font-weight: 700;
}

.lead-text {
    margin: 20px 0;
    color: var(--gray-800);
    font-size: 18px;
    font-weight: 700;
}

.tag-cloud {
    margin-bottom: 24px;
}

.tag-cloud span {
    color: var(--sunset-700);
    background: var(--sunset-100);
}

.detail-card h2 {
    margin: 28px 0 10px;
    font-size: 24px;
}

.detail-card p {
    color: var(--gray-700);
}

.detail-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.detail-nav a,
.side-more {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--sunset-600);
    background: var(--sunset-50);
    font-weight: 800;
}

.side-related {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.side-related:hover {
    background: var(--gray-50);
}

.side-related img {
    width: 72px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.side-related strong,
.side-related em {
    display: block;
}

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

.side-related em {
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

.side-more {
    margin-top: 14px;
    width: 100%;
    justify-content: center;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 24px;
    border-radius: 18px;
    color: var(--gray-600);
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

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

.site-footer {
    color: rgba(255, 255, 255, 0.74);
    background: var(--gray-900);
}

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

.footer-logo {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

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

.site-footer p {
    margin: 0;
}

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

.site-footer a:hover {
    color: var(--sunset-400);
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    font-size: 14px;
}

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

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

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

    .wide-grid,
    .two-column,
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-side,
    .sticky-panel {
        position: static;
    }
}

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

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

    .hero-stage {
        min-height: 560px;
        border-radius: 0 0 24px 24px;
    }

    .hero-content {
        left: 20px;
        bottom: 70px;
        width: calc(100% - 40px);
    }

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

    .hero-arrow {
        display: none;
    }

    .search-inner,
    .section-head {
        grid-template-columns: 1fr;
        display: grid;
    }

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

    .wide-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid,
    .detail-title-row {
        grid-template-columns: 1fr;
    }

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

    .detail-title-row img {
        width: 150px;
    }

    .page-section,
    .detail-shell {
        padding: 44px 0;
    }
}
