:root {
    --canyon-50: #faf8f5;
    --canyon-100: #f5f0e8;
    --canyon-200: #e8dbc8;
    --canyon-500: #b8895a;
    --canyon-600: #a6714a;
    --canyon-700: #8a5c3f;
    --canyon-800: #704c37;
    --canyon-900: #5c3f2f;
    --earth-600: #7a6752;
    --earth-700: #655545;
    --earth-800: #56483c;
    --earth-900: #4a3e34;
    --forest-50: #f4f6f4;
    --forest-100: #e5eae5;
    --forest-600: #4a5e4d;
    --forest-700: #3d4d40;
    --gold-100: #fff7e6;
    --gold-300: #ffdf8f;
    --gold-400: #ffc94a;
    --gold-500: #ffb41e;
    --gold-600: #f09200;
    --sand-50: #fdfcfa;
    --sand-100: #faf7f0;
    --sand-200: #f5eedd;
    --text: #3f352d;
    --muted: #7a6752;
    --shadow: 0 4px 6px -1px rgba(138, 92, 63, 0.10), 0 2px 4px -1px rgba(138, 92, 63, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(138, 92, 63, 0.12), 0 4px 6px -2px rgba(138, 92, 63, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, var(--canyon-50), #ffffff 48%, var(--sand-50));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

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

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: var(--canyon-900);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    box-shadow: 0 8px 20px rgba(255, 180, 30, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 600;
}

.desktop-nav a,
.mobile-panel a,
.site-footer a {
    transition: color 0.2s ease;
}

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

.header-search {
    position: relative;
    width: min(280px, 28vw);
}

.header-search input,
.mobile-panel input,
.filter-panel input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    padding: 11px 44px 11px 18px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input::placeholder,
.mobile-panel input::placeholder {
    color: rgba(255, 255, 255, 0.66);
}

.header-search input:focus,
.mobile-panel input:focus {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 2px rgba(255, 201, 74, 0.55);
}

.header-search button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
    cursor: pointer;
    font-size: 22px;
}

.menu-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
}

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

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-panel form {
    display: flex;
    gap: 10px;
}

.mobile-panel button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--gold-500);
    padding: 0 18px;
}

.page {
    min-height: 70vh;
}

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.56) 45%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 2;
    transform: translateX(-50%);
    padding: 0 0 72px;
    color: #ffffff;
}

.hero-content h1,
.hero-content h2 {
    max-width: 780px;
    margin: 8px 0 16px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 900;
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.90);
    font-size: clamp(16px, 2vw, 22px);
}

.eyebrow {
    margin: 0;
    color: var(--gold-300);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--gold-600);
}

.hero-tags,
.hero-actions,
.card-meta,
.movie-facts div,
.tag-list,
.featured-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags span,
.tag-list a,
.featured-links a {
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    font-weight: 600;
}

.hero-tags span:first-child,
.tag-list a,
.featured-links a {
    background: var(--gold-500);
}

.hero-actions {
    margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.filter-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn,
.filter-panel button {
    color: #ffffff;
    background: var(--gold-500);
}

.primary-btn:hover,
.filter-panel button:hover {
    background: var(--gold-600);
    transform: translateY(-1px);
}

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

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-1px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.50);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.section-block {
    padding: 52px 0 0;
}

.section-block.flush-top {
    padding-top: 24px;
}

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

.section-title h2,
.section-title h3,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: var(--canyon-900);
    line-height: 1.15;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.section-title h3 {
    font-size: 24px;
}

.section-title a,
.category-card a:hover h2,
.card-link:hover h3,
.breadcrumb a:hover {
    color: var(--gold-600);
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 290px;
    gap: 24px;
    overflow-x: auto;
    padding: 2px 0 18px;
    scroll-snap-type: x mandatory;
}

.movie-grid,
.ranking-grid,
.small-grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    position: relative;
    min-width: 0;
}

.card-link {
    display: block;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--canyon-200), var(--sand-200));
}

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

.card-link:hover img {
    transform: scale(1.05);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.10));
    transition: opacity 0.25s ease;
}

.card-link:hover .card-cover::after {
    opacity: 1;
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.year-badge {
    top: 12px;
    right: 12px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    background: var(--gold-500);
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--gold-500);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.card-link:hover .card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--canyon-900);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.card-meta {
    justify-content: space-between;
    color: var(--earth-600);
    font-size: 13px;
}

.card-meta span:first-child {
    color: var(--forest-700);
    border-radius: 999px;
    background: var(--forest-100);
    padding: 5px 10px;
    font-weight: 700;
}

.category-browser {
    border-radius: 26px;
    background: linear-gradient(135deg, var(--forest-50), var(--canyon-50));
    padding: 38px;
    margin-top: 52px;
}

.category-strip + .category-strip {
    margin-top: 34px;
}

.compact-title {
    align-items: center;
    margin-bottom: 16px;
}

.compact-title p {
    margin: 5px 0 0;
    color: var(--muted);
}

.inner-page {
    padding-bottom: 48px;
}

.page-hero {
    margin-top: 34px;
    padding: 42px;
    border-radius: 28px;
}

.soft-hero {
    background: linear-gradient(135deg, var(--gold-100), #ffffff 52%, var(--canyon-100));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin-top: 8px;
    font-size: clamp(34px, 5vw, 54px);
}

.page-hero p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 18px;
}

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

.featured-links {
    margin-top: 18px;
}

.featured-links a {
    color: #ffffff;
}

.category-grid-wrap {
    padding-top: 34px;
}

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

.category-card a {
    display: block;
    height: 100%;
    border-radius: 24px;
    background: #ffffff;
    padding: 26px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--canyon-700), var(--earth-700));
    font-size: 24px;
    font-weight: 900;
}

.category-card h2 {
    margin: 18px 0 8px;
    color: var(--canyon-900);
}

.category-card p,
.category-picks {
    color: var(--muted);
}

.category-picks {
    display: -webkit-box;
    margin-top: 16px;
    overflow: hidden;
    font-size: 14px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.filter-panel {
    margin-top: 28px;
}

.filter-panel input {
    max-width: 620px;
    color: var(--text);
    border-color: var(--canyon-200);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-panel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-panel form {
    display: flex;
    width: min(680px, 100%);
    gap: 12px;
}

.search-panel input {
    max-width: none;
}

.empty-state {
    display: none;
    margin: 32px 0;
    color: var(--muted);
    text-align: center;
    font-size: 18px;
}

.empty-state.is-visible {
    display: block;
}

.detail-hero {
    padding-top: 34px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
    gap: 30px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

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

.player-shell video {
    z-index: 1;
    background: #000000;
}

.player-cover {
    z-index: 2;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
    object-fit: cover;
}

.player-cover-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--gold-500);
    transform: translate(-50%, -50%);
    box-shadow: 0 14px 35px rgba(240, 146, 0, 0.34);
    font-size: 34px;
}

.player-message {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    color: #ffffff;
    text-align: center;
    pointer-events: none;
}

.detail-info {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
    padding: 30px;
}

.detail-info h1 {
    margin-top: 8px;
    font-size: clamp(30px, 4vw, 44px);
}

.detail-line {
    margin: 14px 0 22px;
    color: var(--muted);
    font-size: 18px;
}

.movie-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.movie-facts div {
    align-items: baseline;
    justify-content: space-between;
    border-radius: 14px;
    background: var(--canyon-50);
    padding: 10px 12px;
}

.movie-facts dt {
    color: var(--muted);
    font-size: 13px;
}

.movie-facts dd {
    margin: 0;
    color: var(--canyon-900);
    font-weight: 800;
}

.tag-list a {
    color: #ffffff;
    background: var(--forest-600);
    padding: 6px 12px;
    font-size: 13px;
}

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

.detail-content article {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
    padding: 28px;
}

.detail-content h2 {
    margin: 0 0 12px;
    color: var(--canyon-900);
}

.detail-content p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

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

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

.site-footer p,
.site-footer li,
.footer-bottom {
    color: rgba(255, 255, 255, 0.70);
}

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

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.footer-logo {
    margin-bottom: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 22px 0;
    font-size: 14px;
}

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

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

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

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

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

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

    .hero-slider {
        height: 560px;
    }

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

    .hero-arrow {
        width: 42px;
        height: 42px;
    }

    .hero-prev {
        left: 12px;
    }

    .hero-next {
        right: 12px;
    }

    .section-title,
    .footer-bottom,
    .search-panel,
    .search-panel form {
        align-items: stretch;
        flex-direction: column;
    }

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

    .category-browser,
    .page-hero,
    .detail-info,
    .detail-content article {
        padding: 22px;
    }

    .movie-facts {
        grid-template-columns: 1fr;
    }
}

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

    .logo {
        font-size: 20px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero-slider {
        height: 520px;
    }

    .movie-grid,
    .ranking-grid,
    .small-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .scroll-row {
        grid-auto-columns: 82vw;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 34px;
    }
}
