:root {
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --amber-400: #fbbf24;
    --amber-300: #fcd34d;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.14);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.12);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 26%, #f3f4f6 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-600), var(--amber-400));
    box-shadow: 0 10px 32px rgba(234, 88, 12, 0.28);
}

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

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--orange-600);
    background: var(--white);
    box-shadow: 0 10px 22px rgba(127, 29, 29, 0.2);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    position: relative;
    opacity: 0.94;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--white);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 12px;
    flex-direction: column;
    font-weight: 700;
}

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

.hero {
    position: relative;
    height: 650px;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-950);
}

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

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

.hero-bg,
.detail-bg,
.category-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade,
.detail-overlay,
.category-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.88), rgba(124, 45, 18, 0.62) 45%, rgba(251, 146, 60, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 58px;
    align-items: center;
}

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

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--orange-500);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero .eyebrow,
.category-hero .section-kicker,
.detail-hero .section-kicker,
.inner-hero .section-kicker {
    color: var(--amber-300);
}

.hero h1,
.inner-hero h1,
.category-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

.hero-summary,
.inner-hero p,
.category-hero p,
.detail-one-line {
    max-width: 740px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags,
.detail-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span,
.detail-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.tag-row span {
    color: #9a3412;
    background: #ffedd5;
}

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

.primary-button,
.ghost-button,
.home-search button,
.search-page-box button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.home-search button,
.search-page-box button {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-600), var(--amber-400));
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.32);
}

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.ghost-button.dark {
    color: var(--orange-600);
    border-color: #fed7aa;
    background: #fff7ed;
}

.primary-button:hover,
.ghost-button:hover,
.home-search button:hover,
.search-page-box button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 2 / 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

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

.quick-search {
    position: relative;
    z-index: 5;
    margin-top: -44px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    align-items: center;
    gap: 28px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.search-panel h2,
.section-heading h2,
.detail-article h2,
.detail-side-card h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.home-search,
.search-page-box {
    display: flex;
    gap: 12px;
    padding: 8px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #fff7ed;
}

.home-search input,
.search-page-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: var(--gray-900);
    background: transparent;
}

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

.muted-block {
    background: rgba(255, 247, 237, 0.78);
}

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

.section-heading > a,
.text-link {
    color: var(--orange-600);
    font-weight: 900;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #fed7aa;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-600), var(--amber-400));
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

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

.card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h2 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.32;
    font-weight: 950;
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.65;
}

.compact-card h2 {
    font-size: 16px;
}

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

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

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.12), rgba(3, 7, 18, 0.86));
}

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

.category-card span,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card span {
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

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

.rank-box {
    position: sticky;
    top: 100px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.rank-list,
.ranking-page-list {
    display: grid;
    gap: 16px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 44px 78px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-md);
    background: #fff7ed;
}

.rank-number {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-600), var(--amber-400));
    font-weight: 950;
}

.rank-poster img {
    width: 78px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
}

.ranking-item h2 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 950;
}

.ranking-item p {
    margin: 0 0 10px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}

.inner-hero,
.category-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--gray-950), #9a3412 55%, var(--orange-500));
}

.inner-hero {
    padding: 96px 0 86px;
}

.category-hero {
    min-height: 420px;
}

.category-hero-content {
    position: relative;
    z-index: 2;
    padding: 94px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 800;
}

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

.category-overview-grid {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.category-cover-stack {
    position: relative;
    height: 170px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.category-cover-stack img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 16px;
}

.category-overview-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 950;
}

.category-overview-card p {
    margin: 0 0 18px;
    color: var(--gray-600);
    line-height: 1.8;
}

.ranking-page-list .ranking-item {
    grid-template-columns: 58px 110px minmax(0, 1fr);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.ranking-page-list .rank-poster img {
    width: 110px;
    height: 154px;
}

.search-page-box {
    max-width: 760px;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.95);
}

.search-page-box input {
    min-height: 46px;
}

.detail-hero {
    min-height: 720px;
}

.detail-top {
    position: relative;
    z-index: 2;
    padding: 70px 0 84px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 54px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 26px 0 32px;
}

.detail-info-grid div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.detail-info-grid span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 800;
}

.detail-info-grid strong {
    color: var(--white);
    font-size: 15px;
}

.player-section {
    padding-top: 0;
    margin-top: -78px;
    position: relative;
    z-index: 4;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--gray-950);
    box-shadow: 0 30px 72px rgba(3, 7, 18, 0.32);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--gray-950);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(249, 115, 22, 0.35), rgba(3, 7, 18, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.video-play-icon {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--orange-600);
    background: var(--white);
    font-size: 34px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
}

.video-overlay span:last-child {
    max-width: 80%;
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 950;
    text-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

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

.detail-article,
.detail-side-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.detail-article h2:not(:first-child) {
    margin-top: 30px;
}

.detail-article p {
    color: var(--gray-700);
    font-size: 17px;
    line-height: 2;
}

.detail-side-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 24px 0;
}

.detail-side-card dt {
    color: var(--gray-500);
    font-weight: 800;
}

.detail-side-card dd {
    margin: 0;
    color: var(--gray-900);
    font-weight: 800;
}

.site-footer {
    color: var(--gray-300);
    background: linear-gradient(180deg, var(--gray-900), var(--gray-950));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
    padding: 56px 0 38px;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 18px;
}

.footer-grid p,
.footer-grid a {
    color: #9ca3af;
    line-height: 1.8;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
}

.footer-grid a:hover {
    color: var(--orange-500);
}

.footer-brand {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-bottom {
    padding: 18px 0 28px;
    color: #6b7280;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1080px) {
    .featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .rank-box {
        position: static;
    }
}

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

    .menu-toggle {
        display: flex;
    }

    .hero,
    .hero-content {
        min-height: 720px;
        height: 720px;
    }

    .hero-content,
    .search-panel,
    .detail-layout,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 210px;
        margin: 0 auto;
    }

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

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

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

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

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

    .hero h1,
    .inner-hero h1,
    .category-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .hero-summary,
    .inner-hero p,
    .category-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .home-search,
    .search-page-box,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .featured-grid,
    .small-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .ranking-item,
    .ranking-page-list .ranking-item {
        grid-template-columns: 42px 76px minmax(0, 1fr);
    }

    .ranking-page-list .rank-poster img,
    .rank-poster img {
        width: 76px;
        height: 108px;
    }

    .detail-info-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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