:root {
    color-scheme: light;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --slate-900: #0f172a;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--stone-50);
    color: var(--stone-800);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), #ef4444);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.76);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.18);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 99px;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #78350f 48%, #7c2d12);
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(245, 158, 11, 0.38), transparent 32%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.24)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.22));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 640px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.95);
    color: #ffffff;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 18px 0 20px;
    font-size: clamp(42px, 8vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 2.2vw, 23px);
}

.hero-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.movie-tags span {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.12);
    color: var(--amber-300);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 900;
    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(--amber-500), #ef4444);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.3);
}

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

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    padding: 0;
}

.hero-arrow:hover,
.hero-dot:hover,
.hero-dot.is-active {
    background: var(--amber-500);
    transform: scale(1.05);
}

.search-band {
    background: var(--stone-100);
    padding: 30px 0;
}

.search-band-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    gap: 28px;
    align-items: center;
}

.search-band h2 {
    margin: 0 0 6px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.search-band p {
    margin: 0;
    color: var(--stone-600);
}

.search-form,
.filter-bar {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.search-form input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--stone-800);
    padding: 12px 16px;
}

.filter-bar select {
    max-width: 180px;
    border-left: 1px solid var(--stone-200);
}

.search-form button {
    border: 0;
    border-radius: 999px;
    background: var(--amber-600);
    color: #ffffff;
    padding: 0 22px;
    font-weight: 900;
    cursor: pointer;
}

.section {
    padding: 78px 0;
}

.section-soft {
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.section-dark {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
}

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

.section-head h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.section-head a {
    color: var(--amber-600);
    font-weight: 900;
}

.section-dark .section-head a {
    color: var(--amber-300);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-800), var(--stone-600));
}

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

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.94);
    color: #ffffff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), #ef4444);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 54px;
    overflow: hidden;
    color: var(--stone-800);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    color: var(--stone-500);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: var(--stone-300);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 13px;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card,
.category-overview-card,
.mini-section,
.content-card,
.side-card {
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-card {
    display: flex;
    min-height: 168px;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.55);
}

.category-name {
    font-size: 24px;
    font-weight: 900;
}

.category-desc {
    color: var(--stone-600);
}

.category-arrow {
    color: var(--amber-600);
    font-weight: 900;
}

.mini-section {
    padding: 22px;
}

.mini-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.mini-section h3 {
    margin: 0;
    font-size: 20px;
}

.mini-section a,
.category-samples a {
    color: var(--stone-700);
    font-weight: 800;
}

.mini-section-head a {
    color: var(--amber-600);
}

.mini-links,
.category-samples {
    display: grid;
    gap: 10px;
}

.page-main {
    min-height: 60vh;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #7c2d12);
    color: #ffffff;
}

.compact-hero {
    padding: 82px 0 56px;
}

.compact-hero h1,
.detail-info h1 {
    max-width: 900px;
    margin: 14px 0 14px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.compact-hero p {
    max-width: 860px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 800;
}

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

.filter-bar {
    max-width: 760px;
    margin-top: 26px;
}

.wide-filter {
    max-width: 900px;
}

.category-overview-card {
    display: grid;
    gap: 20px;
    padding: 28px;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-overview-card p {
    color: var(--stone-600);
}

.category-overview-card span {
    display: inline-flex;
    color: var(--amber-700);
    font-weight: 900;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    color: var(--stone-600);
    text-align: center;
    box-shadow: var(--shadow-card);
}

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

.detail-hero {
    min-height: 620px;
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    filter: blur(2px);
}

.detail-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 16% 26%, rgba(245, 158, 11, 0.32), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.62));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 72px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    aspect-ratio: 2 / 3;
    background: var(--stone-800);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.detail-one-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
}

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

.detail-meta span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    padding: 7px 12px;
    color: #ffffff;
    font-weight: 800;
}

.detail-tags {
    margin-bottom: 28px;
}

.detail-tags span {
    color: var(--amber-300);
    background: rgba(245, 158, 11, 0.14);
}

.player-section {
    padding-top: 48px;
    background: #000000;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    aspect-ratio: 16 / 9;
    background: #000000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-play-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), #ef4444);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.35);
    font-size: 30px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

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

.content-card h2,
.side-card h2 {
    margin: 0 0 18px;
    color: var(--stone-800);
    font-size: 28px;
    line-height: 1.2;
}

.content-card p {
    margin: 0 0 28px;
    color: var(--stone-700);
    font-size: 17px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 0;
}

.side-card dt {
    color: var(--stone-500);
    font-weight: 800;
}

.side-card dd {
    margin: 0;
    color: var(--stone-800);
    font-weight: 800;
}

.detail-nav {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.detail-nav a {
    flex: 1;
    border-radius: 14px;
    background: var(--stone-100);
    padding: 12px 10px;
    color: var(--amber-700);
    text-align: center;
    font-weight: 900;
}

.movie-card-compact .movie-title {
    font-size: 16px;
}

.site-footer {
    background: var(--slate-900);
    color: rgba(255, 255, 255, 0.75);
    padding: 54px 0 0;
}

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

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

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

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

.footer-bottom {
    margin-top: 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    text-align: center;
}

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

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

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

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

@media (max-width: 760px) {
    .header-inner {
        min-height: 66px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
        background: rgba(15, 23, 42, 0.98);
        padding: 14px;
        box-shadow: var(--shadow-soft);
    }

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

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .search-band-inner,
    .footer-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .search-form,
    .filter-bar {
        border-radius: 24px;
        flex-direction: column;
    }

    .search-form button {
        min-height: 44px;
    }

    .filter-bar select {
        max-width: none;
        border-left: 0;
        border-top: 1px solid var(--stone-200);
    }

    .section {
        padding: 54px 0;
    }

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

    .movie-grid,
    .movie-grid-rank,
    .category-grid,
    .category-overview-grid,
    .mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

    .detail-poster {
        max-width: 280px;
    }

    .compact-hero,
    .detail-hero-inner {
        padding: 52px 0 42px;
    }

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

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

    .site-logo {
        font-size: 18px;
    }

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

    .hero h1,
    .compact-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .hero-controls {
        bottom: 18px;
    }
}
