:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --pink-dark: #db2777;
    --gold: #facc15;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --surface: #ffffff;
    --soft: #fff7ed;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fff1f2 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #ffedd5;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.08);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 22px rgba(236, 72, 153, 0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    color: transparent;
}

.logo-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.75rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--orange);
}

.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-search input {
    width: 250px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 10px 16px;
    outline: none;
    background: #ffffff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-search input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.site-search button,
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    box-shadow: 0 12px 22px rgba(249, 115, 22, 0.18);
}

.secondary-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.site-search button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 28px rgba(236, 72, 153, 0.22);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    color: var(--ink);
    background: #fff7ed;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #ffedd5;
    padding: 14px 16px 18px;
    background: #ffffff;
}

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

.mobile-nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

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

.hero {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38) 52%, rgba(0, 0, 0, 0.22));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-panel {
    max-width: 720px;
    color: #ffffff;
    padding: 0 72px 0 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fdba74;
    font-weight: 760;
    margin-bottom: 16px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
    font-weight: 700;
    font-size: 0.88rem;
}

.hero .hero-meta span {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.86);
}

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

.hero-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.34);
}

.hero-control--prev {
    left: 18px;
}

.hero-control--next {
    right: 18px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.section {
    padding: 56px 0;
}

.section--tight {
    padding: 32px 0;
}

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

.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
}

.section-head p,
.page-title p {
    color: var(--muted);
    line-height: 1.8;
    margin: 8px 0 0;
}

.more-link {
    color: var(--orange);
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.movie-card__badge,
.movie-card__year {
    position: absolute;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    padding: 5px 9px;
    font-size: 0.78rem;
    font-weight: 760;
}

.movie-card__badge {
    left: 10px;
    top: 10px;
    background: rgba(249, 115, 22, 0.88);
}

.movie-card__year {
    right: 10px;
    bottom: 10px;
}

.movie-card__body {
    padding: 16px;
}

.movie-card__body h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    line-height: 1.35;
}

.movie-card__body h3 a:hover {
    color: var(--orange);
}

.movie-card__meta {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.movie-card__text {
    margin: 0;
    color: #4b5563;
    line-height: 1.65;
    font-size: 0.92rem;
}

.feature-band {
    padding: 34px;
    border-radius: 34px;
    background: linear-gradient(120deg, #fff7ed, #fdf2f8);
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.12);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 84px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.rank-number {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-weight: 850;
}

.rank-item img {
    width: 84px;
    height: 112px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.rank-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

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

.category-card {
    display: block;
    padding: 26px;
    min-height: 190px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, color 0.24s ease, background 0.24s ease;
}

.category-card:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    transform: translateY(-5px);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
}

.category-card p {
    margin: 0;
    color: inherit;
    opacity: 0.82;
    line-height: 1.7;
}

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

.compact-card {
    display: grid;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.compact-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.compact-card span {
    font-weight: 760;
    line-height: 1.35;
}

.page-hero {
    padding: 58px 0 38px;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.2), transparent 35%), radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 38%);
}

.page-title {
    max-width: 820px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 26px;
}

.filter-button {
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 9px 14px;
    color: #9a3412;
    background: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

.filter-button.is-active,
.filter-button:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    border-color: transparent;
}

.no-results {
    display: none;
    padding: 32px;
    border-radius: 24px;
    color: var(--muted);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.no-results.is-visible {
    display: block;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-hero__bg {
    position: absolute;
    inset: 0;
}

.detail-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.05);
    transform: scale(1.06);
    opacity: 0.42;
}

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

.detail-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: end;
    padding: 54px 0;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.1;
}

.detail-info p {
    margin: 0 0 18px;
    color: #e5e7eb;
    line-height: 1.85;
    font-size: 1.05rem;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-weight: 760;
}

.player-section {
    padding: 52px 0 28px;
}

.player-box {
    overflow: hidden;
    border-radius: 30px;
    background: #050505;
    box-shadow: var(--shadow);
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.24));
}

.player-cover.is-hidden {
    display: none;
}

.player-cover span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.28);
    font-size: 2.1rem;
    padding-left: 5px;
}

.content-card {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
    margin: 0 0 14px;
}

.content-card p {
    color: #374151;
    line-height: 1.9;
}

.detail-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
    align-items: start;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer {
    margin-top: 58px;
    padding: 42px 0;
    color: #6b7280;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 28px;
}

.site-footer strong {
    color: #ffffff;
    font-size: 1.25rem;
}

.site-footer p {
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-content: start;
}

.footer-links a {
    color: #e5e7eb;
}

.footer-links a:hover {
    color: #fdba74;
}

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

    .site-search {
        margin-left: auto;
    }

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

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

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

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

    .header-inner > .site-search {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .logo-text small {
        display: none;
    }

    .hero {
        height: 560px;
    }

    .hero-panel {
        padding: 0 48px 0 0;
    }

    .section-head {
        display: block;
    }

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

    .rank-item {
        grid-template-columns: 42px 70px 1fr;
    }

    .rank-item .primary-button {
        grid-column: 2 / 4;
        text-align: center;
    }

    .detail-wrap {
        grid-template-columns: 1fr;
        padding: 38px 0;
    }

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

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

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero-control {
        width: 40px;
        height: 40px;
    }

    .hero-control--prev {
        left: 8px;
    }

    .hero-control--next {
        right: 8px;
    }

    .hero-panel {
        padding: 0 34px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid--wide,
    .category-grid,
    .compact-strip {
        grid-template-columns: 1fr;
    }

    .feature-band {
        padding: 22px;
        border-radius: 24px;
    }

    .rank-item {
        grid-template-columns: 38px 1fr;
    }

    .rank-item img {
        display: none;
    }

    .rank-item .primary-button {
        grid-column: 1 / 3;
    }
}
