:root {
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-500: #78716c;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-600: #16a34a;
    --green-700: #15803d;
    --amber-400: #fbbf24;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --white: #ffffff;
    --shadow-soft: 0 24px 70px rgba(41, 37, 36, 0.14);
    --shadow-card: 0 14px 35px rgba(41, 37, 36, 0.1);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--stone-50), #ffffff 34%, var(--stone-100));
    color: var(--stone-800);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

img.is-missing {
    opacity: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(231, 229, 228, 0.9);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    box-shadow: 0 12px 28px rgba(21, 128, 61, 0.28);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    color: var(--stone-700);
}

.nav-links a {
    padding: 10px 13px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--green-700);
    background: var(--green-50);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--stone-100);
    padding: 9px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: var(--stone-700);
    border-radius: 999px;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.22), transparent 28%), linear-gradient(135deg, #1c1917, #0f2017 62%, #04130b);
}

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

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

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
    filter: saturate(1.12) contrast(1.08);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: var(--white);
    padding: 78px 0 84px;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-kicker span:first-child {
    background: var(--green-600);
    border-color: var(--green-600);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0;
    max-width: 660px;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.84);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 34px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    white-space: nowrap;
}

.hero-tags span {
    padding: 7px 13px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.btn-primary,
.btn-secondary,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    min-height: 52px;
    padding: 0 26px;
    color: var(--white);
    background: linear-gradient(90deg, var(--green-600), var(--green-700));
    box-shadow: 0 18px 36px rgba(22, 163, 74, 0.28);
}

.btn-secondary {
    min-height: 52px;
    padding: 0 24px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.btn-primary:hover,
.btn-secondary:hover,
.section-more:hover {
    transform: translateY(-2px) scale(1.02);
}

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

.hero-dots button {
    width: 44px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

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

main {
    padding: 46px 0 74px;
}

.section {
    margin-bottom: 64px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: var(--stone-900);
    letter-spacing: -0.03em;
}

.section-head h2 {
    font-size: clamp(28px, 3vw, 38px);
}

.section-head p,
.page-title p {
    margin: 6px 0 0;
    color: var(--stone-500);
}

.section-more {
    min-height: 42px;
    padding: 0 17px;
    color: var(--green-700);
    background: var(--green-50);
}

.category-strip,
.search-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: 24px;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(135deg, var(--stone-900), #183323);
    box-shadow: var(--shadow-card);
}

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

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

.category-tile div {
    position: relative;
    z-index: 2;
}

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(231, 229, 228, 0.9);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 28% 22%, rgba(251, 191, 36, 0.36), transparent 30%), linear-gradient(135deg, var(--stone-900), var(--green-700));
}

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

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

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.year-badge {
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.52);
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--amber-600), var(--green-600));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--stone-500);
}

.card-meta a {
    color: var(--green-700);
    font-weight: 800;
}

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

.card-body h3 a:hover {
    color: var(--green-700);
}

.card-body p {
    margin: 0;
    color: var(--stone-500);
    font-size: 14px;
}

.heat-line {
    margin-top: 8px !important;
    color: var(--amber-700) !important;
    font-weight: 800;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    padding: 4px 9px;
    font-size: 12px;
    color: var(--green-700);
    background: var(--green-50);
}

.page-title,
.detail-title {
    margin-bottom: 28px;
}

.page-title h1 {
    font-size: clamp(34px, 4vw, 52px);
}

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

.breadcrumb a {
    color: var(--green-700);
    font-weight: 800;
}

.search-panel {
    padding: 20px;
    margin-bottom: 26px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--stone-200);
    box-shadow: var(--shadow-card);
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    background: var(--stone-50);
    color: var(--stone-800);
    font-size: 15px;
    outline: 0;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
    gap: 28px;
    align-items: start;
}

.player-card,
.info-card,
.text-card {
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--stone-200);
    box-shadow: var(--shadow-card);
}

.player-card {
    overflow: hidden;
}

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

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    cursor: pointer;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
}

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

.play-layer span {
    display: inline-flex;
    align-items: center;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green-600), var(--green-700));
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.player-caption {
    padding: 20px;
}

.player-caption h2 {
    margin: 0 0 8px;
}

.info-card {
    padding: 18px;
}

.detail-cover {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--stone-900), var(--green-700));
}

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

.detail-meta-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.detail-meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--stone-200);
    color: var(--stone-500);
}

.detail-meta-list strong {
    color: var(--stone-800);
}

.detail-title h1 {
    font-size: clamp(32px, 4vw, 56px);
}

.detail-tags span {
    padding: 7px 12px;
    color: var(--green-700);
    background: var(--green-50);
    font-weight: 700;
}

.text-card {
    padding: 26px;
    margin-top: 28px;
}

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

.text-card p {
    margin: 0 0 16px;
    color: var(--stone-700);
}

.site-footer {
    color: var(--stone-300);
    background: linear-gradient(90deg, var(--stone-900), var(--stone-800));
    padding: 48px 24px 24px;
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 36px;
}

.footer-grid strong {
    display: block;
    margin-bottom: 12px;
    color: var(--white);
    font-size: 18px;
}

.footer-grid p {
    margin: 0;
    max-width: 480px;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: var(--stone-300);
}

.footer-grid a:hover {
    color: #86efac;
}

.footer-bottom {
    max-width: 1240px;
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--stone-300);
}

@media (max-width: 960px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-soft);
    }

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

    .nav-links a {
        padding: 12px 14px;
    }

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

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

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

@media (max-width: 640px) {
    .nav-shell,
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-copy {
        padding-top: 54px;
        padding-bottom: 70px;
    }

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

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

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

    .card-body {
        padding: 13px;
    }

    .card-body h3 {
        font-size: 16px;
    }

    .card-body p,
    .card-meta {
        font-size: 12px;
    }

    .text-card {
        padding: 20px;
    }
}
