:root {
    --page-bg: #fff7ed;
    --text-main: #111827;
    --text-soft: #6b7280;
    --line: rgba(251, 146, 60, 0.22);
    --orange: #f97316;
    --pink: #ec4899;
    --purple: #8b5cf6;
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

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

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

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.14);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

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

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

.logo-text {
    font-size: clamp(20px, 2vw, 28px);
    background: linear-gradient(135deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
}

.primary-nav a {
    position: relative;
    padding: 26px 0;
    transition: color 0.24s ease;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.24s ease;
}

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

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    color: var(--orange);
    font-size: 24px;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid rgba(249, 115, 22, 0.16);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.mobile-menu a {
    display: block;
    padding: 13px 15px;
    border-radius: 14px;
    font-weight: 700;
    color: #374151;
}

.mobile-menu a.is-active,
.mobile-menu a:hover {
    color: var(--orange);
    background: #fff7ed;
}

main {
    padding-top: 74px;
}

.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: #111827;
}

.hero-track {
    position: relative;
    min-height: 720px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 720px;
    object-fit: cover;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 82% 20%, rgba(236, 72, 153, 0.36), transparent 30%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58) 48%, rgba(17, 24, 39, 0.12)),
        linear-gradient(0deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 28%);
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: max(32px, calc((100% - 1180px) / 2));
    top: 50%;
    transform: translateY(-48%);
    width: min(650px, calc(100% - 64px));
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0 0 28px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-tags,
.movie-tags,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.movie-tags span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 13px;
    font-weight: 800;
}

.hero .hero-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.3);
}

.hero .btn-primary {
    color: var(--orange);
    background: #ffffff;
}

.btn-ghost {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-soft {
    color: var(--orange);
    background: #fff7ed;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: max(32px, calc((100% - 1180px) / 2));
    bottom: 82px;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.section {
    padding: 76px 0;
}

.section-soft {
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

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

.section-title h1,
.section-title h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.section-title p {
    margin: 12px 0 0;
    max-width: 720px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.8;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.13);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.32);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

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

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

.badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.card-body h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 20px;
    line-height: 1.35;
    transition: color 0.24s ease;
}

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

.card-body p {
    margin: 0 0 16px;
    color: var(--text-soft);
    line-height: 1.72;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 900;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 28px;
    border-radius: 30px;
    border: 1px solid rgba(249, 115, 22, 0.16);
    background:
        radial-gradient(circle at 85% 20%, rgba(236, 72, 153, 0.18), transparent 28%),
        linear-gradient(135deg, #ffffff, #fff7ed 58%, #fdf2f8);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.category-card p {
    margin: 0 0 20px;
    color: var(--text-soft);
    line-height: 1.8;
}

.filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 160px;
    gap: 14px;
    margin: 0 0 32px;
    padding: 18px;
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 44px rgba(15, 23, 42, 0.06);
}

.filters input,
.filters select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    padding: 0 14px;
    font: inherit;
    outline: none;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 120px minmax(0, 1fr) 110px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

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

.rank-cover {
    overflow: hidden;
    height: 78px;
    border-radius: 18px;
    background: #ffedd5;
}

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

.rank-info h2,
.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.score {
    justify-self: end;
    color: var(--orange);
    font-size: 22px;
    font-weight: 900;
}

.detail-hero {
    padding: 54px 0 72px;
    background:
        radial-gradient(circle at 80% 8%, rgba(236, 72, 153, 0.18), transparent 28%),
        linear-gradient(135deg, #fff7ed, #ffffff 45%, #fdf2f8);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 410px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

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

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.detail-copy p {
    margin: 0 0 22px;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.85;
}

.player-section {
    padding: 72px 0;
    background: #111827;
    color: #ffffff;
}

.player-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.player-box video {
    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: 16px;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.32)),
        var(--cover-image) center / cover;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
    display: inline-flex;
    width: 86px;
    height: 86px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 20px 50px rgba(236, 72, 153, 0.35);
    font-size: 32px;
    cursor: pointer;
}

.player-cover strong {
    font-size: 22px;
}

.player-side {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
}

.player-side h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.player-side p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.82;
}

.content-card {
    padding: 30px;
    border: 1px solid rgba(249, 115, 22, 0.13);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.06);
}

.content-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.content-card p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.95;
}

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

.no-results {
    display: none;
    padding: 26px;
    border-radius: 24px;
    color: var(--text-soft);
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.14);
}

.site-footer {
    padding: 58px 0 28px;
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
    border-top: 1px solid rgba(249, 115, 22, 0.14);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 34px;
}

.footer-grid p,
.footer-grid a {
    color: var(--text-soft);
    line-height: 1.8;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 14px;
    font-size: 20px;
}

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

.copyright {
    padding-top: 24px;
    border-top: 1px solid rgba(249, 115, 22, 0.14);
    color: #9ca3af;
    font-size: 14px;
}

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

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

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

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

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero,
    .hero-track,
    .hero-slide img {
        min-height: 660px;
    }

    .hero-content {
        top: 53%;
    }

    .section-title {
        display: block;
    }

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

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

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

    .score {
        grid-column: 3;
        justify-self: start;
    }

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

@media (max-width: 560px) {
    .nav-shell {
        height: 66px;
    }

    main {
        padding-top: 66px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

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

    .hero,
    .hero-track,
    .hero-slide img {
        min-height: 620px;
    }

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

    .hero-content {
        left: 20px;
        width: calc(100% - 40px);
    }

    .hero-dots {
        left: 20px;
        bottom: 48px;
    }

    .section {
        padding: 54px 0;
    }

    .movie-grid,
    .feature-grid,
    .category-grid,
    .two-column,
    .filters {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 78px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-cover {
        height: 70px;
    }

    .card-body {
        padding: 18px;
    }

    .detail-copy h1 {
        font-size: 40px;
    }
}
