* {
    box-sizing: border-box;
}

:root {
    --orange: #f97316;
    --orange-dark: #c2410c;
    --amber: #f59e0b;
    --pink: #ec4899;
    --rose: #fb7185;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --paper: #ffffff;
    --soft: #fff7ed;
    --shadow: 0 18px 48px rgba(194, 65, 12, 0.16);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 42%, #fff1f2 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.96), rgba(236, 72, 153, 0.94));
    box-shadow: 0 10px 32px rgba(194, 65, 12, 0.22);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: 1220px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--orange-dark);
    background: #ffffff;
    box-shadow: inset 0 -3px 0 rgba(249, 115, 22, 0.18);
}

.brand-text {
    color: #ffffff;
    font-size: 1.35rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    color: #fff7ed;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.9);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(360px, 32vw);
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    outline: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    transition: 0.25s ease;
}

.header-search input,
.mobile-search input {
    padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #fdba74;
    box-shadow: 0 0 0 4px rgba(253, 186, 116, 0.34);
}

.header-search button,
.mobile-search button,
.hero-search button,
.filter-bar button,
.primary-button,
.ghost-button,
.play-button,
.category-card .category-arrow,
.text-link {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.25s ease;
}

.header-search button,
.mobile-search button {
    padding: 10px 16px;
    color: #9a3412;
    background: #ffffff;
}

.header-search button:hover,
.mobile-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(124, 45, 18, 0.2);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 9px;
}

.mobile-menu {
    display: none;
    padding: 8px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.mobile-link {
    display: block;
    margin: 4px 0;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.page-shell,
.section,
.detail-shell {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    color: #ffffff;
    background: radial-gradient(circle at 18% 18%, rgba(255, 237, 213, 0.36), transparent 30%), linear-gradient(135deg, #7c2d12 0%, #9f1239 45%, #451a03 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.44;
}

.hero::before {
    width: 340px;
    height: 340px;
    left: -120px;
    top: 90px;
    background: rgba(251, 146, 60, 0.46);
}

.hero::after {
    width: 460px;
    height: 460px;
    right: -160px;
    bottom: -130px;
    background: rgba(236, 72, 153, 0.38);
}

.hero-slider {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    min-height: 640px;
    margin: 0 auto;
    padding: 72px 24px 46px;
}

.hero-slide {
    position: absolute;
    inset: 0 24px 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 44px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-copy {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    box-shadow: 0 28px 80px rgba(67, 20, 7, 0.3);
    backdrop-filter: blur(20px);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffedd5;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero h1 span {
    display: block;
    color: #fed7aa;
}

.hero-lead {
    max-width: 680px;
    margin: 0 0 24px;
    color: #ffedd5;
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 24px 0;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
}

.primary-button {
    color: #7c2d12;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(67, 20, 7, 0.24);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(67, 20, 7, 0.28);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.1);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-search {
    display: flex;
    max-width: 620px;
    gap: 10px;
    margin-top: 22px;
}

.hero-search input {
    padding: 16px 18px;
    font-size: 1rem;
}

.hero-search button {
    min-width: 108px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 14px 28px rgba(194, 65, 12, 0.28);
}

.hero-visual {
    position: relative;
    min-height: 500px;
}

.hero-poster {
    position: absolute;
    inset: 28px 42px 42px 42px;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 34px 90px rgba(67, 20, 7, 0.46);
    transform: rotate(2deg);
}

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

.hero-info-card {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;
    background: rgba(69, 26, 3, 0.72);
    box-shadow: 0 20px 42px rgba(67, 20, 7, 0.3);
    backdrop-filter: blur(18px);
}

.hero-info-card h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.hero-info-card p {
    margin: 0 0 14px;
    color: #ffedd5;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

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

.section {
    padding-top: 76px;
    padding-bottom: 76px;
}

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

.section-eyebrow,
.movie-meta-line,
.breadcrumbs {
    color: var(--orange-dark);
    font-size: 0.9rem;
    font-weight: 800;
}

.section-heading h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: #111827;
    line-height: 1.16;
}

.section-heading h2,
.page-title h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-heading p,
.page-title p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.8);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 64px rgba(194, 65, 12, 0.22);
}

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

.poster-link img,
.rank-poster img,
.detail-poster img,
.recommend-card img,
.category-preview img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 900;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.movie-meta-line span {
    display: inline-flex;
    align-items: center;
}

.movie-card h3,
.rank-content h3,
.recommend-card h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.08rem;
    line-height: 1.32;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.recommend-card h3 a:hover {
    color: var(--orange);
}

.movie-card p,
.rank-content p,
.recommend-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 0.8rem;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    padding: 24px;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: var(--shadow);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #f59e0b, #fb7185);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #c2410c, #f97316);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 1.6rem;
}

.category-card p {
    position: relative;
    z-index: 1;
    max-width: 360px;
    margin: 0 0 18px;
    color: #ffedd5;
}

.category-preview {
    position: absolute;
    right: -24px;
    bottom: -26px;
    display: grid;
    grid-template-columns: repeat(3, 78px);
    gap: 10px;
    transform: rotate(-6deg);
    opacity: 0.62;
}

.category-preview img {
    height: 110px;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(67, 20, 7, 0.22);
}

.category-arrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    color: #7c2d12;
    background: #ffffff;
}

.page-hero {
    padding: 78px 0 42px;
    background: linear-gradient(135deg, #9a3412, #be123c 56%, #7c2d12);
    color: #ffffff;
}

.page-title {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-title h1,
.page-title p {
    color: #ffffff;
}

.page-title p {
    color: #ffedd5;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 160px 120px;
    gap: 12px;
    padding: 18px;
    margin: -28px auto 34px;
    max-width: 1220px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.filter-bar input,
.filter-bar select {
    min-height: 48px;
    padding: 0 16px;
    border-color: #fed7aa;
    background: #fff7ed;
}

.filter-bar button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-size: 1.18rem;
    font-weight: 900;
}

.rank-poster {
    display: block;
    overflow: hidden;
    width: 92px;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    background: #ffedd5;
}

.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    color: var(--orange-dark);
    background: #ffedd5;
}

.text-link:hover {
    color: #ffffff;
    background: var(--orange);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 38px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(124, 45, 18, 0.94), rgba(159, 18, 57, 0.92));
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.24;
    filter: blur(3px);
    transform: scale(1.03);
}

.detail-shell {
    position: relative;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    aspect-ratio: 3 / 4.12;
    background: #ffedd5;
    box-shadow: 0 30px 72px rgba(67, 20, 7, 0.36);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fed7aa;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.detail-title h1 {
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.detail-title p {
    max-width: 850px;
    margin: 16px 0 0;
    color: #ffedd5;
    font-size: 1.08rem;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.9);
    font-weight: 900;
}

.player-panel {
    max-width: 1220px;
    margin: 46px auto 0;
    padding: 0 24px;
}

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

.player-box video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-box video {
    z-index: 1;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    background-size: cover;
    background-position: center;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.66), rgba(124, 45, 18, 0.58));
}

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

.play-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 26px;
    color: #7c2d12;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.play-button span:first-child {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    padding-top: 42px;
}

.content-card,
.side-card {
    border: 1px solid rgba(254, 215, 170, 0.82);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.content-card {
    padding: 32px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 16px;
    color: #111827;
}

.content-card p {
    margin: 0 0 18px;
    color: #374151;
    font-size: 1rem;
}

.side-card {
    padding: 18px;
    align-self: start;
}

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

.recommend-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    transition: 0.25s ease;
}

.recommend-card:hover {
    background: #fff7ed;
}

.recommend-card img {
    height: 104px;
    border-radius: 14px;
    background: #ffedd5;
}

.site-footer {
    margin-top: 76px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    max-width: 1220px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.35rem;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer p {
    max-width: 520px;
    margin: 12px 0 0;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px;
    text-align: center;
    color: #9ca3af;
}

.hidden-by-filter {
    display: none !important;
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-items: start;
        padding-top: 26px;
    }

    .hero-visual {
        min-height: 410px;
    }

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

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

@media (max-width: 760px) {
    .header-inner,
    .page-shell,
    .section,
    .detail-shell,
    .player-panel,
    .page-title {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        min-height: 840px;
    }

    .hero-slider {
        min-height: 790px;
        padding: 32px 16px 58px;
    }

    .hero-slide {
        inset: 0 16px;
        gap: 20px;
    }

    .hero-copy {
        padding: 20px;
        border-radius: 24px;
    }

    .hero-search,
    .hero-actions,
    .mobile-search {
        flex-direction: column;
    }

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

    .hero-poster {
        inset: 0 28px 70px;
        border-radius: 24px;
    }

    .hero-info-card {
        padding: 16px;
        border-radius: 22px;
    }

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

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

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

    .category-grid {
        gap: 16px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
        margin-left: 16px;
        margin-right: 16px;
    }

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

    .rank-item .text-link {
        grid-column: 2 / -1;
        justify-self: start;
    }

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

    .rank-poster {
        width: 72px;
    }

    .detail-shell {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 16px;
        align-items: center;
    }

    .detail-poster {
        border-radius: 18px;
        border-width: 3px;
    }

    .detail-meta span {
        font-size: 0.82rem;
    }

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

@media (max-width: 480px) {
    .brand-text {
        font-size: 1.1rem;
    }

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

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

    .detail-poster {
        width: min(220px, 70vw);
    }
}
