:root {
    --marshmallow-pink: #ffb6c1;
    --marshmallow-blue: #87ceeb;
    --marshmallow-mint: #98d8c8;
    --marshmallow-peach: #ffdab9;
    --marshmallow-cream: #fff8dc;
    --marshmallow-lavender: #e6e6fa;
    --text-main: #1f2937;
    --text-soft: #667085;
    --border-soft: #eef2f7;
    --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-soft-lg: 0 4px 25px rgba(0, 0, 0, 0.1);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text-main);
    background: #f9fafb;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(238, 242, 247, 0.8);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--marshmallow-pink), var(--marshmallow-blue), var(--marshmallow-mint));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--marshmallow-pink), var(--marshmallow-blue));
    box-shadow: 0 10px 22px rgba(255, 182, 193, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #4b5563;
    font-weight: 600;
}

.desktop-nav a {
    position: relative;
    transition: color 0.25s ease;
}

.desktop-nav a::after {
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    content: "";
    border-radius: 999px;
    background: var(--marshmallow-pink);
    transition: width 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #ef7f95;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.header-search,
.hero-search,
.search-page-form,
.inline-filter {
    display: flex;
    align-items: center;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.header-search input,
.hero-search input,
.search-page-form input,
.inline-filter input {
    width: 220px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 14px;
    color: var(--text-main);
}

.header-search button,
.hero-search button,
.search-page-form button,
.inline-filter button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--marshmallow-pink);
    padding: 10px 18px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.hero-search button:hover,
.search-page-form button:hover,
.inline-filter button:hover,
.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft-lg);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

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

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--border-soft);
}

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

.mobile-panel form {
    display: flex;
    margin: 14px auto;
    max-width: 520px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.mobile-panel input {
    flex: 1;
    border: 0;
    padding: 12px 16px;
    outline: 0;
}

.mobile-panel button {
    border: 0;
    color: #ffffff;
    background: var(--marshmallow-pink);
    padding: 0 18px;
}

.mobile-panel nav {
    display: grid;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
}

.mobile-panel nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 76px 0 64px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 182, 193, 0.32), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(135, 206, 235, 0.28), transparent 28%),
        linear-gradient(135deg, rgba(255, 248, 220, 0.88), rgba(230, 230, 250, 0.72));
}

.hero-section::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.28;
    background-image: radial-gradient(rgba(255, 182, 193, 0.7) 1px, transparent 1px);
    background-size: 28px 28px;
}

.hero-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    filter: blur(36px);
    opacity: 0.42;
}

.hero-glow-a {
    left: -90px;
    top: 60px;
    background: var(--marshmallow-pink);
}

.hero-glow-b {
    right: -80px;
    bottom: 20px;
    background: var(--marshmallow-blue);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 48px;
    align-items: center;
}

.hero-badge,
.page-hero span,
.section-heading span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #ef7f95;
    font-size: 14px;
    font-weight: 800;
    padding: 8px 16px;
    box-shadow: var(--shadow-soft);
}

.hero-copy h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(44px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--marshmallow-pink), var(--marshmallow-blue), var(--marshmallow-mint));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    margin: 24px 0;
    max-width: 680px;
    color: #4b5563;
    font-size: 20px;
}

.hero-search {
    max-width: 560px;
    margin-bottom: 24px;
}

.hero-search input {
    flex: 1;
    width: auto;
}

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

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--marshmallow-pink);
    padding: 13px 24px;
    box-shadow: 0 14px 26px rgba(255, 182, 193, 0.38);
}

.ghost-button {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.88);
    padding: 13px 24px;
    box-shadow: var(--shadow-soft);
}

.hero-categories {
    margin-top: 22px;
}

.hero-categories a {
    padding: 8px 13px;
    border-radius: 999px;
    color: #536071;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.hero-carousel {
    position: relative;
    min-height: 610px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    border-radius: 34px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(31, 41, 55, 0.16);
    opacity: 0;
    transform: scale(0.96) translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

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

.hero-poster {
    position: absolute;
    inset: 0;
}

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

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

.hero-slide-text {
    position: relative;
    z-index: 1;
    padding: 32px;
    color: #ffffff;
}

.hero-slide-text span {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.hero-slide-text h2 {
    margin: 10px 0 12px;
    font-size: 30px;
    line-height: 1.2;
}

.hero-slide-text p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
}

.text-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    padding: 10px 18px;
    backdrop-filter: blur(10px);
}

.hero-dots {
    position: absolute;
    z-index: 2;
    left: 32px;
    top: 28px;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 28px;
    background: #ffffff;
}

.feature-strip {
    padding: 30px 0;
    background: #ffffff;
}

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

.feature-grid article,
.category-card,
.movie-card,
.side-box,
.text-panel,
.player-card,
.rank-row,
.cta-section > div {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.feature-grid article {
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-grid article:hover,
.movie-card:hover,
.category-card:hover,
.rank-row:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft-lg);
}

.feature-grid span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ef7f95;
    background: rgba(255, 182, 193, 0.2);
    font-weight: 800;
}

.feature-grid h3,
.category-card h2,
.category-card h3 {
    margin: 14px 0 8px;
}

.feature-grid p,
.category-card p,
.section-heading p,
.movie-card p,
.text-panel p,
.rank-row p,
.cta-section p,
.site-footer p {
    color: var(--text-soft);
}

.page-section {
    padding: 64px 0;
}

.soft-section {
    background: linear-gradient(90deg, rgba(255, 182, 193, 0.08), rgba(135, 206, 235, 0.08));
}

.peach-section {
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.42), rgba(255, 218, 185, 0.24));
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-heading p {
    margin: 12px 0 0;
    max-width: 680px;
}

.section-link {
    color: #ef7f95;
    font-weight: 800;
    white-space: nowrap;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--marshmallow-lavender), var(--marshmallow-cream));
}

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

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

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 8px 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.card-body h3 a:hover,
.rank-row h2 a:hover,
.text-panel a:hover {
    color: #ef7f95;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #7b8494;
    font-size: 13px;
    font-weight: 700;
}

.card-meta span {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(135, 206, 235, 0.15);
}

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

.tag {
    padding: 5px 9px;
    border-radius: 999px;
    color: #ef7f95;
    background: rgba(255, 182, 193, 0.16);
    font-size: 12px;
    font-weight: 800;
}

.movie-card-featured .poster-wrap {
    aspect-ratio: 16 / 10;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 150px 1fr;
}

.movie-card-horizontal .poster-wrap {
    height: 100%;
    aspect-ratio: auto;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.compact-card {
    display: grid;
    grid-template-columns: 42px 66px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.compact-card img {
    width: 66px;
    height: 86px;
    border-radius: 14px;
    object-fit: cover;
}

.compact-rank,
.rank-mark,
.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--marshmallow-pink), var(--marshmallow-blue));
    font-weight: 900;
}

.compact-rank {
    width: 34px;
    height: 34px;
}

.rank-mark {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    z-index: 1;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card em {
    color: var(--text-soft);
    font-size: 13px;
    font-style: normal;
    margin-top: 4px;
}

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

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

.category-card {
    display: block;
    padding: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card > span {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ef7f95;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.26), rgba(135, 206, 235, 0.22));
    font-weight: 900;
}

.page-hero {
    padding: 72px 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 182, 193, 0.28), transparent 30%),
        radial-gradient(circle at 84% 16%, rgba(135, 206, 235, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(255, 248, 220, 0.9), rgba(230, 230, 250, 0.72));
}

.small-hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.08;
}

.small-hero p {
    max-width: 720px;
    color: #536071;
    font-size: 18px;
}

.inline-filter {
    width: min(100%, 560px);
    margin-top: 24px;
}

.inline-filter input {
    flex: 1;
    width: auto;
}

.search-page-form {
    width: min(100%, 720px);
    margin-top: 28px;
}

.search-page-form input {
    flex: 1;
    width: auto;
    font-size: 17px;
}

.search-summary {
    margin-bottom: 24px;
    color: var(--text-soft);
    font-weight: 800;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 98px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-thumb img {
    width: 98px;
    height: 128px;
    border-radius: 18px;
    object-fit: cover;
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.detail-page {
    padding: 34px 0 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--text-soft);
    margin-bottom: 22px;
}

.breadcrumb a {
    color: #ef7f95;
    font-weight: 800;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

.player-card {
    overflow: hidden;
}

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

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

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 182, 193, 0.94);
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-start span {
    margin-left: 4px;
    font-size: 30px;
}

.player-start:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

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

.detail-copy {
    padding: 28px;
}

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
}

.lead-text {
    margin: 0 0 18px;
    color: #536071;
    font-size: 18px;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #536071;
    background: rgba(135, 206, 235, 0.18);
    font-weight: 800;
}

.text-panel {
    margin-top: 24px;
    padding: 28px;
}

.text-panel h2,
.side-box h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.text-panel p {
    margin: 0;
    white-space: pre-line;
}

.detail-poster {
    width: 100%;
    border-radius: 26px;
    box-shadow: var(--shadow-soft-lg);
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.side-box {
    margin-top: 22px;
    padding: 22px;
}

.side-box dl {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.side-box dt {
    color: var(--text-soft);
    font-weight: 800;
}

.side-box dd {
    margin: 0;
}

.side-box a {
    color: #ef7f95;
    font-weight: 800;
}

.cta-section {
    padding: 18px 0 72px;
}

.cta-section > div {
    padding: 42px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.16), rgba(135, 206, 235, 0.14));
}

.cta-section h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 24px;
}

.site-footer {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.08), rgba(135, 206, 235, 0.08));
    border-top: 1px solid var(--border-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 36px;
    padding: 46px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 18px;
}

.footer-bottom {
    padding: 18px 16px;
    text-align: center;
    color: #7b8494;
    border-top: 1px solid rgba(238, 242, 247, 0.9);
}

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-carousel {
        min-height: 540px;
    }

    .featured-grid,
    .four-grid,
    .three-grid,
    .category-grid,
    .large-category-grid,
    .ranking-grid,
    .feature-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-side {
        max-width: 420px;
    }
}

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

    .hero-section {
        padding: 48px 0 42px;
    }

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

    .hero-carousel {
        min-height: 480px;
    }

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

    .hero-slide-text h2 {
        font-size: 24px;
    }

    .hero-search,
    .search-page-form,
    .inline-filter {
        align-items: stretch;
        flex-direction: column;
        border-radius: 24px;
    }

    .hero-search input,
    .search-page-form input,
    .inline-filter input {
        width: 100%;
    }

    .hero-search button,
    .search-page-form button,
    .inline-filter button {
        width: 100%;
    }

    .featured-grid,
    .four-grid,
    .three-grid,
    .category-grid,
    .large-category-grid,
    .ranking-grid,
    .feature-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 112px 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-link {
        display: inline-flex;
        margin-top: 16px;
    }

    .rank-row {
        grid-template-columns: 42px 78px 1fr;
        gap: 12px;
    }

    .rank-thumb img {
        width: 78px;
        height: 104px;
    }

    .rank-row h2 {
        font-size: 18px;
    }

    .rank-row p {
        display: none;
    }

    .detail-copy,
    .text-panel {
        padding: 22px;
    }

    .player-start {
        width: 62px;
        height: 62px;
    }
}
