:root {
    --peach-50: #fff5f2;
    --peach-100: #ffe5e0;
    --peach-200: #ffd4e5;
    --peach-300: #ffc9b9;
    --peach-400: #ffb5a7;
    --peach-500: #ffa07a;
    --peach-600: #ff9999;
    --pink-100: #ffe4e1;
    --pink-300: #ffb6c1;
    --pink-400: #ff9eb5;
    --pink-500: #ff8fa3;
    --coral-300: #ffb0a8;
    --text-main: #2d2b31;
    --text-muted: #6d6570;
    --white: #ffffff;
    --shadow-soft: 0 18px 55px rgba(255, 143, 163, 0.22);
    --shadow-card: 0 10px 30px rgba(71, 38, 56, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(255, 181, 167, 0.38), transparent 34rem),
        linear-gradient(135deg, var(--peach-50), var(--pink-100));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.68;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

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

.header-inner,
.footer-inner,
.hero-inner,
.section,
.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
    box-shadow: 0 10px 26px rgba(255, 143, 163, 0.34);
}

.brand-text {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--peach-600), var(--pink-500), var(--pink-300));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.site-nav a {
    color: #5b5360;
    font-weight: 700;
    transition: color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--peach-600);
}

.header-search {
    position: relative;
    width: min(260px, 24vw);
}

.header-search input,
.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid rgba(255, 160, 122, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-main);
    padding: 12px 48px 12px 18px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--peach-500);
    box-shadow: 0 0 0 4px rgba(255, 160, 122, 0.16);
    background: #fff;
}

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

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 8px 11px;
    color: var(--peach-600);
    background: rgba(255, 245, 242, 0.9);
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--peach-300), var(--pink-300), var(--coral-300));
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(44px);
    opacity: 0.34;
    background: rgba(255, 255, 255, 0.86);
}

.hero::before {
    width: 330px;
    height: 330px;
    top: 42px;
    left: 8%;
}

.hero::after {
    width: 420px;
    height: 420px;
    right: 8%;
    bottom: 42px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    align-items: center;
    gap: 52px;
    padding: 64px 0 108px;
}

.hero-copy {
    max-width: 710px;
    animation: slideUp 0.55s ease both;
}

.hero-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #6b4b56;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-badge {
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(255, 143, 163, 0.22);
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.7rem, 5.6vw, 5.8rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero h1 span {
    display: block;
}

.hero p {
    max-width: 670px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.05rem, 1.6vw, 1.26rem);
}

.hero-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-primary,
.btn-light,
.btn-ghost,
.section-link,
.player-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary,
.player-button {
    color: #fff;
    background: linear-gradient(135deg, var(--peach-500), var(--pink-500));
    box-shadow: 0 12px 30px rgba(255, 143, 163, 0.36);
}

.btn-light {
    color: #5c525d;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(90, 41, 70, 0.12);
}

.btn-ghost {
    color: var(--peach-700, #ff8888);
    background: rgba(255, 245, 242, 0.9);
}

.btn-primary:hover,
.btn-light:hover,
.btn-ghost:hover,
.section-link:hover,
.player-button:hover {
    transform: translateY(-2px);
}

.hero-slider {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: minmax(320px, 1fr) auto;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 30px 80px rgba(116, 47, 78, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.985);
    transition: opacity 0.5s ease, transform 0.5s ease;
    backdrop-filter: blur(8px);
}

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

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

.hero-slide-body {
    position: relative;
    margin-top: -95px;
    padding: 26px;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(42, 29, 37, 0.86) 34%, rgba(42, 29, 37, 0.96));
}

.hero-slide-body h2 {
    margin: 0 0 10px;
    font-size: 1.7rem;
    line-height: 1.2;
}

.hero-slide-body p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.98rem;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 28px;
    bottom: 26px;
    display: flex;
    gap: 9px;
}

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

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

.overlap-featured {
    position: relative;
    z-index: 4;
    margin-top: -78px;
}

.section {
    margin-top: 78px;
}

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

.section-heading h2,
.page-title h1 {
    margin: 0;
    color: #312b35;
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-link {
    min-height: 40px;
    color: var(--peach-600);
    background: #fff;
    box-shadow: var(--shadow-card);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, rgba(255, 181, 167, 0.3), rgba(255, 158, 181, 0.32));
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 999px;
    background: rgba(255, 143, 163, 0.88);
    box-shadow: 0 10px 24px rgba(28, 13, 22, 0.28);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8fa3, #ffa07a);
    font-style: normal;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

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

.movie-card-body h3 {
    margin: 8px 0 8px;
    color: #302935;
    font-size: 1.08rem;
    line-height: 1.36;
}

.movie-card-body p {
    min-height: 3.4em;
    margin: 0 0 13px;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.movie-meta-line,
.detail-meta,
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #817680;
    font-size: 0.86rem;
}

.movie-meta-line span,
.detail-meta span,
.movie-tags span,
.category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 229, 224, 0.78);
    color: #795d66;
    font-weight: 700;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.movie-tags span {
    color: var(--peach-600);
    background: rgba(255, 245, 242, 0.94);
    font-size: 0.8rem;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.category-card::after {
    content: "";
    position: absolute;
    inset: auto -50px -70px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 181, 167, 0.26), rgba(255, 158, 181, 0.24));
}

.category-icon {
    position: relative;
    z-index: 1;
    font-size: 2.35rem;
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 14px 0 8px;
    font-size: 1.28rem;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--text-muted);
}

.page-hero {
    padding: 70px 0 34px;
}

.page-title {
    padding: 40px;
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.3), transparent 17rem),
        linear-gradient(135deg, var(--peach-400), var(--pink-400));
    box-shadow: var(--shadow-soft);
}

.page-title p {
    max-width: 820px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.page-title h1 {
    color: #fff;
}

.filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    margin: 28px 0;
}

.hidden-card {
    display: none !important;
}

.empty-state {
    display: none;
    padding: 26px;
    border-radius: 24px;
    text-align: center;
    color: #7d717b;
    background: rgba(255, 255, 255, 0.82);
}

.empty-state.is-visible {
    display: block;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.62fr);
    gap: 30px;
    align-items: start;
    margin-top: 28px;
}

.detail-panel,
.side-panel {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.detail-panel {
    padding: 26px;
}

.side-panel {
    padding: 20px;
}

.breadcrumbs {
    margin: 0 0 18px;
}

.breadcrumbs a {
    color: var(--peach-600);
    font-weight: 800;
}

.detail-title h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-lead {
    margin: 18px 0 0;
    color: #5e5560;
    font-size: 1.08rem;
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin: 26px 0;
    border-radius: 28px;
    background: #17121a;
    box-shadow: 0 24px 60px rgba(36, 17, 30, 0.28);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(28, 14, 24, 0.25), rgba(28, 14, 24, 0.76));
    cursor: pointer;
}

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

.player-cover-inner {
    display: grid;
    justify-items: center;
    gap: 13px;
    text-align: center;
}

.play-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--peach-500), var(--pink-500));
    box-shadow: 0 18px 40px rgba(255, 143, 163, 0.42);
}

.detail-section {
    margin-top: 28px;
}

.detail-section h2,
.side-panel h2 {
    margin: 0 0 14px;
    color: #2f2932;
    font-size: 1.45rem;
}

.detail-section p {
    margin: 0;
    color: #5c5360;
}

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.detail-cover img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.info-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 180, 190, 0.28);
}

.info-list dt {
    color: #8b7c86;
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    text-align: right;
    color: #443b45;
}

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

.related-list .movie-card-body p,
.side-panel .movie-card-body p {
    display: none;
}

.side-panel .movie-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.site-footer {
    margin-top: 88px;
    padding: 44px 0;
    color: #675d66;
    background: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 180, 190, 0.28);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: 30px;
}

.footer-brand {
    color: var(--peach-600);
    font-size: 1.35rem;
}

.footer-inner p {
    max-width: 720px;
    margin: 12px 0 0;
}

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

.footer-links a {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 245, 242, 0.9);
    color: #6f5f68;
    font-weight: 700;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    .hero-inner {
        padding-bottom: 110px;
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        min-height: 66px;
    }

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

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

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

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

    .site-nav a {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .site-nav a:hover,
    .site-nav a.active {
        background: var(--peach-50);
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 44px 0 92px;
        gap: 32px;
    }

    .hero-slider {
        min-height: 450px;
    }

    .overlap-featured {
        margin-top: -58px;
    }

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

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

    .page-title {
        padding: 28px;
    }

    .detail-panel {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .header-inner,
    .footer-inner,
    .hero-inner,
    .section,
    .page-shell {
        width: min(100% - 22px, 1180px);
    }

    .movie-grid,
    .movie-grid.featured-grid,
    .category-grid,
    .related-list {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 420px;
    }

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