:root {
    --bg: #fffaf0;
    --bg-soft: #fff7ed;
    --panel: #ffffff;
    --panel-strong: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f1d8b8;
    --brand: #d97706;
    --brand-deep: #b45309;
    --brand-soft: #f59e0b;
    --danger: #ea580c;
    --shadow: 0 24px 70px rgba(146, 64, 14, 0.12);
    --radius: 24px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 34rem),
        linear-gradient(180deg, #fffaf0 0%, #ffffff 46%, #fff7ed 100%);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

body.is-menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 250, 240, 0.92);
    border-bottom: 1px solid rgba(217, 119, 6, 0.12);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: 24px;
    white-space: nowrap;
    color: #78350f;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.28);
    font-size: 19px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #4b5563;
    font-weight: 700;
}

.desktop-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--brand);
    transform: translateY(-1px);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 5px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

.header-search input {
    width: 210px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 9px 12px;
    color: var(--text);
}

.header-search button,
.primary-button,
.secondary-button,
.filter-box button {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(234, 88, 12, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.filter-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(234, 88, 12, 0.32);
}

.secondary-button {
    color: #92400e;
    background: #fff;
    border: 1px solid rgba(217, 119, 6, 0.18);
    box-shadow: none;
}

.menu-button {
    display: none;
    border: 0;
    background: #fff7ed;
    color: #92400e;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.mobile-nav a {
    display: block;
    padding: 12px;
    color: #78350f;
    font-weight: 800;
}

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

.hero {
    position: relative;
    min-height: 630px;
    overflow: hidden;
    border-radius: 0 0 34px 34px;
    margin-bottom: 42px;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.6s ease, transform 0.9s ease;
    background-position: center;
    background-size: cover;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(67, 20, 7, 0.92), rgba(120, 53, 15, 0.72) 42%, rgba(255, 247, 237, 0.18)),
        linear-gradient(0deg, rgba(255, 250, 240, 0.98), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    min-height: 630px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    align-items: center;
    gap: 40px;
    padding: 70px 0 90px;
}

.hero-copy {
    color: #fff;
    max-width: 720px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffedd5;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 24px 0 16px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.08em;
    font-weight: 950;
}

.hero-copy p {
    margin: 0;
    color: #ffedd5;
    font-size: 18px;
    line-height: 1.9;
    max-width: 650px;
}

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

.hero-side {
    display: grid;
    gap: 16px;
}

.hero-poster {
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 34px 80px rgba(67, 20, 7, 0.42);
    border: 1px solid rgba(255, 237, 213, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-mini {
    padding: 18px;
    border-radius: 22px;
    color: #78350f;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 60px rgba(67, 20, 7, 0.16);
}

.hero-mini strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

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

.hero-dot {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 237, 213, 0.55);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #f59e0b;
}

.section {
    margin: 46px 0;
}

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

.section-title {
    margin: 0;
    color: #78350f;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.section-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link {
    color: var(--brand);
    font-weight: 900;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.category-tile {
    position: relative;
    min-height: 124px;
    padding: 20px;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.35), transparent 55%),
        #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid rgba(217, 119, 6, 0.12);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 119, 6, 0.32);
}

.category-tile strong {
    display: block;
    color: #78350f;
    font-size: 20px;
    margin-bottom: 8px;
}

.category-tile span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 16px 42px rgba(146, 64, 14, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: 0 26px 58px rgba(146, 64, 14, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fff7ed);
}

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

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

.poster-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    color: #fff;
    background: rgba(120, 53, 15, 0.76);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.poster-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.35);
}

.card-body {
    padding: 14px;
}

.card-category {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--brand-deep);
    font-size: 12px;
    font-weight: 900;
}

.card-body h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    color: #1f2937;
    font-weight: 900;
}

.card-body h3 a:hover {
    color: var(--brand);
}

.meta {
    margin: 7px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.one-line {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.7;
    min-height: 44px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag {
    display: inline-flex;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    color: #92400e;
    background: #fff7ed;
    border: 1px solid rgba(217, 119, 6, 0.14);
    font-size: 12px;
    font-weight: 700;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 24px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 74px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 13px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 12px 34px rgba(146, 64, 14, 0.07);
}

.rank-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 16px;
    font-weight: 950;
}

.rank-thumb {
    display: block;
    width: 74px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #ffedd5;
}

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

.rank-item h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 900;
    color: #1f2937;
}

.rank-item p,
.rank-item span {
    display: block;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}

.page-hero {
    margin: 34px 0;
    padding: 38px;
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.46), transparent 38%),
        linear-gradient(135deg, #78350f, #92400e 55%, #d97706);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 950;
    letter-spacing: -0.06em;
}

.page-hero p {
    margin: 0;
    max-width: 850px;
    color: #ffedd5;
    font-size: 17px;
    line-height: 1.85;
}

.filter-box {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px auto;
    gap: 12px;
    padding: 16px;
    margin: 24px 0;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(217, 119, 6, 0.14);
    box-shadow: 0 12px 34px rgba(146, 64, 14, 0.07);
}

.filter-box input,
.filter-box select {
    width: 100%;
    outline: 0;
    border: 1px solid rgba(217, 119, 6, 0.16);
    background: #fffaf0;
    border-radius: 16px;
    padding: 12px 14px;
    color: #1f2937;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--brand);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 34px;
    align-items: start;
    margin-bottom: 40px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    background: #ffedd5;
    box-shadow: var(--shadow);
}

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

.detail-info h1 {
    margin: 0 0 12px;
    color: #78350f;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.08em;
    font-weight: 950;
}

.detail-info .lead {
    margin: 16px 0 22px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.info-pills span {
    padding: 9px 12px;
    border-radius: 999px;
    color: #92400e;
    background: #fff7ed;
    border: 1px solid rgba(217, 119, 6, 0.16);
    font-weight: 800;
}

.player-section {
    margin: 36px 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.26);
    aspect-ratio: 16 / 9;
}

.player-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #111827;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background:
        radial-gradient(circle, rgba(245, 158, 11, 0.35), transparent 36%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.82), rgba(120, 53, 15, 0.72));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 24px 60px rgba(234, 88, 12, 0.38);
    font-size: 36px;
}

.content-panel {
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 16px 42px rgba(146, 64, 14, 0.08);
}

.content-panel h2 {
    margin: 0 0 14px;
    color: #78350f;
    font-size: 28px;
    font-weight: 950;
}

.content-panel p {
    margin: 0 0 16px;
    color: #374151;
    line-height: 2;
}

.content-panel p:last-child {
    margin-bottom: 0;
}

.site-footer {
    margin-top: 70px;
    padding: 46px 0 26px;
    background: #fff;
    border-top: 1px solid rgba(217, 119, 6, 0.12);
}

.footer-grid {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.8fr;
    gap: 30px;
}

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

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #78350f;
    font-size: 18px;
    font-weight: 950;
}

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

.footer-links a {
    color: #4b5563;
}

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

.copyright {
    width: min(var(--container), calc(100% - 32px));
    margin: 30px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(217, 119, 6, 0.12);
    font-size: 14px;
}

.empty-state {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 24px;
}

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 46px;
    }

    .hero-side {
        grid-template-columns: 220px minmax(0, 1fr);
        align-items: center;
    }

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

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

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

    .menu-button {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

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

    .hero {
        min-height: auto;
        border-radius: 0 0 26px 26px;
    }

    .hero-content {
        min-height: 720px;
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

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

    .logo-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .hero-content {
        min-height: 660px;
        padding: 34px 0 70px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-copy p {
        font-size: 16px;
    }

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

    .category-strip {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 12px;
    }

    .one-line {
        min-height: 0;
    }

    .rank-item {
        grid-template-columns: 44px 64px minmax(0, 1fr);
    }

    .rank-number {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .rank-thumb {
        width: 64px;
    }

    .page-hero {
        padding: 28px;
        border-radius: 26px;
    }

    .detail-info h1 {
        font-size: 38px;
    }

    .content-panel {
        padding: 22px;
    }
}
