: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-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.08);
    --shadow-md: 0 10px 24px rgba(28, 25, 23, 0.10);
    --shadow-xl: 0 24px 60px rgba(28, 25, 23, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--stone-200);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.logo-title {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--stone-800);
    white-space: nowrap;
}

.logo-subtitle {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--stone-500);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--stone-700);
    font-weight: 650;
}

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

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--amber-600);
    transition: right 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--amber-600);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    right: 0;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search,
.page-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input,
.page-search input,
.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    border: 1px solid var(--stone-300);
    border-radius: 999px;
    background: var(--white);
    color: var(--stone-800);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 220px;
    padding: 10px 18px;
}

.header-search input:focus,
.page-search input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.header-search button,
.page-search button {
    margin-left: 8px;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--amber-600);
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.page-search button:hover {
    background: var(--amber-700);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--stone-700);
    background: var(--stone-100);
}

.site-mobile-nav {
    display: none;
    border-top: 1px solid var(--stone-200);
    padding: 12px 0 16px;
}

.site-mobile-nav a {
    display: block;
    padding: 10px 4px;
    color: var(--stone-700);
    font-weight: 650;
}

.hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: var(--stone-900);
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-slide.is-active .hero-image {
    animation: heroZoom 6s ease forwards;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.16));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
}

.hero-copy {
    max-width: 760px;
    padding: 0 0 56px;
    color: var(--white);
}

.hero-kicker,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 750;
    color: var(--white);
    background: var(--amber-500);
}

.hero-title {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-text {
    max-width: 680px;
    margin: 0 0 22px;
    color: var(--stone-200);
    font-size: 18px;
}

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

.hero-meta {
    margin-bottom: 26px;
    color: var(--stone-300);
    font-size: 14px;
}

.hero-actions,
.section-head,
.category-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    color: var(--white);
    background: var(--amber-500);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
    background: var(--amber-600);
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.section {
    padding: 64px 0;
    background: var(--white);
}

.section-soft {
    background: linear-gradient(to bottom, var(--stone-50), var(--white));
}

.section-muted {
    background: var(--stone-50);
}

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 900;
    color: var(--stone-800);
}

.section-desc {
    margin: 10px 0 0;
    color: var(--stone-600);
    max-width: 720px;
}

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

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

.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

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

.movie-card {
    display: block;
    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(-5px);
    box-shadow: var(--shadow-xl);
}

.card-cover {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: var(--stone-200);
}

.large-grid .card-cover {
    height: 320px;
}

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

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.18), transparent);
    transition: opacity 0.25s ease;
}

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

.type-badge,
.year-ribbon,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.type-badge {
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    color: var(--white);
    background: rgba(28, 25, 23, 0.78);
    backdrop-filter: blur(10px);
}

.year-ribbon {
    left: 12px;
    bottom: 12px;
    padding: 5px 10px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
    right: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.3);
}

.play-mark {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.play-mark span {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--amber-600);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    font-size: 24px;
    transform: scale(0.92);
    transition: transform 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
}

.movie-card:hover .play-mark span {
    transform: scale(1);
}

.card-body {
    padding: 18px;
}

.card-title {
    margin: 0 0 8px;
    color: var(--stone-800);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
    transition: color 0.2s ease;
}

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

.card-desc {
    margin: 0 0 12px;
    min-height: 44px;
    color: var(--stone-600);
    font-size: 14px;
    line-height: 1.55;
}

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

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.category-panel {
    border-radius: 24px;
    padding: 24px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.category-panel h2,
.category-panel h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.category-panel p {
    margin: 10px 0 0;
    color: var(--stone-600);
}

.page-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
    padding: 54px 0;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 900;
}

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

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 28px 0 0;
    padding: 18px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.filter-toolbar input,
.filter-toolbar select {
    min-height: 46px;
    padding: 0 16px;
}

.empty-state {
    margin: 34px 0 0;
    padding: 36px;
    border-radius: 22px;
    text-align: center;
    color: var(--stone-500);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.breadcrumb {
    margin-bottom: 24px;
    color: var(--stone-600);
    font-size: 14px;
}

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

.detail-shell {
    padding: 38px 0 64px;
    background: linear-gradient(to bottom, var(--stone-100), var(--white));
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

.detail-main,
.side-card,
.content-card {
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.detail-main {
    overflow: hidden;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: #000000;
    box-shadow: var(--shadow-xl);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.58));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--amber-600);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-xl);
    font-size: 34px;
}

.detail-copy {
    padding: 26px;
}

.detail-copy h1 {
    margin: 16px 0 10px;
    color: var(--stone-800);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 900;
}

.detail-lead {
    margin: 0 0 20px;
    color: var(--stone-600);
    font-size: 18px;
}

.detail-meta {
    margin: 18px 0;
    color: var(--stone-600);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 4px;
}

.tag-list span {
    border-radius: 999px;
    padding: 6px 11px;
    color: var(--stone-600);
    background: var(--stone-100);
    font-size: 13px;
}

.content-card {
    margin-top: 22px;
    padding: 24px;
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 900;
}

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

.side-card {
    padding: 24px;
    align-self: start;
}

.side-card h2,
.side-card h3 {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 900;
}

.info-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.info-list div {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--stone-200);
}

.info-list dt {
    color: var(--stone-500);
    font-size: 13px;
}

.info-list dd {
    margin: 4px 0 0;
    color: var(--stone-800);
    font-weight: 750;
}

.side-links {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.side-links a {
    display: block;
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--stone-700);
    background: var(--stone-50);
    transition: color 0.2s ease, background 0.2s ease;
}

.side-links a:hover {
    color: var(--amber-700);
    background: var(--amber-50);
}

.footer {
    color: var(--stone-300);
    background: linear-gradient(to bottom, var(--stone-800), var(--stone-900));
}

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

.footer h2,
.footer h3 {
    margin: 0 0 12px;
    color: var(--white);
}

.footer p {
    margin: 0;
    color: var(--stone-400);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

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

@keyframes heroZoom {
    from {
        transform: scale(1.02);
    }
    to {
        transform: scale(1.08);
    }
}

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

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

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

@media (min-width: 900px) {
    .hero {
        height: 600px;
    }

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

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

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

    .detail-layout {
        grid-template-columns: minmax(0, 2.1fr) minmax(290px, 0.9fr);
    }

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

@media (min-width: 1160px) {
    .movie-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

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

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

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

    .site-header.is-open .site-mobile-nav {
        display: block;
    }
}

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

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

    .logo-title {
        font-size: 17px;
    }

    .logo-subtitle {
        display: none;
    }

    .hero {
        height: 520px;
    }

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

    .hero-text {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .section {
        padding: 46px 0;
    }

    .card-cover {
        height: 190px;
    }

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