:root {
    --canyon-900: #2f211a;
    --canyon-850: #3f2d23;
    --canyon-800: #5a4032;
    --canyon-700: #74513b;
    --canyon-600: #94643f;
    --canyon-500: #b8895a;
    --canyon-200: #e8dbc8;
    --earth-900: #332a24;
    --earth-800: #56483c;
    --earth-700: #655545;
    --earth-600: #7a6752;
    --sand-100: #faf7f0;
    --sand-50: #fffaf0;
    --gold-600: #f09200;
    --gold-500: #ffb41e;
    --gold-400: #ffc94a;
    --gold-300: #ffdf8f;
    --forest-700: #3d4d40;
    --forest-600: #4a5e4d;
    --white-soft: rgba(255, 255, 255, 0.88);
    --shadow-canyon: 0 4px 18px rgba(89, 58, 36, 0.12);
    --shadow-canyon-lg: 0 18px 50px rgba(89, 58, 36, 0.18);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f7efe2 0%, #ffffff 45%, #fbf3df 100%);
    color: var(--canyon-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--canyon-800), var(--earth-800));
    color: #ffffff;
    box-shadow: var(--shadow-canyon-lg);
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: #351f11;
    box-shadow: 0 10px 30px rgba(240, 146, 0, 0.28);
}

.brand-name {
    font-size: 1.28rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
    font-size: 0.95rem;
}

.desktop-nav a,
.mobile-panel a {
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--gold-300);
}

.header-search {
    display: flex;
    align-items: center;
    min-width: 260px;
    max-width: 330px;
    flex: 1;
}

.search-box {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
    font-size: 0.94rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.64);
}

.search-box button,
.nav-toggle {
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.search-box button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-box button:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--gold-300);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 0 22px;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-links {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero {
    position: relative;
    height: 600px;
    min-height: 540px;
    overflow: hidden;
    background: var(--canyon-900);
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.hero-slide.is-active .hero-image {
    transform: scale(1);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 201, 74, 0.20), transparent 26%),
        linear-gradient(90deg, rgba(24, 14, 9, 0.88) 0%, rgba(24, 14, 9, 0.58) 42%, rgba(24, 14, 9, 0.12) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.05));
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 0 70px;
    color: #ffffff;
}

.hero-panel {
    width: min(720px, 100%);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold-300);
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white-soft);
    font-size: 0.86rem;
    font-weight: 700;
}

.pill.gold {
    background: var(--gold-500);
    color: #3b220f;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: #321d0f;
    box-shadow: 0 14px 34px rgba(240, 146, 0, 0.28);
}

.btn-soft {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

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

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

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.04);
}

.hero-arrow.prev {
    left: 22px;
    transform: translateY(-50%);
}

.hero-arrow.next {
    right: 22px;
    transform: translateY(-50%);
}

.main-section {
    padding: 58px 0 0;
}

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

.section-head h2,
.page-title h1,
.detail-copy h2 {
    margin: 0;
    color: var(--canyon-900);
    line-height: 1.2;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.section-head p,
.page-title p,
.category-card p,
.detail-copy p,
.movie-card p,
.rank-card p {
    color: var(--earth-600);
    line-height: 1.75;
}

.section-link {
    color: var(--gold-600);
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(184, 137, 90, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-canyon);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 180, 30, 0.42);
    box-shadow: var(--shadow-canyon-lg);
}

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--canyon-800), var(--earth-700));
}

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

.movie-card:hover .card-poster img,
.rank-card:hover img,
.related-item:hover img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(5px);
}

.card-body {
    padding: 16px;
}

.card-meta {
    color: var(--earth-600);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--canyon-900);
    font-size: 1.06rem;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--gold-600);
}

.movie-card p {
    margin: 0;
    display: -webkit-box;
    min-height: 50px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.92rem;
}

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

.tag {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f5eee3;
    color: var(--canyon-700);
    font-size: 0.78rem;
    font-weight: 700;
}

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

.category-card {
    min-height: 168px;
    padding: 22px;
    border: 1px solid rgba(184, 137, 90, 0.20);
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #fff5df);
    box-shadow: var(--shadow-canyon);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-canyon-lg);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--canyon-900);
    font-size: 1.18rem;
}

.category-card p {
    margin: 0 0 16px;
    font-size: 0.92rem;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 78px 170px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(184, 137, 90, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-canyon);
}

.rank-number {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--canyon-800), var(--earth-800));
    color: var(--gold-300);
    font-weight: 900;
    font-size: 1.25rem;
}

.rank-card a.poster {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: var(--canyon-800);
}

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

.rank-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.rank-card p {
    margin: 0 0 10px;
}

.page-title {
    padding: 56px 0 28px;
}

.page-title h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.page-title p {
    width: min(780px, 100%);
    margin: 16px 0 0;
    font-size: 1.03rem;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 14px;
    margin: 0 0 24px;
    padding: 18px;
    border: 1px solid rgba(184, 137, 90, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-canyon);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--canyon-200);
    border-radius: 14px;
    background: #ffffff;
    color: var(--canyon-900);
    padding: 0 14px;
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(255, 201, 74, 0.22);
}

.no-result {
    display: none;
    padding: 38px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    text-align: center;
    color: var(--earth-600);
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding: 26px 0 18px;
    color: var(--earth-600);
    font-size: 0.94rem;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 30px;
    align-items: stretch;
    padding: 26px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 247, 240, 0.86));
    box-shadow: var(--shadow-canyon-lg);
}

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
    background: var(--canyon-800);
    aspect-ratio: 16 / 9;
}

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

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
}

.detail-info .lead {
    margin: 16px 0 0;
    color: var(--earth-600);
    font-size: 1.1rem;
    line-height: 1.8;
}

.player-section {
    padding-top: 42px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow-canyon-lg);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28));
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: #3b220f;
    font-size: 2.6rem;
    box-shadow: 0 18px 42px rgba(240, 146, 0, 0.32);
}

.play-overlay span:last-child {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    padding-top: 36px;
}

.detail-copy,
.side-box {
    border: 1px solid rgba(184, 137, 90, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-canyon);
}

.detail-copy {
    padding: 28px;
}

.detail-copy h2 {
    margin-top: 0;
    font-size: 1.55rem;
}

.detail-copy p {
    margin: 14px 0 0;
    font-size: 1.02rem;
}

.side-box {
    padding: 22px;
}

.side-box h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-item {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 12px;
    align-items: center;
}

.related-item .thumb {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 9;
    background: var(--canyon-800);
}

.related-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item strong {
    display: block;
    margin-bottom: 6px;
    line-height: 1.35;
}

.related-item span {
    color: var(--earth-600);
    font-size: 0.84rem;
    font-weight: 700;
}

.site-footer {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--canyon-900), var(--earth-900) 55%, var(--canyon-800));
    color: #ffffff;
}

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

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--gold-300);
}

.footer-grid p,
.footer-grid a {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0 24px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
}

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

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

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

@media (max-width: 860px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero {
        height: 560px;
        min-height: 520px;
    }

    .hero-content {
        padding-bottom: 64px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .rank-card {
        grid-template-columns: 54px 122px 1fr;
        gap: 12px;
    }

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

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

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

    .nav-wrap {
        min-height: 66px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .brand-name {
        font-size: 1.12rem;
    }

    .hero {
        height: 540px;
    }

    .hero-panel {
        width: 100%;
    }

    .hero p {
        -webkit-line-clamp: 3;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
    }

    .movie-grid,
    .category-strip,
    .filter-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 48px 1fr;
    }

    .rank-card a.poster {
        grid-column: 1 / -1;
        order: -1;
    }

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

    .detail-copy,
    .side-box {
        padding: 20px;
    }
}
