:root {
    --primary-50: #fdf8f3;
    --primary-100: #faeadf;
    --primary-200: #f1cfbd;
    --primary-600: #c8643e;
    --primary-700: #a74f35;
    --primary-800: #854132;
    --primary-900: #6c372b;
    --accent-500: #f06a24;
    --accent-600: #dd4f16;
    --accent-700: #bb3d0e;
    --secondary-50: #f7f7f6;
    --secondary-100: #e4e4e2;
    --secondary-200: #c9c8c5;
    --secondary-500: #77736e;
    --secondary-600: #625f5a;
    --secondary-800: #3c3b39;
    --secondary-900: #343332;
    --secondary-950: #1c1c1b;
    --white: #ffffff;
    --shadow-soft: 0 12px 40px rgba(28, 28, 27, 0.12);
    --shadow-card: 0 10px 24px rgba(52, 51, 50, 0.12);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--secondary-50);
    color: var(--secondary-900);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--primary-900), var(--primary-800), var(--primary-900));
    box-shadow: 0 8px 24px rgba(28, 28, 27, 0.18);
}

.header-inner {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark,
.footer-brand span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--accent-600);
    box-shadow: 0 8px 20px rgba(221, 79, 22, 0.35);
}

.brand-text {
    display: grid;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.04em;
}

.brand-text em {
    font-style: normal;
    color: var(--primary-100);
    font-size: 12px;
    line-height: 1;
}

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

.desktop-nav a,
.nav-dropdown button {
    color: var(--white);
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 8px 0;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown button:hover {
    color: #ffd8c5;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 190px;
    padding: 8px 0;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--secondary-900);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
    transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-panel a {
    display: block;
    color: var(--secondary-900);
    padding: 9px 16px;
}

.dropdown-panel a:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.header-search {
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-nav input {
    width: 220px;
    border: 0;
    outline: 0;
    color: var(--white);
    background: var(--primary-700);
    padding: 10px 14px;
    border-radius: 10px 0 0 10px;
}

.header-search input::placeholder,
.mobile-nav input::placeholder {
    color: var(--primary-100);
}

.header-search button,
.mobile-nav button {
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: var(--accent-600);
    padding: 10px 16px;
    border-radius: 0 10px 10px 0;
}

.mobile-toggle {
    display: none;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 16px 24px 22px;
    background: var(--primary-800);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-nav form {
    display: flex;
}

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

.mobile-category-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    color: var(--primary-100);
}

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

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.06));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 64px;
    width: min(1180px, calc(100% - 48px));
    transform: translateX(-50%);
    color: var(--white);
}

.hero-label,
.detail-label,
.feature-copy span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--white);
    background: var(--accent-600);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1 {
    max-width: 780px;
    margin: 18px 0 16px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 28px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    padding: 0 24px;
    font-weight: 800;
    transition: 0.2s ease;
}

.btn-primary {
    color: var(--white);
    background: var(--primary-600);
    box-shadow: 0 12px 24px rgba(200, 100, 62, 0.32);
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.45);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dots button.is-active {
    width: 34px;
    background: var(--white);
}

.category-strip,
.section-wrap,
.feature-inner,
.footer-inner,
.page-hero,
.detail-main,
.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.category-strip {
    padding-top: 34px;
    padding-bottom: 34px;
    background: var(--primary-50);
}

.section-wrap {
    padding-top: 58px;
    padding-bottom: 58px;
}

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

.section-head.compact {
    margin-bottom: 20px;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.detail-content h2 {
    margin: 0;
    color: var(--secondary-900);
    line-height: 1.2;
}

.section-head h2 {
    font-size: clamp(24px, 4vw, 32px);
}

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

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

.category-tile,
.category-card {
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 5px 16px rgba(52, 51, 50, 0.06);
    transition: 0.25s ease;
}

.category-tile {
    display: grid;
    gap: 4px;
    padding: 22px 18px;
    text-align: center;
}

.category-tile:hover,
.category-card:hover {
    border-color: var(--primary-600);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.category-tile strong,
.category-card strong {
    color: var(--secondary-900);
    font-size: 18px;
}

.category-tile span,
.category-card span {
    color: var(--secondary-500);
    font-size: 14px;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(52, 51, 50, 0.18);
}

.movie-poster {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    background: var(--secondary-200);
}

.movie-card-compact .movie-poster {
    height: 220px;
}

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

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

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--white);
    background: var(--accent-600);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--secondary-500);
    font-size: 12px;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover,
.detail-switch a:hover {
    color: var(--primary-700);
}

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

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

.tag-row span {
    color: var(--primary-800);
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
}

.tag-row.large span {
    font-size: 13px;
    padding: 5px 12px;
}

.soft-section {
    background: linear-gradient(180deg, var(--primary-50), var(--white));
}

.list-grid {
    display: grid;
    gap: 16px;
}

.movie-card-list {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.movie-card-list .movie-poster {
    height: 100%;
    min-height: 180px;
}

.movie-card-list .movie-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.movie-card-list p {
    -webkit-line-clamp: 3;
}

.feature-band {
    background: var(--secondary-900);
    color: var(--white);
    padding: 70px 0;
}

.feature-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 42px;
    align-items: center;
}

.feature-copy h2 {
    margin: 18px 0 18px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.12;
}

.feature-copy p {
    max-width: 650px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
}

.feature-cover {
    height: 340px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

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

.rank-section {
    padding-top: 36px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 96px 1fr;
    gap: 16px;
    align-items: center;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 6px 18px rgba(52, 51, 50, 0.08);
    padding: 12px;
}

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

.rank-thumb {
    height: 90px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--secondary-100);
}

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

.rank-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-item p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--secondary-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.page-hero {
    margin-top: 34px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.page-hero.small {
    padding-top: 54px;
    padding-bottom: 54px;
}

.page-hero h1 {
    margin: 18px 0 12px;
    color: var(--white);
    font-size: clamp(30px, 5vw, 46px);
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
}

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

.category-card {
    padding: 22px;
}

.category-card-main {
    display: grid;
    gap: 4px;
    margin-bottom: 16px;
}

.category-card-links {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--secondary-100);
    color: var(--secondary-600);
    font-size: 14px;
}

.category-card-links a:hover {
    color: var(--primary-700);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 160px 180px;
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--secondary-200);
    border-radius: 10px;
    background: var(--white);
    color: var(--secondary-900);
    padding: 12px 14px;
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(200, 100, 62, 0.14);
}

.empty-state {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--secondary-600);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.detail-main {
    padding-top: 26px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--secondary-600);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--primary-700);
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    margin-top: 22px;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.detail-poster {
    height: 440px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--secondary-100);
    box-shadow: var(--shadow-card);
}

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

.detail-copy h1 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 5vw, 48px);
}

.detail-one-line {
    margin: 0 0 18px;
    color: var(--secondary-600);
    font-size: 18px;
}

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

.detail-meta span {
    border-radius: 999px;
    color: var(--secondary-800);
    background: var(--secondary-100);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.detail-copy .btn-primary {
    margin-top: 24px;
}

.player-section {
    margin-top: 34px;
}

.video-shell {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

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

.play-trigger {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
    cursor: pointer;
}

.play-trigger span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--accent-600);
    box-shadow: 0 16px 34px rgba(221, 79, 22, 0.42);
    font-size: 26px;
    text-indent: 4px;
}

.play-trigger strong {
    font-size: 18px;
}

.video-shell.is-playing .play-trigger {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-content {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

.detail-content article,
.detail-switch {
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    padding: 26px;
}

.detail-content h2 {
    margin-bottom: 12px;
    font-size: 24px;
}

.detail-content p {
    margin: 0;
    color: var(--secondary-700);
    font-size: 16px;
}

.detail-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    color: var(--secondary-700);
    font-weight: 700;
}

.related-section {
    padding-top: 44px;
}

.site-footer {
    margin-top: 76px;
    color: var(--secondary-200);
    background: linear-gradient(180deg, var(--secondary-900), var(--secondary-950));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-top: 46px;
    padding-bottom: 46px;
}

.footer-brand {
    margin-bottom: 12px;
    color: var(--white);
}

.footer-inner h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 17px;
}

.footer-inner p {
    margin: 0;
    color: var(--secondary-200);
    font-size: 14px;
}

.footer-inner ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    font-size: 14px;
}

.footer-inner a:hover {
    color: #ffd8c5;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--secondary-200);
    font-size: 13px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 16px;
    }

    .header-search input {
        width: 170px;
    }

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

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

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

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

    .hero {
        height: 500px;
    }

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

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

    .feature-inner,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .feature-cover {
        height: 300px;
    }

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

@media (max-width: 680px) {
    .header-inner {
        padding: 0 16px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero {
        height: 470px;
    }

    .hero-content {
        bottom: 56px;
        width: calc(100% - 32px);
    }

    .hero-control {
        display: none;
    }

    .hero-content p,
    .detail-one-line {
        font-size: 16px;
    }

    .category-strip,
    .section-wrap,
    .feature-inner,
    .footer-inner,
    .page-hero,
    .detail-main,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }

    .category-grid,
    .category-overview-grid,
    .three-cols,
    .four-cols,
    .rank-grid {
        grid-template-columns: 1fr;
    }

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

    .movie-card-list .movie-poster {
        height: 240px;
    }

    .rank-item {
        grid-template-columns: 48px 82px 1fr;
        gap: 12px;
    }

    .detail-hero {
        padding: 18px;
    }

    .detail-poster {
        height: 360px;
    }

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

    .footer-bottom {
        padding-left: 16px;
        padding-right: 16px;
    }
}
