:root {
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --white: #ffffff;
    --black: #000000;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    color: var(--stone-800);
    background: linear-gradient(to bottom, var(--stone-50), var(--stone-100));
    line-height: 1.6;
}

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

img,
video {
    display: block;
    width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
    background: rgb(28 25 23 / 0.92);
    color: var(--white);
    backdrop-filter: blur(12px);
}

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

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

.logo-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 12px 28px rgb(217 119 6 / 0.32);
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--stone-200);
    font-size: 15px;
    font-weight: 600;
}

.nav a {
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--amber-400);
}

.mobile-menu-button {
    display: none;
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: 10px;
    background: rgb(255 255 255 / 0.06);
    color: var(--white);
    padding: 8px 12px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgb(255 255 255 / 0.12);
    padding: 12px 0 18px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 10px;
}

.hero {
    position: relative;
    min-height: 500px;
    height: 70vh;
    overflow: hidden;
    background: var(--stone-900);
    color: var(--white);
}

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

.hero-media img {
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--stone-900), rgb(28 25 23 / 0.68), rgb(28 25 23 / 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    align-items: flex-end;
    padding: 0 0 72px;
}

.hero-copy {
    width: min(760px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--amber-600);
    color: var(--white);
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 26px;
    color: var(--stone-200);
    font-size: clamp(16px, 2vw, 20px);
}

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

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

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--amber-600);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.button-primary:hover {
    background: var(--amber-500);
}

.button-ghost {
    color: var(--white);
    border-color: rgb(255 255 255 / 0.28);
    background: rgb(255 255 255 / 0.08);
}

.section {
    padding: 56px 0;
}

.section-white {
    background: var(--white);
}

.section-dark {
    background: var(--stone-900);
    color: var(--white);
}

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

.section-heading h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 900;
}

.section-heading p,
.page-title p {
    margin: 8px 0 0;
    color: var(--stone-600);
}

.section-dark .section-heading p {
    color: var(--stone-300);
}

.more-link {
    color: var(--amber-600);
    font-weight: 800;
}

.more-link:hover {
    color: var(--amber-500);
}

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

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.section-dark .movie-card {
    background: var(--stone-800);
}

.poster {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--stone-800);
}

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

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.68), transparent 52%);
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    background: rgb(28 25 23 / 0.78);
    color: var(--white);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.poster-year {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 8px;
    background: var(--amber-600);
    color: var(--white);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.card-title a:hover {
    color: var(--amber-600);
}

.card-desc {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--stone-600);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.section-dark .card-desc {
    color: var(--stone-300);
}

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

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

.tag-list span {
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin: 28px 0;
    padding: 16px;
    border: 1px solid var(--stone-200);
    border-radius: 20px;
    background: rgb(255 255 255 / 0.78);
    box-shadow: var(--shadow-md);
}

.search-panel input {
    width: 100%;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    background: var(--white);
    color: var(--stone-800);
    padding: 12px 14px;
    outline: none;
}

.search-panel input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgb(245 158 11 / 0.14);
}

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

.filter-buttons button {
    border: 1px solid var(--stone-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--stone-700);
    padding: 9px 12px;
    font-weight: 700;
    cursor: pointer;
}

.filter-buttons button.is-active {
    border-color: var(--amber-600);
    background: var(--amber-600);
    color: var(--white);
}

.page-title {
    padding: 48px 0 24px;
}

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

.breadcrumbs a:hover {
    color: var(--amber-600);
}

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

.category-card {
    border-radius: 20px;
    background: linear-gradient(135deg, var(--stone-800), var(--stone-700));
    color: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--stone-200);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 150px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-radius: 18px;
    background: var(--white);
    padding: 12px;
    box-shadow: var(--shadow-md);
}

.rank-number {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--amber-600);
    color: var(--white);
    font-weight: 900;
}

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

.rank-thumb img {
    height: 100%;
    object-fit: cover;
}

.rank-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
}

.rank-meta {
    color: var(--stone-500);
    font-size: 14px;
}

.detail-hero {
    padding: 32px 0 46px;
    background: radial-gradient(circle at top left, rgb(245 158 11 / 0.22), transparent 30%), linear-gradient(135deg, var(--stone-900), var(--stone-800));
    color: var(--white);
}

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

.player-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--black);
    box-shadow: var(--shadow-2xl);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--black);
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--black);
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(to top, rgb(0 0 0 / 0.58), rgb(0 0 0 / 0.18));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    display: inline-flex;
    width: 78px;
    height: 78px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgb(255 255 255 / 0.78);
    border-radius: 999px;
    background: rgb(217 119 6 / 0.92);
    color: var(--white);
    box-shadow: var(--shadow-2xl);
    cursor: pointer;
}

.play-triangle {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 24px solid currentColor;
}

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 900;
}

.detail-copy p {
    margin: 0 0 18px;
    color: var(--stone-200);
    font-size: 17px;
}

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

.detail-meta span {
    border-radius: 999px;
    background: rgb(255 255 255 / 0.1);
    color: var(--stone-100);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.side-card,
.content-card {
    border-radius: 20px;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.side-poster {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 9;
    background: var(--stone-800);
    margin-bottom: 16px;
}

.side-poster img {
    height: 100%;
    object-fit: cover;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
}

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

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

.site-footer {
    border-top: 1px solid var(--stone-200);
    background: var(--stone-900);
    color: var(--stone-300);
    padding: 34px 0;
    text-align: center;
}

.site-footer strong {
    color: var(--white);
}

.hidden-card {
    display: none;
}

@media (max-width: 960px) {
    .card-grid,
    .card-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .rank-item {
        grid-template-columns: 54px 120px minmax(0, 1fr);
    }

    .rank-item .button {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .header-inner {
        min-height: 62px;
    }

    .logo {
        font-size: 19px;
    }

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

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

    .section {
        padding: 40px 0;
    }

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

    .card-grid,
    .card-grid-large,
    .category-list,
    .related-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-item {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .rank-thumb {
        grid-column: 1 / -1;
        order: -1;
    }

    .rank-item .button {
        grid-column: 1 / -1;
    }

    .side-card,
    .content-card {
        padding: 20px;
    }
}
