:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-700: #b45309;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --dark: #160b06;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
    --shadow-strong: 0 25px 65px rgba(120, 53, 15, 0.22);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--gray-800);
    background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 40%, var(--white));
    line-height: 1.6;
}

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: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 237, 213, 0.95));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);
    box-shadow: 0 10px 25px rgba(120, 53, 15, 0.08);
}

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

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-400), var(--amber-700));
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.3);
}

.brand-text {
    display: grid;
    line-height: 1.18;
}

.brand-text strong {
    font-size: 22px;
    color: transparent;
    background: linear-gradient(90deg, var(--orange-600), var(--amber-700));
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-text small {
    color: var(--gray-600);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease;
}

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

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
}

.nav-search input {
    width: 180px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 6px 8px 12px;
}

.nav-search button,
.primary-btn,
.section-more {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
    padding: 8px 15px;
    cursor: pointer;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    font-weight: 800;
}

.primary-btn:hover,
.nav-search button:hover,
.section-more:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--orange-700);
    font-size: 28px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(120deg, var(--orange-500), var(--amber-500) 48%, var(--orange-700));
}

.hero-bg::before,
.hero-bg::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    filter: blur(2px);
    animation: pulse 5s ease-in-out infinite;
}

.hero-bg::before {
    top: 80px;
    left: 10%;
}

.hero-bg::after {
    right: 6%;
    bottom: 70px;
    animation-delay: 1s;
}

.hero-inner {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
    gap: 56px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    color: var(--amber-900);
    background: rgba(255, 251, 235, 0.72);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(44px, 7vw, 78px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 650px;
    margin: 0 0 30px;
    color: var(--amber-50);
    font-size: 20px;
}

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

.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.84);
    border-radius: 999px;
    color: var(--white);
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ghost-btn:hover {
    color: var(--orange-600);
    background: var(--white);
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 10px solid rgba(255, 255, 255, 0.28);
    border-radius: 36px;
    box-shadow: 0 40px 90px rgba(120, 53, 15, 0.35);
    transform: rotate(2deg);
}

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

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

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 38px;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: -62px;
    position: relative;
    z-index: 3;
}

.feature-card,
.category-overview-card,
.movie-card,
.category-tile,
.story-grid article {
    background: var(--white);
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-card {
    padding: 28px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.feature-card:hover,
.category-overview-card:hover,
.movie-card:hover,
.category-tile:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-strong);
}

.feature-card span {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-400), var(--amber-500));
}

.feature-card h2,
.category-overview-card strong {
    margin: 0 0 8px;
    font-size: 22px;
}

.feature-card p,
.category-overview-card p,
.category-tile span {
    margin: 0;
    color: var(--gray-600);
}

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

.soft-section {
    padding: 70px 0;
    background: linear-gradient(90deg, var(--amber-100), var(--orange-100));
}

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

.section-head h2 {
    margin: 0 0 6px;
    color: var(--gray-800);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

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

.section-more {
    display: inline-flex;
    min-width: max-content;
    padding: 11px 20px;
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    display: grid;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

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

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

.poster-meta,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(239, 68, 68, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: rgba(120, 53, 15, 0.9);
}

.movie-info {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.eyebrow {
    color: var(--orange-600);
    font-size: 13px;
    font-weight: 800;
}

.movie-info h2,
.movie-info h3 {
    margin: 0;
    color: var(--gray-800);
    font-size: 20px;
    line-height: 1.25;
}

.movie-info p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--gray-600);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-card .movie-info {
    padding: 13px;
}

.compact-card .movie-info h3,
.compact-card .movie-info h2 {
    font-size: 16px;
}

.compact-card .movie-info p {
    min-height: 42px;
    font-size: 13px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip-row span {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--amber-100);
    font-size: 12px;
    font-weight: 700;
}

.big-chips span {
    padding: 6px 12px;
    font-size: 14px;
}

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

.category-tile,
.category-overview-card {
    display: grid;
    gap: 8px;
    padding: 24px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile strong {
    font-size: 24px;
    color: var(--orange-700);
}

.category-overview-card .category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-400), var(--amber-600));
    font-weight: 900;
}

.category-overview-card em {
    color: var(--orange-600);
    font-style: normal;
    font-weight: 800;
}

.sub-hero {
    padding: 76px 0;
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 26%), linear-gradient(120deg, var(--orange-500), var(--amber-500), var(--orange-700));
}

.sub-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
}

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--amber-50);
    font-size: 19px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.toolbar input,
.toolbar select {
    min-height: 48px;
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 999px;
    background: var(--white);
    color: var(--gray-700);
    outline: 0;
}

.toolbar input {
    flex: 1 1 360px;
    padding: 0 18px;
}

.toolbar select {
    padding: 0 18px;
}

.large-toolbar input {
    min-height: 54px;
    font-size: 18px;
}

.empty-state {
    margin: 36px 0 0;
    padding: 28px;
    border-radius: var(--radius);
    color: var(--gray-600);
    background: var(--white);
    text-align: center;
    box-shadow: var(--shadow);
}

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

.breadcrumb a {
    color: var(--orange-600);
    font-weight: 700;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 28px 0 70px;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    box-shadow: var(--shadow-strong);
}

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

.detail-copy h1 {
    margin: 0 0 18px;
    color: var(--gray-800);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
}

.detail-lead {
    margin: 0 0 20px;
    color: var(--gray-700);
    font-size: 20px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--orange-100);
    font-weight: 700;
}

.player-section {
    padding-bottom: 62px;
}

.compact-head {
    margin-bottom: 18px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: var(--dark);
    box-shadow: var(--shadow-strong);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.52));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    display: inline-grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    color: var(--orange-600);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
    font-size: 36px;
    text-indent: 5px;
}

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

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-bottom: 70px;
}

.story-grid article {
    padding: 28px;
}

.story-grid h2 {
    margin: 0 0 12px;
    color: var(--orange-700);
    font-size: 26px;
}

.story-grid p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
}

.site-footer {
    color: var(--amber-50);
    background: linear-gradient(135deg, var(--amber-900), var(--orange-700));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 52px 0 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 22px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.site-footer p,
.site-footer a {
    color: var(--amber-100);
}

.site-footer p {
    margin: 0;
}

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

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

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 251, 235, 0.18);
    color: var(--amber-100);
    text-align: center;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(1.08);
    }
}

@media (max-width: 1024px) {
    .movie-grid.six,
    .movie-grid.four {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 22px;
        background: var(--white);
        box-shadow: var(--shadow-strong);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-search,
    .nav-search input {
        width: 100%;
    }

    .hero,
    .hero-inner {
        min-height: 760px;
    }

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

    .hero-copy h1 {
        font-size: 44px;
    }

    .hero-copy p {
        font-size: 17px;
    }

    .hero-poster {
        max-width: 260px;
        justify-self: center;
    }

    .feature-grid {
        margin-top: 18px;
    }

    .movie-grid.six,
    .movie-grid.four,
    .movie-grid.three,
    .feature-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid,
    .story-grid,
    .detail-hero {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 520px) {
    .brand-text strong {
        font-size: 18px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .hero-actions,
    .detail-meta,
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-btn,
    .ghost-btn,
    .section-more,
    .toolbar select {
        width: 100%;
    }

    .page-section,
    .soft-section {
        padding: 46px 0;
    }

    .play-overlay span {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
