:root {
    --cake-cream: #fff5e1;
    --cake-rose: #ffc0cb;
    --cake-strawberry: #ffb6c1;
    --cake-coral: #ff7f50;
    --cake-lavender: #e6e6fa;
    --cake-mint: #98d8c8;
    --bow-pink: #ff69b4;
    --bow-hot: #ff1493;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(255, 182, 193, 0.45);
    --card: rgba(255, 255, 255, 0.88);
    --shadow: 0 18px 45px rgba(255, 105, 180, 0.18);
    --shadow-strong: 0 24px 65px rgba(255, 20, 147, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 105, 180, 0.25), transparent 34rem),
        radial-gradient(circle at 88% 10%, rgba(152, 216, 200, 0.28), transparent 30rem),
        linear-gradient(135deg, #fff5e1 0%, #ffc0cb 48%, #ffdab9 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 182, 193, 0.36);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 16px -4px rgba(255, 182, 193, 0.3);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--cake-strawberry), var(--bow-hot));
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
    font-size: 24px;
}

.brand:hover .brand-icon {
    animation: wiggle 1s ease-in-out infinite;
}

.brand-text {
    display: grid;
}

.brand-text strong,
.gradient-text {
    background: linear-gradient(90deg, var(--bow-pink), var(--bow-hot));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text strong {
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
}

.brand-text em {
    font-style: normal;
    color: var(--cake-coral);
    font-size: 12px;
}

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

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

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel nav a:hover {
    color: var(--bow-hot);
    background: rgba(255, 192, 203, 0.48);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(340px, 32vw);
}

.header-search input,
.mobile-panel input,
.list-tools input,
.list-tools select {
    width: 100%;
    height: 42px;
    border: 2px solid rgba(255, 182, 193, 0.65);
    outline: 0;
    border-radius: 999px;
    padding: 0 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.78);
    transition: 0.25s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.list-tools input:focus,
.list-tools select:focus {
    border-color: var(--bow-hot);
    box-shadow: 0 0 0 4px rgba(255, 20, 147, 0.12);
}

.header-search button,
.mobile-panel button,
.btn-primary,
.card-more {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(90deg, var(--bow-pink), var(--bow-hot));
    box-shadow: 0 8px 16px -4px rgba(255, 182, 193, 0.3);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.header-search button:hover,
.mobile-panel button:hover,
.btn-primary:hover,
.card-more:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 24px -4px rgba(255, 105, 180, 0.4);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cake-strawberry), var(--bow-hot));
    font-size: 20px;
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

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

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.home-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto 0;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    border-radius: 42px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.2);
    transform: scale(1.08);
    opacity: 0.74;
}

.hero-bg::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(31, 41, 55, 0.85), rgba(31, 41, 55, 0.32) 52%, rgba(255, 105, 180, 0.45)),
        radial-gradient(circle at 20% 12%, rgba(255, 105, 180, 0.28), transparent 22rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 46px;
    align-items: center;
    padding: 68px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--bow-hot);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.hero-desc {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-row,
.category-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-row span,
.category-chip-list a,
.genre-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 999px;
    padding: 12px 20px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    transition: 0.25s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.32);
    border-radius: 36px;
    transform: rotate(2deg);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

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

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 68px;
    bottom: 42px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: 0.25s ease;
}

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

.section-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 48px auto;
}

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

.section-title-row h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
}

.section-link {
    color: var(--bow-hot);
    font-weight: 900;
}

.category-chip-list a {
    color: var(--ink);
    border-color: rgba(255, 182, 193, 0.55);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 16px -4px rgba(255, 182, 193, 0.25);
}

.category-chip-list a:hover,
.category-chip-list a.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--bow-pink), var(--bow-hot));
}

.category-chip-list.compact {
    margin-top: 22px;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 182, 193, 0.5);
    border-radius: 32px;
    background: var(--card);
    box-shadow: 0 8px 16px -4px rgba(255, 182, 193, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px -8px rgba(255, 105, 180, 0.35);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.5), rgba(230, 230, 250, 0.5));
}

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

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

.poster-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.48));
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(90deg, #f59e0b, #ff1493);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

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

.card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 10px;
}

.genre-pill {
    color: var(--bow-hot);
    border-color: rgba(255, 182, 193, 0.72);
    background: rgba(255, 245, 225, 0.8);
}

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

.movie-card h3 a:hover {
    color: var(--bow-hot);
}

.movie-card p {
    min-height: 54px;
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
}

.card-more {
    display: inline-flex;
    padding: 9px 14px;
    font-size: 13px;
}

.page-hero,
.detail-hero {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto 48px;
    overflow: hidden;
    border-radius: 42px;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.92), rgba(255, 105, 180, 0.52));
    box-shadow: var(--shadow-strong);
}

.page-hero {
    padding: 72px;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.slim-hero {
    min-height: 280px;
}

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

.category-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 182, 193, 0.5);
    border-radius: 34px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.category-cover {
    overflow: hidden;
    border-radius: 24px;
}

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

.category-card h2 {
    margin: 0 0 10px;
}

.category-card p {
    color: #4b5563;
    line-height: 1.7;
}

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

.mini-link-row a {
    color: var(--bow-hot);
    font-size: 13px;
    font-weight: 800;
}

.list-tools {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid rgba(255, 182, 193, 0.5);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.detail-hero {
    min-height: 560px;
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.08);
    transform: scale(1.08);
    opacity: 0.78;
}

.detail-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 44px;
    align-items: center;
    min-height: 560px;
    padding: 64px;
}

.detail-poster {
    overflow: hidden;
    border: 9px solid rgba(255, 255, 255, 0.3);
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

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

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

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

.detail-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 8px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.tag-row {
    margin-bottom: 24px;
}

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

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

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

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.36), rgba(255, 20, 147, 0.24));
}

.play-cover span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--bow-pink), var(--bow-hot));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    font-size: 36px;
    transform: translateX(3px);
}

.play-cover.is-hidden {
    display: none;
}

.content-panel {
    margin-top: 22px;
    border: 1px solid rgba(255, 182, 193, 0.5);
    border-radius: 30px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.content-panel:first-child {
    margin-top: 0;
}

.content-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.content-panel p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
}

.info-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.info-list div {
    display: grid;
    gap: 5px;
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
}

.info-list dd {
    margin: 0;
    font-weight: 800;
}

.info-list a {
    color: var(--bow-hot);
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid rgba(255, 182, 193, 0.45);
    background: rgba(255, 255, 255, 0.72);
}

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

.footer-inner strong {
    font-size: 22px;
    color: var(--bow-hot);
}

.footer-inner p {
    color: #4b5563;
    line-height: 1.7;
}

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

.footer-links a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.75);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--bow-hot);
}

.is-filter-hidden {
    display: none;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

@media (max-width: 1100px) {
    .cards-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .header-search {
        display: none;
    }

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

    .desktop-nav {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero-content,
    .detail-inner,
    .detail-layout,
    .footer-inner,
    .category-overview {
        grid-template-columns: 1fr;
    }

    .hero-content,
    .detail-inner,
    .page-hero {
        padding: 36px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

    .hero-poster,
    .detail-poster {
        max-width: 280px;
    }

    .cards-5,
    .cards-4,
    .cards-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-card {
        grid-template-columns: 130px 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .header-inner {
        width: min(100% - 20px, 1240px);
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
    }

    .home-hero,
    .section-wrap,
    .page-hero,
    .detail-hero,
    .footer-inner,
    .mobile-panel {
        width: calc(100% - 20px);
    }

    .hero-carousel,
    .page-hero,
    .detail-hero {
        border-radius: 28px;
    }

    .hero-content,
    .detail-inner,
    .page-hero {
        padding: 26px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 660px;
    }

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

    .hero-dots {
        left: 26px;
        bottom: 24px;
    }

    .cards-5,
    .cards-4,
    .cards-3,
    .category-card,
    .list-tools {
        grid-template-columns: 1fr;
    }

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

    .movie-card p {
        min-height: auto;
    }
}
