:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --orange: #f97316;
    --blue: #38bdf8;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: rgba(148, 163, 184, 0.24);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #fdf2f8 34%, #eff6ff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
}

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

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

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pink), var(--orange), var(--blue));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

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

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--pink-dark);
    background: #fdf2f8;
}

.header-search,
.mobile-search,
.hero-search,
.page-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.header-search input,
.mobile-search input,
.hero-search input,
.page-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 12px 16px;
    color: #111827;
    background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button,
.page-search button {
    border: 0;
    color: #fff;
    font-weight: 800;
    padding: 12px 18px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.header-search {
    width: 280px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fdf2f8;
    cursor: pointer;
}

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

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
}

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

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

.home-hero,
.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, #ec4899 0%, #fb923c 50%, #38bdf8 100%);
}

.home-hero {
    min-height: 620px;
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.34), transparent 26%),
        radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.24), transparent 22%),
        rgba(0, 0, 0, 0.12);
}

.hero-inner {
    position: relative;
    z-index: 1;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    gap: 44px;
    align-items: center;
    padding: 72px 0 110px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 14px 0 20px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-eyebrow {
    color: rgba(255, 255, 255, 0.9);
}

.section-kicker {
    color: var(--pink-dark);
    font-size: 13px;
}

.hero-actions,
.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.primary-button,
.secondary-button,
.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.25s ease;
}

.primary-button {
    color: var(--pink-dark);
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.secondary-button,
.ghost-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

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

.hero-search {
    max-width: 560px;
    margin-top: 28px;
}

.hero-quick-links a {
    padding: 8px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.16);
}

.hero-stage {
    position: relative;
    min-height: 540px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    overflow: hidden;
    border-radius: 34px;
    opacity: 0;
    transform: translateX(28px) scale(0.98);
    pointer-events: none;
    box-shadow: var(--shadow);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.74) 100%);
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-slide-copy {
    position: relative;
    z-index: 1;
    padding: 32px;
}

.hero-slide-copy span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 800;
}

.hero-slide-copy h2 {
    margin: 8px 0 10px;
    font-size: 34px;
    line-height: 1.12;
}

.hero-slide-copy p {
    color: rgba(255, 255, 255, 0.88);
}

.hero-tags span,
.detail-tags span {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.hero-dots {
    position: absolute;
    left: 30px;
    bottom: -34px;
    display: flex;
    gap: 10px;
}

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

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

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 76px;
    fill: #fff7ed;
}

.section {
    padding: 70px 0;
}

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

.section-title h2 {
    margin: 6px 0 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.section-title a {
    color: var(--pink-dark);
    font-weight: 900;
}

.tint-section {
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.85), rgba(252, 231, 243, 0.88));
}

.soft-section {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(252, 231, 243, 0.72));
}

.movie-grid,
.featured-grid,
.category-grid,
.top-rank-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.poster-link,
.poster-wrap {
    display: block;
}

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

.movie-card-wide .poster-wrap {
    aspect-ratio: 16 / 11;
}

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

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

.year-badge,
.play-badge {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.year-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    color: #111827;
    background: rgba(255, 255, 255, 0.9);
}

.play-badge {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    color: #fff;
    background: rgba(236, 72, 153, 0.86);
}

.card-body {
    padding: 18px;
}

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

.card-meta a,
.card-meta span,
.detail-meta span {
    padding: 4px 10px;
    border-radius: 999px;
    color: #6b21a8;
    background: #f3e8ff;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.28;
}

.movie-card h3 a:hover {
    color: var(--pink-dark);
}

.movie-card p {
    display: -webkit-box;
    min-height: 54px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span {
    padding: 4px 9px;
    border: 1px solid rgba(236, 72, 153, 0.16);
    border-radius: 999px;
    color: var(--pink-dark);
    background: #fdf2f8;
    font-size: 12px;
    font-weight: 800;
}

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

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

.category-card {
    min-height: 150px;
    padding: 24px;
    color: #fff;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--pink), var(--orange), var(--blue));
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.18);
    transition: 0.3s ease;
}

.category-card:nth-child(3n + 2) {
    background: linear-gradient(135deg, #fb923c, #f43f5e, #ec4899);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #38bdf8, #6366f1, #ec4899);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(236, 72, 153, 0.28);
}

.category-card span {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.split-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
    padding: 42px;
    border-radius: 34px;
    color: #fff;
    background: linear-gradient(120deg, var(--pink), var(--orange), var(--blue));
    box-shadow: var(--shadow);
}

.split-panel h2 {
    margin: 10px 0;
    font-size: 42px;
}

.split-panel p {
    color: rgba(255, 255, 255, 0.86);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 70px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    transition: 0.25s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: #fff;
}

.rank-number {
    color: var(--pink-dark);
    font-size: 24px;
    font-weight: 950;
    text-align: center;
}

.rank-item img {
    width: 70px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-copy strong {
    display: block;
    color: #111827;
    line-height: 1.35;
}

.rank-copy em {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

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

.page-hero {
    padding: 88px 0 72px;
}

.compact-hero {
    text-align: center;
}

.compact-hero p {
    margin: 0 auto 28px;
}

.page-search {
    width: min(680px, 100%);
    margin: 26px auto 0;
}

.detail-hero {
    padding: 58px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
    gap: 34px;
    align-items: center;
}

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

.video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.56));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.big-play {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 999px;
    font-size: 38px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.35);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.detail-one-line {
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.detail-section {
    padding-top: 54px;
}

.content-panel {
    padding: 34px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.content-panel h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 28px;
}

.content-panel p {
    margin: 0 0 26px;
    color: #4b5563;
    font-size: 17px;
}

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

.empty-state {
    padding: 24px;
    text-align: center;
    color: var(--muted);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
}

.site-footer {
    color: #fff;
    background: #111827;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 0;
}

.site-footer p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.66);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(255, 255, 255, 0.78);
}

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

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

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

    .hero-inner,
    .detail-grid,
    .split-panel {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 500px;
    }

    .movie-grid.four-cols,
    .category-grid,
    .large-category-grid,
    .featured-grid,
    .top-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .header-inner {
        min-height: 66px;
    }

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

    .home-hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 48px 0 96px;
    }

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

    .hero-copy p,
    .page-hero p {
        font-size: 17px;
    }

    .hero-stage {
        min-height: 460px;
    }

    .hero-slide-copy {
        padding: 24px;
    }

    .hero-slide-copy h2 {
        font-size: 28px;
    }

    .section {
        padding: 46px 0;
    }

    .section-title,
    .footer-inner {
        display: block;
    }

    .section-title a {
        display: inline-flex;
        margin-top: 12px;
    }

    .movie-grid,
    .movie-grid.four-cols,
    .movie-grid.three-cols,
    .featured-grid,
    .top-rank-grid,
    .category-grid,
    .large-category-grid,
    .full-rank-list {
        grid-template-columns: 1fr;
    }

    .split-panel,
    .content-panel {
        padding: 24px;
        border-radius: 24px;
    }

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

    .rank-item img {
        width: 64px;
        height: 82px;
    }

    .footer-links {
        margin-top: 18px;
    }
}
