:root {
    --earth-950: #302720;
    --earth-900: #504035;
    --earth-800: #665143;
    --earth-700: #806d5d;
    --earth-600: #967f6e;
    --earth-200: #dbd2c9;
    --earth-100: #ede9e4;
    --earth-50: #f7f6f4;
    --sand-50: #fdfbf7;
    --sand-100: #f8f4ea;
    --sand-200: #f0e7d3;
    --sand-300: #e6d5b3;
    --sand-600: #b8904d;
    --desert-500: #e88c45;
    --desert-600: #d66f2e;
    --desert-700: #b35a26;
    --dune-900: #3f332b;
    --white: #ffffff;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-deep: 0 18px 60px rgba(48, 39, 32, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--earth-900);
    background: linear-gradient(180deg, var(--sand-50), #ffffff 42%, var(--earth-50));
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

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: rgba(253, 251, 247, 0.9);
    border-bottom: 1px solid rgba(219, 210, 201, 0.82);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--white);
    background: linear-gradient(135deg, var(--desert-600), var(--sand-600));
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    font-size: 15px;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong,
.footer-brand strong {
    color: var(--earth-900);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link,
.mobile-link {
    color: var(--earth-700);
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover {
    color: var(--desert-600);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    color: var(--earth-700);
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

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

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
    animation: fadeIn 0.24s ease;
}

.mobile-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
}

.mobile-link:hover {
    background: var(--sand-100);
}

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

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s 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-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.08));
}

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

.hero-copy {
    max-width: 720px;
    padding: 56px 0;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    color: var(--white);
    background: rgba(214, 111, 46, 0.92);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 28px;
    color: var(--sand-100);
    font-size: clamp(17px, 2vw, 22px);
}

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

.button-primary,
.button-secondary,
.button-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--desert-600), var(--desert-500));
    box-shadow: 0 10px 30px rgba(214, 111, 46, 0.34);
}

.button-secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.button-light {
    color: var(--earth-900);
    background: var(--white);
}

.button-primary:hover,
.button-secondary:hover,
.button-light:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-deep);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    color: var(--white);
    background: rgba(0, 0, 0, 0.32);
    border-radius: 999px;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(12px);
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.52);
    transform: translateY(-50%) scale(1.05);
}

.hero-control-prev {
    left: 24px;
}

.hero-control-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 34px;
    left: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 10px;
}

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

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

.section {
    padding: 70px 0;
}

.section-alt {
    background: linear-gradient(180deg, var(--sand-50), #ffffff);
}

.section-warm {
    background: linear-gradient(90deg, #fff7ef, var(--sand-50));
}

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

.section-head h1,
.section-head h2 {
    margin: 0;
    color: var(--earth-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.section-head p,
.page-intro p {
    margin: 10px 0 0;
    color: var(--earth-600);
    font-size: 17px;
}

.section-link {
    flex-shrink: 0;
    color: var(--desert-600);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(219, 210, 201, 0.62);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(214, 111, 46, 0.35);
    box-shadow: var(--shadow-soft);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--sand-100);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
    opacity: 0.84;
}

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    color: var(--white);
    background: rgba(214, 111, 46, 0.9);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.movie-card:hover .play-chip {
    transform: translateY(0);
    opacity: 1;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--earth-600);
    font-size: 13px;
    font-weight: 700;
}

.card-body h3 {
    margin: 8px 0 8px;
    color: var(--earth-900);
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--desert-600);
}

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

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

.tag-row span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    color: var(--desert-700);
    background: var(--desert-50, #fef9f3);
    border: 1px solid rgba(214, 111, 46, 0.16);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

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

.compact-card,
.rank-item,
.category-card {
    background: var(--white);
    border: 1px solid rgba(219, 210, 201, 0.62);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-card:hover,
.rank-item:hover,
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.compact-link,
.rank-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
}

.compact-link img,
.rank-link img {
    flex: 0 0 auto;
    width: 92px;
    height: 70px;
    object-fit: cover;
    border-radius: 14px;
}

.compact-copy,
.rank-copy {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.compact-copy strong,
.rank-copy strong {
    color: var(--earth-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-copy small,
.rank-copy small {
    color: var(--earth-600);
    font-size: 13px;
}

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

.rank-copy em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--earth-700);
    font-size: 14px;
    font-style: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.category-card a {
    display: grid;
    gap: 16px;
    min-height: 220px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, var(--sand-50));
}

.category-card h2,
.category-card h3 {
    margin: 0;
    color: var(--earth-900);
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: var(--earth-600);
}

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

.category-preview img {
    aspect-ratio: 3 / 4;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.page-hero {
    padding: 56px 0 34px;
    background: linear-gradient(135deg, var(--earth-900), var(--dune-900));
    color: var(--white);
}

.page-hero h1 {
    max-width: 850px;
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--sand-200);
    font-size: 18px;
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin: 0 0 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(219, 210, 201, 0.72);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.search-box {
    display: grid;
    gap: 8px;
    color: var(--earth-700);
    font-weight: 800;
}

.search-box input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    color: var(--earth-900);
    background: var(--sand-50);
    border: 1px solid var(--sand-300);
    border-radius: 14px;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: var(--desert-500);
    box-shadow: 0 0 0 4px rgba(232, 140, 69, 0.12);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    min-height: 38px;
    padding: 0 15px;
    color: var(--earth-700);
    background: var(--sand-100);
    border: 1px solid var(--sand-200);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
    color: var(--white);
    background: var(--desert-600);
    border-color: var(--desert-600);
}

[data-card][hidden] {
    display: none !important;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px auto;
    color: var(--earth-600);
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 38px;
    align-items: center;
    padding: 34px;
    background: linear-gradient(135deg, var(--earth-900), var(--dune-900));
    border-radius: 30px;
    color: var(--white);
    box-shadow: var(--shadow-deep);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-deep);
}

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

.detail-copy h1 {
    margin: 16px 0 14px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.08;
}

.detail-copy p {
    color: var(--sand-100);
    font-size: 18px;
}

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

.player-section,
.content-section,
.related-section {
    margin-top: 56px;
}

.player-section h2,
.content-section h2,
.related-section h2 {
    margin: 0 0 18px;
    color: var(--earth-900);
    font-size: 30px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 28px;
    box-shadow: var(--shadow-deep);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    outline: 0;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--desert-600), var(--desert-500));
    border-radius: 999px;
    box-shadow: 0 18px 46px rgba(214, 111, 46, 0.38);
    font-size: 34px;
}

.play-overlay:hover span {
    transform: scale(1.06);
}

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

.content-section {
    padding: 34px;
    background: var(--white);
    border: 1px solid rgba(219, 210, 201, 0.64);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
}

.content-section p {
    margin: 0 0 22px;
    color: var(--earth-700);
    font-size: 17px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.cta-band {
    padding: 54px 0;
    color: var(--white);
    background: linear-gradient(90deg, var(--earth-900), var(--dune-900));
    text-align: center;
}

.cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
}

.cta-band p {
    max-width: 680px;
    margin: 0 auto 26px;
    color: var(--sand-200);
    font-size: 18px;
}

.cta-actions {
    justify-content: center;
}

.site-footer {
    margin-top: 70px;
    background: linear-gradient(180deg, var(--earth-50), var(--earth-100));
    border-top: 1px solid var(--earth-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    padding: 44px 0;
}

.footer-about p,
.site-footer a,
.footer-bottom p {
    color: var(--earth-600);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--earth-900);
    font-size: 18px;
}

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

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

.footer-bottom {
    padding: 18px 0 30px;
    border-top: 1px solid rgba(219, 210, 201, 0.72);
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    .hero {
        height: 560px;
    }

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

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

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

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

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

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

    .brand-copy small {
        display: none;
    }

    .hero {
        height: 540px;
    }

    .hero-copy {
        padding: 72px 0 56px;
    }

    .hero-control {
        display: none;
    }

    .section {
        padding: 48px 0;
    }

    .section-head {
        display: grid;
    }

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

    .compact-link,
    .rank-link {
        align-items: flex-start;
        flex-direction: column;
    }

    .compact-link img,
    .rank-link img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .detail-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .content-section {
        padding: 22px;
    }

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

@media (max-width: 460px) {
    .movie-grid,
    .category-preview {
        grid-template-columns: 1fr 1fr;
    }

    .card-body {
        padding: 13px;
    }

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

    .card-body p {
        font-size: 13px;
    }
}
