:root {
    --peach-50: #fff5f2;
    --peach-100: #ffe5e0;
    --peach-200: #ffd4e5;
    --peach-300: #ffc9b9;
    --peach-400: #ffb5a7;
    --peach-500: #ffa07a;
    --peach-600: #ff9999;
    --pink-50: #fff0f5;
    --pink-100: #ffe4e1;
    --pink-300: #ffb6c1;
    --pink-400: #ff9eb5;
    --pink-500: #ff8fa3;
    --coral-300: #ffb0a8;
    --text: #333333;
    --muted: #666666;
    --soft: rgba(255, 255, 255, 0.76);
    --shadow: 0 20px 45px rgba(255, 159, 122, 0.24);
    --deep-shadow: 0 30px 80px rgba(61, 23, 33, 0.24);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, var(--peach-50), var(--pink-100));
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.76);
    border-bottom: 1px solid rgba(255, 181, 167, 0.28);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1200px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #e95f7d;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
    box-shadow: 0 12px 28px rgba(255, 143, 163, 0.38);
}

.brand-text {
    font-size: 1.52rem;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #ff9999, #ff8fa3, #ffb6c1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #555555;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #ff6f91;
    background: rgba(255, 245, 242, 0.92);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    position: relative;
    width: 260px;
}

.header-search input,
.mobile-search input,
.search-box input,
.search-box select {
    width: 100%;
    border: 1px solid rgba(255, 181, 167, 0.6);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    padding: 12px 46px 12px 18px;
    outline: none;
    color: #333333;
}

.header-search input:focus,
.mobile-search input:focus,
.search-box input:focus,
.search-box select:focus {
    border-color: var(--pink-400);
    box-shadow: 0 0 0 4px rgba(255, 181, 167, 0.22);
}

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav-link {
    padding: 11px 14px;
    border-radius: 14px;
    font-weight: 700;
}

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

.mobile-search input {
    padding-right: 18px;
}

.mobile-search button {
    min-width: 74px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
}

.hero {
    width: min(1200px, calc(100% - 32px));
    margin: 34px auto 0;
    position: relative;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 660px;
    border-radius: 36px;
    box-shadow: var(--deep-shadow);
    background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    align-items: center;
    gap: 36px;
    padding: 80px;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
    max-width: 720px;
    color: #ffffff;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.hero h2 {
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    line-height: 1.12;
    margin-bottom: 18px;
}

.hero p {
    max-width: 700px;
    font-size: 1.14rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 28px;
}

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

.btn-peach,
.btn-light,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
}

.btn-peach {
    color: #ffffff;
    background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
    box-shadow: 0 14px 30px rgba(255, 143, 163, 0.34);
}

.btn-peach:hover {
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(255, 143, 163, 0.48);
}

.btn-light {
    color: #62424a;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

.btn-light:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
    color: #ff6f91;
}

.btn-ghost {
    color: #ff6f91;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 181, 167, 0.48);
}

.hero-poster {
    justify-self: end;
    width: min(340px, 100%);
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(12px);
}

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

.hero-poster span {
    display: block;
    padding: 14px 18px;
    color: #ffffff;
    font-weight: 800;
    text-align: center;
}

.hero-controls {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
}

.hero-arrows {
    display: flex;
    gap: 10px;
}

.hero-arrow,
.hero-dot {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.35rem;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    opacity: 0.58;
}

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

.feature-strip {
    width: min(1200px, calc(100% - 32px));
    margin: -56px auto 0;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.section,
.page-hero,
.detail-wrap {
    width: min(1200px, calc(100% - 32px));
    margin: 72px auto 0;
}

.page-hero {
    padding: 56px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 181, 167, 0.92), rgba(255, 143, 163, 0.9));
    color: #ffffff;
    box-shadow: var(--shadow);
}

.page-hero h1,
.section-title h2,
.detail-title h1 {
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(2rem, 4vw, 4rem);
    margin-bottom: 14px;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

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

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

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    color: #2f2f2f;
}

.section-title p {
    color: var(--muted);
    margin-top: 8px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 181, 167, 0.28);
    box-shadow: 0 10px 26px rgba(255, 159, 122, 0.12);
    backdrop-filter: blur(12px);
}

.card-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--peach-100), var(--pink-100));
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.rating-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    min-width: 44px;
    padding: 5px 9px;
    border-radius: 999px;
    text-align: center;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--peach-500), var(--pink-500));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #8a6a72;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.movie-meta a,
.tag-row span,
.detail-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #e95f7d;
    background: rgba(255, 245, 242, 0.95);
}

.movie-card h3 {
    font-size: 1.1rem;
    line-height: 1.32;
    margin-bottom: 8px;
}

.movie-card h3 a:hover {
    color: #ff6f91;
}

.movie-card p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    color: #666666;
    font-size: 0.94rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.82rem;
    font-weight: 700;
}

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

.category-card {
    overflow: hidden;
    min-height: 260px;
    border-radius: 28px;
    position: relative;
    color: #ffffff;
    background: #f8a1ad;
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(35, 18, 24, 0.16), rgba(35, 18, 24, 0.72));
}

.category-card-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 22px;
}

.category-card h2 {
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.category-card p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.filter-pills a,
.filter-pills button {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    color: #6d4d55;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 181, 167, 0.32);
    font-weight: 800;
}

.filter-pills a.active,
.filter-pills button.active,
.filter-pills a:hover,
.filter-pills button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 120px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 181, 167, 0.28);
    box-shadow: 0 10px 26px rgba(255, 159, 122, 0.12);
}

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

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

.rank-copy h2 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.rank-copy p {
    color: var(--muted);
}

.rank-score {
    color: #ff6f91;
    font-size: 1.4rem;
    font-weight: 900;
}

.search-panel {
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 181, 167, 0.3);
    box-shadow: var(--shadow);
    margin-bottom: 34px;
}

.search-box {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 0.6fr)) auto;
    gap: 12px;
    align-items: center;
}

.search-box input,
.search-box select {
    border-radius: 18px;
    padding-right: 18px;
}

.search-box button {
    min-height: 50px;
}

.search-count {
    color: var(--muted);
    margin-top: 14px;
    font-weight: 700;
}

.movie-card.is-hidden {
    display: none;
}

.detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.detail-main,
.detail-side,
.player-panel,
.story-panel {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 181, 167, 0.3);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.detail-main {
    overflow: hidden;
}

.detail-title {
    padding: 28px;
}

.detail-title h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 16px;
}

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

.video-player {
    position: relative;
    overflow: hidden;
    background: #191016;
    aspect-ratio: 16 / 9;
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #191016;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    color: #ffffff;
    background-position: center;
    background-size: cover;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(25, 16, 22, 0.2), rgba(25, 16, 22, 0.72));
}

.player-cover span,
.player-cover strong {
    position: relative;
    z-index: 1;
}

.player-cover span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ff6f91;
    background: rgba(255, 255, 255, 0.92);
    font-size: 2.6rem;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.player-cover strong {
    font-size: 1.25rem;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.42);
}

.video-player.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.story-panel h2 {
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.story-panel p + h2 {
    margin-top: 28px;
}

.story-panel p {
    color: #555555;
    margin-bottom: 14px;
}

.detail-side {
    padding: 22px;
    position: sticky;
    top: 96px;
}

.detail-cover {
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 18px;
}

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

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

.compact-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 245, 242, 0.72);
    font-weight: 800;
}

.compact-card img {
    width: 70px;
    height: 86px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.compact-card span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.site-footer {
    margin-top: 86px;
    padding: 46px 0 24px;
    background: rgba(255, 255, 255, 0.66);
    border-top: 1px solid rgba(255, 181, 167, 0.28);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-brand p {
    color: var(--muted);
    margin-top: 14px;
    max-width: 520px;
}

.footer-links h2 {
    font-size: 1.05rem;
    margin-bottom: 14px;
}

.footer-links div {
    display: grid;
    gap: 9px;
    color: #666666;
}

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

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 20px;
    color: #8a6a72;
    border-top: 1px solid rgba(255, 181, 167, 0.28);
}

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 56px;
    }

    .hero-poster {
        display: none;
    }

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

    .search-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-box input {
        grid-column: 1 / -1;
    }

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

    .detail-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        width: min(100% - 24px, 1200px);
        height: 66px;
    }

    .brand-text {
        font-size: 1.22rem;
    }

    .hero,
    .section,
    .page-hero,
    .detail-wrap,
    .feature-strip {
        width: min(100% - 24px, 1200px);
    }

    .hero-carousel {
        min-height: 560px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 34px 24px 82px;
    }

    .hero-controls {
        left: 20px;
        right: 20px;
        bottom: 22px;
    }

    .feature-strip {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .section,
    .page-hero,
    .detail-wrap {
        margin-top: 48px;
    }

    .page-hero {
        padding: 36px 24px;
        border-radius: 26px;
    }

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

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

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

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

    .rank-score {
        grid-column: 3;
        font-size: 1rem;
    }

    .rank-item img {
        width: 80px;
        height: 96px;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .story-panel,
    .detail-title {
        padding: 22px;
        margin-left: 0;
        margin-right: 0;
    }

    .detail-main,
    .detail-side {
        border-radius: 24px;
    }

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

@media (max-width: 480px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .btn-peach,
    .btn-light,
    .btn-ghost {
        width: 100%;
    }
}
