:root {
    --sand-50: #faf8f3;
    --sand-100: #f5f0e6;
    --sand-200: #e8dcc5;
    --sand-500: #b59a61;
    --sand-600: #9d8350;
    --sand-700: #7d6840;
    --desert-500: #d4a64b;
    --desert-600: #b88d39;
    --desert-700: #8f6d2d;
    --ink: #1f2937;
    --muted: #667085;
    --line: rgba(125, 104, 64, 0.16);
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 20px 45px rgba(125, 104, 64, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(212, 166, 75, 0.16), transparent 34rem),
        linear-gradient(180deg, var(--sand-50), #ffffff 32rem, var(--sand-50));
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232, 220, 197, 0.82);
    box-shadow: 0 6px 20px rgba(125, 104, 64, 0.06);
}

.header-inner {
    width: min(1220px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 800;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sand-500), var(--desert-600));
    box-shadow: 0 12px 28px rgba(181, 154, 97, 0.28);
}

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

.brand-text strong,
.footer-logo,
.section-title h2,
.filter-panel h2 {
    background: linear-gradient(90deg, var(--sand-700), var(--desert-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: -0.02em;
}

.brand-text small {
    margin-top: 4px;
    color: #7b7280;
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    font-weight: 650;
    color: #60646c;
}

.main-nav a {
    position: relative;
    padding: 12px 0;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--sand-700);
}

.main-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sand-500), var(--desert-500));
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--sand-100);
}

.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--sand-700);
    border-radius: 10px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    border-bottom: 1px solid rgba(232, 220, 197, 0.78);
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 240, 230, 0.45), transparent 28rem),
        linear-gradient(135deg, rgba(125, 104, 64, 0.98), rgba(143, 109, 45, 0.92));
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    right: -120px;
    top: -90px;
    background: rgba(212, 166, 75, 0.28);
}

.hero::after {
    width: 360px;
    height: 360px;
    left: -140px;
    bottom: -150px;
    background: rgba(255, 255, 255, 0.16);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    align-items: center;
    gap: 54px;
    padding: 64px 0;
}

.hero-copy {
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: 13px;
}

.hero h1 {
    max-width: 760px;
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-desc {
    max-width: 700px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.85;
}

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

.btn-primary,
.btn-ghost,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sand-500), var(--desert-600));
    box-shadow: 0 14px 30px rgba(181, 154, 97, 0.28);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-soft {
    color: var(--sand-700);
    background: var(--sand-100);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-soft:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(125, 104, 64, 0.18);
}

.hero-panel {
    position: relative;
}

.hero-slider {
    position: relative;
    min-height: 560px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(30, 24, 15, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(17, 24, 39, 0.86));
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 34px;
    color: #ffffff;
}

.hero-slide-content h2 {
    margin: 14px 0 10px;
    font-size: 30px;
    line-height: 1.16;
}

.hero-slide-content p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
}

.slide-dots {
    position: absolute;
    z-index: 4;
    right: 28px;
    bottom: 28px;
    display: flex;
    gap: 8px;
}

.slide-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.slide-dots button.is-active {
    width: 28px;
    background: #ffffff;
}

main,
.page-wrap {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 72px 0 0;
}

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

.section-title h1,
.section-title h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-title p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 720px;
    line-height: 1.8;
}

.category-grid,
.movie-grid,
.rank-grid,
.related-grid {
    display: grid;
    gap: 22px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 248, 243, 0.86));
    box-shadow: var(--shadow);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 118px;
    height: 118px;
    right: -36px;
    top: -34px;
    border-radius: 50%;
    background: rgba(181, 154, 97, 0.16);
}

.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    color: var(--sand-700);
    font-size: 21px;
}

.category-card p {
    position: relative;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.filter-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin: 60px 0 28px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.filter-panel h2 {
    margin: 0 0 8px;
    font-size: 27px;
}

.filter-panel p {
    margin: 0;
    color: var(--muted);
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 150px 150px;
    gap: 12px;
    min-width: min(620px, 100%);
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    background: #ffffff;
    color: var(--ink);
    outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--sand-500);
    box-shadow: 0 0 0 4px rgba(181, 154, 97, 0.13);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(125, 104, 64, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(125, 104, 64, 0.16);
}

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(31, 41, 55, 0.52));
}

.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sand-500), var(--desert-700));
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.24);
}

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

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--sand-600);
    font-size: 13px;
    font-weight: 750;
}

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--sand-700);
}

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

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

.tag-list span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--sand-100);
    color: var(--sand-700);
    font-size: 12px;
    font-weight: 700;
}

.detail-hero {
    width: min(1220px, calc(100% - 32px));
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(250, 248, 243, 0.9));
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 62px rgba(125, 104, 64, 0.18);
}

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

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

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.detail-copy p {
    color: var(--muted);
    line-height: 1.9;
    font-size: 17px;
}

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

.detail-meta span {
    padding: 9px 13px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--sand-700);
    font-weight: 750;
}

.player-section {
    width: min(1220px, calc(100% - 32px));
    margin: 46px auto 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #050505;
    box-shadow: 0 24px 64px rgba(31, 41, 55, 0.22);
}

.main-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
    cursor: pointer;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.14), rgba(5, 5, 5, 0.55));
    cursor: pointer;
}

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

.play-cover span:last-child {
    font-size: 18px;
    font-weight: 850;
}

.play-circle {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sand-500), var(--desert-600));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
    font-size: 32px;
}

.detail-content {
    width: min(1220px, calc(100% - 32px));
    margin: 42px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
}

.article-box,
.side-box {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.article-box h2,
.side-box h2 {
    margin: 0 0 16px;
    color: var(--sand-700);
    font-size: 26px;
}

.article-box p,
.side-box p {
    color: var(--muted);
    line-height: 1.92;
}

.side-links {
    display: grid;
    gap: 12px;
}

.side-links a {
    padding: 13px 14px;
    border-radius: 16px;
    background: var(--sand-50);
    border: 1px solid var(--line);
    color: var(--sand-700);
    font-weight: 750;
}

.side-links a:hover {
    background: var(--sand-100);
}

.site-footer {
    margin-top: 82px;
    padding: 46px 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
}

.footer-logo {
    display: inline-block;
    font-size: 24px;
    font-weight: 850;
    margin-bottom: 12px;
}

.footer-inner p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--sand-100);
    color: var(--sand-700);
    font-weight: 700;
}

.empty-state {
    display: none;
    padding: 34px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--muted);
    background: #ffffff;
}

@media (max-width: 1100px) {
    .main-nav {
        gap: 12px;
        font-size: 14px;
    }

    .hero-inner,
    .detail-hero,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 820px) {
    .header-inner {
        height: 68px;
    }

    .menu-button {
        display: block;
    }

    .main-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

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

    .main-nav a {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .main-nav a.is-active::after {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 44px 0;
        gap: 34px;
    }

    .hero-slider {
        min-height: 480px;
    }

    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    .brand-text small {
        display: none;
    }

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

    .hero h1 {
        font-size: 38px;
    }

    .hero-desc,
    .detail-copy p {
        font-size: 16px;
    }

    .hero-slider {
        min-height: 420px;
        border-radius: 24px;
    }

    .hero-slide-content {
        padding: 24px;
    }

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

    .detail-hero,
    .article-box,
    .side-box {
        padding: 20px;
        border-radius: 24px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
