:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.10);
    --radius-large: 28px;
    --radius-card: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    color: var(--slate-800);
    background: linear-gradient(180deg, #fff7ed 0%, var(--slate-50) 34%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: var(--white);
    background: linear-gradient(110deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

.nav-wrap {
    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;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 1.3rem;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--amber-600);
    background: var(--white);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.36), 0 8px 20px rgba(0, 0, 0, 0.16);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    font-weight: 700;
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    background: var(--orange-600);
}

.mobile-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

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

.hero-slider {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at 22% 20%, rgba(254, 243, 199, 0.24), transparent 34%), linear-gradient(135deg, #92400e 0%, #c2410c 42%, #111827 100%);
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.50), rgba(15, 23, 42, 0.82));
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px) saturate(1.12);
}

.hero-grid {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(280px, 420px);
    align-items: center;
    gap: 48px;
    padding: 52px 0 92px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    border-radius: 999px;
    color: #92400e;
    background: var(--amber-100);
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: 0.86rem;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 22px 0 10px;
    font-size: clamp(2.5rem, 6vw, 5.6rem);
    line-height: 1.03;
    letter-spacing: -0.06em;
    font-weight: 900;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.hero-title {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    color: var(--amber-100);
    font-weight: 900;
}

.hero-summary {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.85;
}

.pill-row,
.card-tags,
.detail-tags,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pill-row span,
.card-tags span,
.card-tags a,
.detail-tags span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #92400e;
    background: var(--amber-100);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.primary-button,
.soft-button,
.text-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--amber-600);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.22);
}

.soft-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.text-button {
    color: var(--amber-100);
}

.primary-button:hover,
.soft-button:hover,
.text-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-search {
    width: min(680px, 100%);
    margin-top: 26px;
    padding: 8px;
    display: flex;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0 16px;
    outline: none;
    color: var(--slate-800);
    background: transparent;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    padding: 0 22px;
    font-weight: 900;
    cursor: pointer;
}

.hero-poster-panel {
    position: relative;
    display: block;
    width: min(420px, 100%);
    justify-self: end;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.46);
    transform: rotate(2deg);
}

.hero-poster-panel img {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
}

.hero-poster-panel span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px);
    font-weight: 900;
}

.hero-bottom {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-categories a,
.hero-dot {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-categories a {
    padding: 8px 14px;
    font-weight: 800;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--amber-100);
}

.section {
    padding: 64px 0;
}

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

.section-head h2,
.inner-hero h1,
.detail-copy h1 {
    margin: 12px 0 0;
    color: var(--slate-900);
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--amber-600);
    background: var(--amber-50);
}

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

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), #fed7aa);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 2.85;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.28);
}

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

.movie-card h3 {
    margin: 12px 0 8px;
    color: var(--slate-900);
    font-size: 1.08rem;
    line-height: 1.35;
}

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

.movie-card p {
    margin: 0 0 14px;
    color: var(--slate-500);
    font-size: 0.94rem;
    line-height: 1.7;
}

.movie-meta span {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.75rem;
    color: var(--slate-700);
    background: var(--slate-100);
}

.card-tags span,
.card-tags a {
    color: var(--amber-700, #b45309);
    background: var(--amber-50);
}

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

.category-card,
.category-overview-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-large);
    background: var(--white);
    padding: 22px;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.15);
}

.category-images {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 8px;
    margin-bottom: 18px;
}

.category-images img,
.category-preview-strip img {
    width: 100%;
    aspect-ratio: 2 / 2.8;
    object-fit: cover;
    border-radius: 16px;
    background: var(--amber-50);
}

.category-card strong,
.category-overview-title {
    display: block;
    color: var(--slate-900);
    font-size: 1.22rem;
    font-weight: 900;
}

.category-card em,
.category-overview-card p {
    display: block;
    margin-top: 8px;
    color: var(--slate-500);
    font-style: normal;
    line-height: 1.7;
}

.category-preview-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 20px;
}

.category-preview-strip a {
    display: grid;
    gap: 8px;
    color: var(--slate-700);
    font-size: 0.82rem;
    font-weight: 800;
}

.category-preview-strip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-card,
.ranking-page-card {
    border-radius: 36px;
    background: var(--white);
    padding: 34px;
    box-shadow: var(--shadow-soft);
}

.ranking-list {
    display: grid;
    gap: 12px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 52px 64px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 13px;
    border-radius: 18px;
    background: var(--slate-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
    background: var(--amber-50);
    transform: translateX(4px);
}

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

.top-rank .rank-index {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.rank-cover img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--amber-50);
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    color: var(--slate-900);
    font-size: 1.02rem;
}

.rank-info em {
    margin-top: 4px;
    color: var(--slate-500);
    font-style: normal;
    font-size: 0.9rem;
}

.rank-score {
    color: var(--amber-600);
    font-size: 1.08rem;
    font-weight: 900;
}

.inner-hero {
    padding: 72px 0 28px;
}

.inner-hero p {
    max-width: 760px;
    color: var(--slate-500);
    font-size: 1.04rem;
    line-height: 1.8;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(120px, 180px));
    gap: 12px;
    margin-bottom: 26px;
    padding: 14px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--slate-700);
    background: var(--slate-50);
    outline: none;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 46px;
    align-items: center;
    padding: 72px 0 44px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 34px;
    box-shadow: var(--shadow-soft);
    background: var(--amber-50);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 2.85;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    margin-bottom: 18px;
    font-weight: 700;
}

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

.detail-line {
    max-width: 760px;
    color: var(--slate-500);
    font-size: 1.12rem;
    line-height: 1.85;
}

.compact-actions .primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.compact-actions .soft-button {
    color: var(--amber-700, #b45309);
    background: var(--amber-50);
}

.compact-actions .text-button {
    color: var(--amber-600);
}

.player-section {
    padding-top: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.30);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--amber-600);
    background: var(--white);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
    font-size: 2rem;
}

.player-cover strong {
    font-size: 1.15rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
}

.story-card {
    border-radius: 28px;
    padding: 28px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.story-card h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: 1.35rem;
}

.story-card p {
    margin: 0;
    color: var(--slate-600);
    line-height: 1.9;
}

.detail-tags {
    margin-top: 18px;
}

.site-footer {
    margin-top: 54px;
    color: var(--white);
    background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 36px;
    padding: 48px 0;
}

.footer-grid p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
}

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

.footer-links a {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
    padding: 18px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.68);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

[hidden] {
    display: none !important;
}

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

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

    .hero-poster-panel {
        justify-self: start;
        width: min(340px, 100%);
    }

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

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

    .mobile-menu-button {
        display: block;
    }

    .site-logo {
        font-size: 1.05rem;
    }

    .hero-slider {
        min-height: 760px;
    }

    .hero-grid {
        min-height: 700px;
        gap: 28px;
        padding: 34px 0 124px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: clamp(2.15rem, 14vw, 3.5rem);
    }

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search input,
    .hero-search button {
        min-height: 46px;
    }

    .hero-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .section {
        padding: 42px 0;
    }

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

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

    .ranking-card,
    .ranking-page-card {
        padding: 18px;
        border-radius: 24px;
    }

    .ranking-row {
        grid-template-columns: 42px 56px 1fr;
    }

    .rank-score {
        grid-column: 3;
    }

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

    .detail-hero {
        padding-top: 42px;
    }
}

@media (max-width: 460px) {
    .site-shell {
        width: min(100% - 22px, 1180px);
    }

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

    .hero-categories a {
        font-size: 0.84rem;
    }

    .story-card {
        padding: 22px;
    }
}
