* {
    box-sizing: border-box;
}

:root {
    --bg: #fff7fb;
    --bg-soft: #f8fbff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(148, 163, 184, 0.24);
    --card: rgba(255, 255, 255, 0.9);
    --pink: #ec4899;
    --purple: #8b5cf6;
    --blue: #38bdf8;
    --shadow: 0 24px 60px rgba(31, 41, 55, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 34%), radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 28%), linear-gradient(180deg, #fff7fb 0%, #f8fbff 48%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(56, 189, 248, 0.18));
}

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.3);
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #be185d;
    background: rgba(236, 72, 153, 0.1);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(236, 72, 153, 0.12);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #be185d;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(88, 28, 135, 0.72), rgba(15, 23, 42, 0.28)), linear-gradient(0deg, rgba(17, 24, 39, 0.76), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 52px;
    min-height: 680px;
    padding: 80px 0 70px;
}

.hero-copy {
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(236, 72, 153, 0.12);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    color: #fce7f3;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 820px;
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
    line-height: 1.85;
}

.hero-meta,
.detail-meta,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-meta span,
.detail-meta span,
.movie-meta-line span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #475569;
    background: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

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

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

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

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

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

.primary-btn.small {
    min-height: 42px;
    padding: 0 18px;
    font-size: 14px;
}

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

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.35);
    transform: rotate(3deg);
}

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

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

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

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

.quick-entry {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 22px;
    margin-top: -48px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel {
    display: flex;
    gap: 10px;
    width: 100%;
}

.movie-search {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 18px;
    padding: 0 16px;
    outline: 0;
    background: #ffffff;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.movie-search:focus {
    border-color: rgba(236, 72, 153, 0.56);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.search-clear {
    min-width: 76px;
    border: 0;
    border-radius: 18px;
    color: #be185d;
    background: rgba(236, 72, 153, 0.12);
    font-weight: 900;
    cursor: pointer;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.category-chips a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #7c3aed;
    background: rgba(139, 92, 246, 0.1);
    font-size: 14px;
    font-weight: 900;
}

.section-block {
    padding: 70px 0 0;
}

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

.section-heading h2,
.simple-hero h1,
.detail-info h1,
.content-card h2 {
    margin: 12px 0 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading a {
    color: #be185d;
    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));
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(56, 189, 248, 0.2));
}

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

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

.poster-play,
.rank-badge {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.poster-play {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 42px;
    height: 32px;
    padding: 0 10px;
    font-weight: 900;
}

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

.movie-card h2 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover {
    color: #be185d;
}

.movie-card p {
    min-height: 64px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

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

.tag-list span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #7c3aed;
    background: rgba(139, 92, 246, 0.1);
    font-size: 12px;
    font-weight: 800;
}

.large-tags span {
    padding: 8px 12px;
    font-size: 13px;
}

.split-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 26px;
    align-items: start;
}

.feature-panel,
.content-card,
.category-card,
.player-shell {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.feature-panel {
    position: sticky;
    top: 96px;
    padding: 30px;
}

.feature-panel h2 {
    margin: 16px 0 14px;
    font-size: 38px;
    line-height: 1.08;
}

.feature-panel p,
.simple-hero p,
.content-card p,
.detail-line {
    color: var(--muted);
    line-height: 1.85;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 72px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    transition: transform 0.2s ease, background 0.2s ease;
}

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

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-weight: 900;
}

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

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    font-size: 17px;
}

.rank-info em {
    margin-top: 6px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    padding-top: 72px;
}

.simple-hero {
    max-width: 1180px;
}

.simple-hero p {
    max-width: 760px;
    font-size: 18px;
}

.simple-hero .search-panel {
    max-width: 680px;
    margin-top: 24px;
}

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

.category-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(252, 231, 243, 0.7));
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 58px rgba(236, 72, 153, 0.16);
}

.category-card span {
    color: #be185d;
    font-weight: 900;
}

.category-card strong {
    margin-top: 16px;
    font-size: 28px;
    line-height: 1.15;
}

.category-card em {
    margin-top: 18px;
    color: var(--muted);
    font-style: normal;
    line-height: 1.7;
}

.movie-detail-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    background: radial-gradient(circle at 24% 20%, rgba(236, 72, 153, 0.24), transparent 34%), linear-gradient(135deg, #111827, #4c1d95 56%, #0f172a);
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-info {
    color: #ffffff;
}

.detail-info h1 {
    color: #ffffff;
    font-size: clamp(38px, 6vw, 72px);
}

.detail-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.detail-info .eyebrow {
    color: #fce7f3;
    background: rgba(255, 255, 255, 0.14);
}

.detail-meta {
    margin: 22px 0;
}

.detail-info .detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.player-section {
    margin-top: 54px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #020617;
}

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

.player-mask {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.28), rgba(15, 23, 42, 0.74));
    cursor: pointer;
    transition: opacity 0.24s ease;
}

.player-mask span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3);
    font-size: 34px;
}

.player-mask strong {
    font-size: 20px;
}

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

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

.content-card {
    padding: 28px;
}

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

.site-footer {
    margin-top: 80px;
    padding: 42px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-footer p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #be185d;
    font-weight: 900;
}

.is-filtered-out {
    display: none;
}

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

    .hero-content {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 820px) {
    .mobile-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero-content,
    .quick-entry,
    .split-layout,
    .detail-layout,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider,
    .hero-content {
        min-height: 760px;
    }

    .hero-poster {
        width: min(260px, 80vw);
        margin: 0 auto;
    }

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

    .feature-panel {
        position: static;
    }
}

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

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

    .hero-copy p,
    .detail-line,
    .simple-hero p {
        font-size: 16px;
    }

    .quick-entry {
        margin-top: -28px;
        padding: 16px;
    }

    .search-panel {
        flex-direction: column;
    }

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

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

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

    .detail-poster {
        width: min(270px, 80vw);
        margin: 0 auto;
    }
}
