:root {
    --bg: #fffaf0;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(180, 83, 9, 0.16);
    --brand: #d97706;
    --brand-dark: #92400e;
    --brand-soft: #fef3c7;
    --accent: #f97316;
    --shadow: 0 22px 55px rgba(146, 64, 14, 0.16);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 35px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(18px);
}

.navbar {
    max-width: 1240px;
    height: 72px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.34);
}

.brand-text {
    font-size: 1.45rem;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--brand-dark), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--brand-soft);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--brand-dark);
}

.mobile-menu {
    display: none;
    padding: 0 22px 18px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
}

.mobile-menu.is-open {
    display: grid;
    gap: 10px;
}

.mobile-link {
    padding: 12px 4px;
    color: #4b5563;
    font-weight: 800;
}

.mobile-link.active {
    color: var(--brand);
}

main {
    overflow: hidden;
}

.hero-section {
    max-width: 1240px;
    margin: 34px auto 0;
    padding: 0 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: stretch;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    border-radius: 34px;
    overflow: hidden;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

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

.hero-media {
    position: relative;
    min-height: 100%;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(17, 24, 39, 0.72));
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: 70px 58px 92px 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: rgba(254, 243, 199, 0.9);
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.hero-copy .eyebrow {
    color: #fffbeb;
    background: rgba(251, 191, 36, 0.22);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.hero-copy h2 {
    margin: 18px 0 10px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-meta {
    margin: 0 0 18px;
    color: #fde68a;
    font-weight: 800;
}

.hero-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
}

.ghost-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.hero-controls {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-controls button {
    pointer-events: auto;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.46);
    backdrop-filter: blur(14px);
}

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 28px;
    border-radius: 99px;
    background: #fbbf24;
}

.hero-search-panel,
.page-hero,
.content-panel,
.rank-panel,
.category-card,
.player-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search-panel {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-search-panel h1,
.page-hero h1 {
    margin: 18px 0 14px;
    color: #111827;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-search-panel p,
.page-hero p {
    color: var(--muted);
    line-height: 1.9;
    font-size: 1.04rem;
}

.search-bar,
.inline-filter {
    display: flex;
    gap: 10px;
    margin-top: 26px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(180, 83, 9, 0.09);
}

.search-bar input,
.inline-filter input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: var(--text);
    background: transparent;
}

.search-bar button {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    font-weight: 900;
    cursor: pointer;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.quick-links a {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    font-weight: 800;
    font-size: 0.9rem;
}

.section-wrap {
    max-width: 1240px;
    margin: 34px auto 0;
    padding: 36px 22px;
}

.section-wrap.tinted {
    padding: 46px 22px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.58), rgba(255, 247, 237, 0.9));
}

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

.section-head h2 {
    margin: 10px 0 0;
    color: #111827;
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: -0.045em;
}

.compact-head h2 {
    font-size: 2rem;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 36px rgba(146, 64, 14, 0.09);
    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.38);
    box-shadow: 0 24px 54px rgba(146, 64, 14, 0.16);
}

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

.poster-link img {
    transition: transform 0.35s ease;
}

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

.rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #78350f;
    background: #fef3c7;
    font-weight: 950;
    box-shadow: 0 8px 20px rgba(120, 53, 15, 0.18);
}

.rating-badge.big {
    top: 18px;
    right: 18px;
    font-size: 1.1rem;
}

.card-body {
    padding: 16px;
}

.card-meta {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.movie-card h3,
.ranking-card h2 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-card p,
.ranking-card p {
    margin: 10px 0 12px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.92rem;
}

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

.tag {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #fff7ed;
    border: 1px solid rgba(251, 191, 36, 0.32);
    font-size: 0.76rem;
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 26px;
    color: #fff;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 18px 38px rgba(146, 64, 14, 0.16);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.86));
}

.category-tile img {
    position: absolute;
    inset: 0;
}

.category-tile span,
.category-tile small {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 1.45rem;
    font-weight: 950;
}

.category-tile small {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.rank-panel {
    padding: 24px;
    height: fit-content;
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.rank-list li {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #fff7ed;
}

.rank-list small {
    grid-column: 2 / 3;
    color: var(--muted);
    font-size: 0.8rem;
}

.rank-num {
    color: var(--brand);
    font-weight: 950;
}

.rank-num.large {
    font-size: 2rem;
}

.page-hero {
    max-width: 1240px;
    margin: 34px auto 0;
    padding: 54px 42px;
}

.slim-hero {
    min-height: 250px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 800;
}

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

.category-card a {
    display: block;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 160px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.category-card-body {
    padding: 22px;
}

.category-card-body h2 {
    margin: 0 0 10px;
}

.category-card-body p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.75;
}

.category-card-body span {
    color: var(--brand);
    font-weight: 950;
}

.empty-state {
    display: none;
    margin-top: 28px;
    padding: 28px;
    border-radius: 22px;
    text-align: center;
    color: var(--muted);
    background: #fff7ed;
}

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 64px 120px minmax(0, 1fr) 64px;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(146, 64, 14, 0.08);
}

.ranking-cover {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
}

.score {
    color: var(--brand);
    font-size: 1.3rem;
}

.detail-hero {
    max-width: 1240px;
    margin: 34px auto 0;
    padding: 0 22px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.88)),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.32), transparent 22rem);
    box-shadow: var(--shadow);
}

.detail-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 20px 44px rgba(146, 64, 14, 0.22);
}

.detail-copy h1 {
    margin: 18px 0 14px;
    color: #111827;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.lead {
    color: #4b5563;
    font-size: 1.18rem;
    line-height: 1.9;
    max-width: 820px;
}

.large-tags {
    margin: 24px 0;
}

.player-wrap {
    padding: 18px;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #111827;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.72));
    cursor: pointer;
    font-weight: 950;
    font-size: 1.1rem;
}

.play-layer.is-hidden {
    display: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    color: #78350f;
    background: #fef3c7;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.content-panel {
    padding: 30px;
}

.content-panel h2 {
    margin: 0 0 18px;
    font-size: 1.7rem;
}

.content-panel p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.95;
}

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

.site-footer {
    margin-top: 46px;
    color: #fffbeb;
    background: linear-gradient(180deg, #92400e, #451a03);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner strong {
    font-size: 1.35rem;
}

.footer-inner p {
    max-width: 680px;
    color: rgba(255, 251, 235, 0.78);
    line-height: 1.75;
}

.footer-links {
    display: flex;
    gap: 18px;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .hero-section,
    .two-column,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: 540px;
    }

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

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

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

    .menu-button {
        display: block;
    }

    .hero-section,
    .section-wrap,
    .page-hero,
    .detail-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

    .hero-media {
        min-height: 360px;
    }

    .hero-media::after {
        background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.85));
    }

    .hero-copy {
        padding: 28px 24px 92px;
        justify-content: flex-end;
    }

    .hero-search-panel,
    .page-hero {
        padding: 32px 22px;
    }

    .movie-grid,
    .wide-grid,
    .small-grid,
    .related-grid,
    .category-grid,
    .category-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-card {
        grid-template-columns: 44px 86px minmax(0, 1fr);
    }

    .ranking-card .score {
        grid-column: 3 / 4;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .navbar {
        height: 64px;
        padding: 0 16px;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .hero-section {
        margin-top: 18px;
        gap: 18px;
    }

    .hero-carousel {
        min-height: 690px;
        border-radius: 26px;
    }

    .hero-media {
        min-height: 300px;
    }

    .hero-copy h2,
    .detail-copy h1,
    .hero-search-panel h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

    .hero-search-panel,
    .page-hero,
    .detail-grid,
    .content-panel {
        padding: 24px 18px;
    }

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

    .search-bar input,
    .inline-filter input {
        min-height: 42px;
    }

    .movie-grid,
    .wide-grid,
    .small-grid,
    .related-grid,
    .category-grid,
    .category-card-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        gap: 22px;
    }

    .detail-poster {
        max-width: 300px;
        width: 100%;
        margin: 0 auto;
    }

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

    .ranking-cover {
        width: 130px;
    }
}
