:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --red-500: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #0f172a;
    --shadow-sm: 0 8px 22px rgba(146, 64, 14, 0.10);
    --shadow-lg: 0 22px 70px rgba(146, 64, 14, 0.22);
    --radius-xl: 22px;
    --radius-2xl: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--amber-50), var(--orange-50));
    line-height: 1.6;
}

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

img,
video {
    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: linear-gradient(135deg, var(--orange-500), var(--amber-600));
    color: var(--white);
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.22);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--white);
    font-size: 26px;
    box-shadow: var(--shadow-sm);
}

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

.brand-text strong {
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: 0.03em;
}

.brand-text em {
    color: var(--amber-100);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link,
.mobile-nav-link {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--white);
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--orange-600);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    padding: 9px 12px;
}

.mobile-nav {
    display: none;
    padding: 8px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, #fb923c, #f59e0b 45%, #eab308);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 80px 0 48px;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.22;
    background: var(--white);
}

.hero-glow-one {
    width: 360px;
    height: 360px;
    top: -120px;
    left: 10%;
}

.hero-glow-two {
    width: 420px;
    height: 420px;
    right: -100px;
    bottom: -120px;
}

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

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 52px;
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
    display: grid;
    gap: 22px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.section-kicker {
    color: var(--orange-600);
    background: #ffedd5;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero h1 span {
    display: block;
    color: #fef3c7;
    font-size: 0.58em;
    letter-spacing: 0.02em;
    margin-top: 8px;
}

.hero p {
    max-width: 680px;
    color: #fff7ed;
    font-size: 20px;
    margin: 0;
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-row,
.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-tags span,
.detail-meta span,
.card-meta span,
.pill,
.chip-cloud a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-light {
    color: var(--orange-600);
    background: var(--white);
}

.btn-dark {
    color: var(--white);
    background: var(--amber-700);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 34px;
    min-height: 460px;
    box-shadow: 0 30px 90px rgba(120, 53, 15, 0.38);
    transform: translateZ(0);
}

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

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72));
}

.hero-poster-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px;
    display: grid;
    gap: 8px;
}

.hero-poster-caption strong {
    font-size: 28px;
}

.hero-poster-caption span {
    color: var(--amber-100);
}

.hero-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

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

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

.hero-search,
.filter-box {
    position: relative;
    width: min(100%, 360px);
}

.hero-search input,
.filter-box input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 14px 18px;
    color: var(--gray-900);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
}

.filter-box.wide {
    width: min(100%, 560px);
    margin-top: 24px;
}

.hero-category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 22px 0 2px;
}

.hero-category-strip a {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.section {
    padding: 76px 0;
}

.section-soft {
    background: linear-gradient(180deg, var(--amber-50), var(--orange-50));
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading.centered {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 12px;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
    margin: 10px 0 8px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.12;
    font-weight: 900;
    color: var(--gray-900);
}

.section-heading p,
.page-hero p {
    color: var(--gray-500);
    margin: 0;
    font-size: 17px;
}

.text-link {
    color: var(--orange-600);
    font-weight: 900;
}

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

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

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

.movie-card.is-hidden,
.category-overview-card.is-hidden,
.rank-item.is-hidden {
    display: none;
}

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

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--amber-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);
}

.category-badge,
.score-badge,
.detail-poster-card span {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--orange-600);
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.score-badge {
    top: auto;
    right: auto;
    left: 12px;
    bottom: 12px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.55);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--gray-500);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    color: var(--gray-500);
    font-size: 13px;
}

.card-meta span {
    color: var(--gray-500);
    background: var(--gray-100);
}

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

.category-tile,
.category-overview-card,
.content-card,
.player-card {
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.category-tile {
    min-height: 180px;
    display: grid;
    gap: 10px;
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-tile span {
    font-size: 34px;
}

.category-tile strong {
    font-size: 22px;
}

.category-tile em {
    color: var(--gray-500);
    font-style: normal;
    font-size: 14px;
}

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

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

.rank-item {
    border-radius: 24px;
}

.rank-link {
    display: grid;
    grid-template-columns: 64px 96px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.rank-num {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--amber-600));
    font-weight: 900;
}

.rank-link img {
    width: 96px;
    height: 124px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-text h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-text p {
    margin: 0 0 10px;
    color: var(--gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
    padding: 72px 0 42px;
}

.compact-hero .container,
.category-hero-inner {
    display: grid;
    gap: 18px;
}

.category-hero-inner {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 18px;
}

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

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

.category-overview-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card img {
    width: 150px;
    height: 160px;
    border-radius: 22px;
    object-fit: cover;
}

.category-overview-card span {
    font-size: 30px;
}

.category-overview-card h2 {
    margin: 6px 0;
}

.category-overview-card p {
    color: var(--gray-500);
    margin: 0;
    font-size: 14px;
}

.detail-main {
    background: linear-gradient(180deg, var(--amber-50), var(--orange-50));
}

.detail-hero {
    padding: 64px 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--amber-700));
}

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

.detail-poster-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
}

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

.detail-copy h1 {
    color: var(--white);
    font-size: clamp(40px, 6vw, 66px);
}

.detail-one-line {
    max-width: 860px;
    color: #fff7ed;
    font-size: 20px;
}

.detail-meta span,
.pill {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
}

.tag-row {
    margin: 20px 0 26px;
}

.player-card {
    overflow: hidden;
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-stage video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-stage video {
    z-index: 1;
    background: #000;
}

.player-cover {
    z-index: 2;
    padding: 0;
    border: 0;
    cursor: pointer;
    overflow: hidden;
    background: #000;
}

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

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--orange-600);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-lg);
    font-size: 32px;
    padding-left: 6px;
}

.player-info {
    padding: 24px;
}

.player-info h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.player-info p {
    color: var(--gray-500);
    margin: 0;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.content-card {
    padding: 28px;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

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

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

.chip-cloud {
    justify-content: center;
}

.chip-cloud a {
    color: var(--orange-600);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.site-footer {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-800), #7c2d12);
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr 0.8fr;
    gap: 34px;
}

.footer-brand .brand-icon {
    color: var(--gray-900);
}

.footer-brand strong {
    font-size: 20px;
}

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

.site-footer h3 {
    margin: 0 0 14px;
}

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

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

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

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

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

    .hero-slide,
    .detail-hero-grid,
    .category-hero-inner {
        grid-template-columns: 1fr;
    }

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

    .hero-poster,
    .hero-poster img {
        min-height: 360px;
    }

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

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

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

    .header-inner {
        min-height: 64px;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

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

    .hero-inner {
        padding: 52px 0 36px;
    }

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

    .hero p,
    .detail-one-line {
        font-size: 17px;
    }

    .hero-actions,
    .hero-controls,
    .section-heading.split {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search,
    .filter-box {
        width: 100%;
    }

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

    .rank-link {
        grid-template-columns: 48px 82px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-num {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .rank-link img {
        width: 82px;
        height: 106px;
    }

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

    .category-overview-card img {
        width: 110px;
        height: 124px;
    }

    .detail-hero {
        padding: 42px 0;
    }

    .detail-poster-card {
        max-width: 280px;
        margin: 0 auto;
    }

    .section {
        padding: 52px 0;
    }
}
