:root {
    --primary-50: #fef3e2;
    --primary-300: #f9bb65;
    --primary-400: #f7a027;
    --primary-500: #f58b1f;
    --primary-600: #e6751a;
    --primary-700: #c05e17;
    --accent-500: #ea5e21;
    --secondary-50: #f0f9f4;
    --secondary-200: #bae5cd;
    --secondary-500: #3a9d6c;
    --secondary-600: #298056;
    --neutral-50: #fafafa;
    --neutral-100: #f4f4f5;
    --neutral-200: #e4e4e7;
    --neutral-300: #d4d4d8;
    --neutral-500: #71717a;
    --neutral-600: #52525b;
    --neutral-700: #3f3f46;
    --neutral-800: #27272a;
    --neutral-900: #18181b;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 20px -2px rgba(0, 0, 0, 0.10), 0 15px 30px -5px rgba(0, 0, 0, 0.08);
    --shadow-hard: 0 20px 45px rgba(0, 0, 0, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--neutral-800);
    background: var(--neutral-50);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--neutral-900);
    font-size: 1.35rem;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    border-radius: 999px;
    font-size: 0.78rem;
    box-shadow: var(--shadow-soft);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--neutral-700);
    font-weight: 600;
}

.desktop-nav a:hover,
.footer-grid a:hover,
.section-title a:hover,
.back-link:hover {
    color: var(--primary-600);
}

.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-search input,
.mobile-panel input,
.big-search input,
.filter-bar input,
.filter-bar select {
    width: 16rem;
    border: 1px solid var(--neutral-300);
    border-radius: 999px;
    padding: 0.68rem 1rem;
    outline: none;
    color: var(--neutral-800);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-panel input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(245, 139, 31, 0.16);
}

.nav-search button,
.mobile-panel button,
.big-search button,
.hero-button {
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
    color: #ffffff;
    background: var(--primary-500);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.mobile-panel button:hover,
.big-search button:hover,
.hero-card:hover .hero-button {
    background: var(--primary-600);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    padding: 0.25rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 1.6rem;
    height: 2px;
    margin: 0.35rem 0;
    background: var(--neutral-800);
}

.mobile-panel {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem 1rem;
    display: grid;
    gap: 0.8rem;
}

.mobile-panel[hidden] {
    display: none;
}

.mobile-panel a {
    color: var(--neutral-700);
    font-weight: 700;
}

.mobile-panel form {
    display: flex;
    gap: 0.5rem;
}

.mobile-panel input {
    width: 100%;
}

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #171717, #2a2019);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    padding: 3rem max(1rem, calc((100vw - 1280px) / 2 + 1rem));
    transition: opacity 1s ease;
    pointer-events: none;
}

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

.hero-card {
    position: relative;
    display: block;
    height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: var(--neutral-800);
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42), transparent);
}

.hero-content {
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    max-width: 760px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary-500);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.hero-content h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.06;
    font-weight: 900;
}

.hero-content p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
    max-width: 720px;
}

.hero-tags,
.tag-row,
.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    color: var(--primary-700);
    background: var(--primary-50);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
}

.hero-button {
    display: inline-flex;
    margin-top: 1.25rem;
}

.hero-dots {
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

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

.hero-dot.is-active {
    width: 2rem;
    background: #ffffff;
}

.section-wrap,
.detail-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.intro-section {
    padding-bottom: 1rem;
}

.section-head {
    max-width: 820px;
    text-align: center;
    margin: 0 auto;
}

.section-head span {
    color: var(--primary-600);
    font-weight: 800;
}

.section-head h1,
.page-hero h1 {
    margin: 0.45rem 0 0.8rem;
    color: var(--neutral-800);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    font-weight: 900;
}

.section-head p,
.page-hero p {
    margin: 0;
    color: var(--neutral-600);
    font-size: 1.08rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    margin: 0;
    color: var(--neutral-800);
    font-size: 1.5rem;
    font-weight: 900;
}

.section-title a {
    color: var(--primary-600);
    font-weight: 800;
}

.section-title.compact {
    margin-bottom: 1rem;
}

.movie-grid {
    display: grid;
    gap: 1.5rem;
}

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

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

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

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--neutral-200);
}

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

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

.duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
}

.duration {
    top: 0.55rem;
    right: 0.55rem;
    padding: 0.22rem 0.5rem;
}

.rank-badge {
    top: 0.55rem;
    left: 0.55rem;
    min-width: 1.75rem;
    height: 1.75rem;
    background: var(--accent-500);
}

.movie-info {
    padding: 1rem;
}

.movie-info h3 {
    margin: 0 0 0.5rem;
    color: var(--neutral-800);
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 850;
}

.movie-info h3 a:hover,
.rank-content h2 a:hover {
    color: var(--primary-600);
}

.movie-info p {
    margin: 0 0 0.75rem;
    color: var(--neutral-600);
    font-size: 0.9rem;
    line-height: 1.65;
}

.movie-meta,
.detail-meta {
    margin-bottom: 0.75rem;
    color: var(--neutral-500);
    font-size: 0.82rem;
}

.movie-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 0.5rem;
    color: var(--neutral-300);
}

.category-panel {
    margin-top: 1rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, var(--secondary-50), var(--primary-50));
}

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

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

.category-card {
    display: grid;
    gap: 0.35rem;
    min-height: 6.6rem;
    align-content: center;
    border-radius: 0.85rem;
    padding: 1rem;
    text-align: center;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card strong {
    color: var(--neutral-800);
    font-size: 1.05rem;
}

.category-card span {
    color: var(--neutral-500);
    font-size: 0.82rem;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 2rem;
}

.sidebar-box,
.detail-card,
.player-card {
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.sidebar-box {
    padding: 1.25rem;
    height: fit-content;
}

.side-list {
    display: grid;
    gap: 1rem;
}

.side-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    border-radius: 0.75rem;
    padding: 0.55rem;
    margin: -0.55rem;
    transition: background 0.2s ease;
}

.side-item:hover {
    background: var(--neutral-50);
}

.side-cover {
    flex: 0 0 7rem;
    height: 4rem;
    overflow: hidden;
    border-radius: 0.65rem;
    background: var(--neutral-200);
}

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

.side-text {
    min-width: 0;
    display: grid;
    gap: 0.3rem;
}

.side-text strong {
    color: var(--neutral-800);
    font-size: 0.92rem;
    line-height: 1.35;
}

.side-text em {
    color: var(--neutral-500);
    font-size: 0.78rem;
    font-style: normal;
}

.side-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-right: 0.35rem;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary-500);
    font-size: 0.72rem;
}

.page-hero {
    margin: 0 auto;
    padding: 4.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    color: #ffffff;
}

.small-hero > div {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero h1,
.page-hero p {
    color: #ffffff;
}

.page-hero .eyebrow {
    background: rgba(255, 255, 255, 0.18);
}

.filter-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-bar input {
    flex: 1 1 18rem;
}

.filter-bar select {
    width: auto;
    min-width: 10rem;
}

.big-search {
    display: flex;
    gap: 0.75rem;
    width: min(680px, 100%);
    margin-top: 1.5rem;
}

.big-search input {
    width: 100%;
}

.rank-list {
    display: grid;
    gap: 1rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 3.2rem 9.5rem minmax(0, 1fr) 4rem;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-num {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary-500);
    font-weight: 900;
}

.rank-poster {
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--neutral-200);
}

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

.rank-content h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 900;
}

.rank-content p {
    margin: 0 0 0.6rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

.score {
    color: var(--accent-500);
    font-size: 1.25rem;
}

.detail-wrap {
    padding-top: 2rem;
}

.back-link {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--neutral-600);
    font-weight: 800;
}

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

.detail-main {
    display: grid;
    gap: 1.5rem;
}

.player-card {
    overflow: hidden;
}

.player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.site-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
    cursor: pointer;
}

.play-overlay[hidden] {
    display: none;
}

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    background: rgba(245, 139, 31, 0.94);
    box-shadow: var(--shadow-hard);
    font-size: 2rem;
    text-indent: 0.25rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-overlay:hover .play-circle {
    transform: scale(1.06);
    background: var(--primary-600);
}

.detail-card {
    padding: 1.5rem;
}

.detail-card h1,
.detail-card h2 {
    margin: 0 0 1rem;
    color: var(--neutral-800);
    font-weight: 900;
    line-height: 1.25;
}

.detail-card h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.detail-card h2 {
    font-size: 1.35rem;
}

.detail-card p {
    margin: 0 0 1rem;
    color: var(--neutral-700);
    line-height: 1.9;
}

.lead-text {
    color: var(--neutral-600);
    font-size: 1.05rem;
}

.detail-tags {
    margin-top: 1rem;
}

.sticky-box {
    position: sticky;
    top: 5.5rem;
}

.more-section {
    padding-top: 0;
}

.site-footer {
    margin-top: 3rem;
    color: #d4d4d8;
    background: var(--neutral-800);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-grid p {
    margin: 1rem 0 0;
    max-width: 28rem;
    color: #a1a1aa;
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: 1rem;
}

.footer-grid a {
    display: block;
    margin-bottom: 0.6rem;
    color: #d4d4d8;
}

.footer-logo {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem;
    text-align: center;
    color: #a1a1aa;
}

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

    .menu-toggle {
        display: block;
    }

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

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

    .sticky-box {
        position: static;
    }
}

@media (max-width: 720px) {
    .hero-slider {
        height: 540px;
    }

    .hero-slide {
        padding: 1.25rem 1rem 3rem;
    }

    .hero-card {
        height: 460px;
    }

    .hero-content {
        left: 1rem;
        right: 1rem;
        bottom: 1.25rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .section-wrap,
    .detail-wrap {
        padding: 2rem 1rem;
    }

    .two-cols,
    .three-cols,
    .large-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .mobile-panel form,
    .big-search,
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar select {
        width: 100%;
    }

    .rank-item {
        grid-template-columns: 2.6rem 6rem minmax(0, 1fr);
    }

    .score {
        grid-column: 3;
    }

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