* {
    box-sizing: border-box;
}

:root {
    --pink: #ec4899;
    --pink-deep: #be185d;
    --orange: #f97316;
    --yellow: #eab308;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #f3e8ff;
    --shadow: 0 18px 45px rgba(190, 24, 93, 0.16);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fff7ed 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.12);
}

.nav-shell {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 0 24px rgba(236, 72, 153, 0.45);
}

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

.desktop-nav a,
.nav-dropdown button {
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
    padding: 8px 0;
}

.desktop-nav a:hover,
.nav-dropdown button:hover {
    color: var(--pink);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 230px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.dropdown-panel a:hover {
    color: var(--pink);
    background: #fdf2f8;
}

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

.site-search input,
.filter-bar input,
.filter-bar select,
.search-box input {
    width: 230px;
    height: 42px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 0 16px;
    background: #f3f4f6;
    color: var(--ink);
    transition: 0.2s ease;
}

.site-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-box input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18);
}

.site-search button,
.search-box button,
.primary-button,
.secondary-button {
    height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.25);
}

.secondary-button {
    color: var(--pink-deep);
    background: #ffffff;
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    background: #fdf2f8;
    color: var(--pink);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 14px 16px 20px;
    background: rgba(255, 255, 255, 0.98);
}

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

.mobile-panel .site-search {
    margin: 0 0 14px;
}

.mobile-panel .site-search input {
    width: 100%;
}

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

.mobile-panel nav a {
    padding: 11px 12px;
    border-radius: 12px;
    background: #fdf2f8;
    color: #374151;
    font-weight: 600;
}

.main-section {
    padding: 34px 0 64px;
}

.hero {
    position: relative;
    min-height: 520px;
    margin-bottom: 58px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(120deg, var(--pink), var(--orange), var(--yellow));
    box-shadow: var(--shadow);
}

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

.hero::before {
    width: 420px;
    height: 420px;
    left: -120px;
    top: -120px;
}

.hero::after {
    width: 520px;
    height: 520px;
    right: -160px;
    bottom: -180px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 28px;
    align-items: center;
    padding: 58px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

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

.hero-copy {
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
}

.hero p {
    margin: 0 0 26px;
    max-width: 670px;
    font-size: 18px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
}

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

.hero-art {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hero-poster {
    min-height: 190px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
    transform: translateY(10px) scale(0.98);
    transition: 0.3s ease;
}

.hero-poster.is-active,
.hero-poster:hover {
    transform: translateY(0) scale(1.04);
}

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

.hero-poster span {
    position: absolute;
    inset: auto 0 0 0;
    padding: 38px 14px 14px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.hero-dots {
    position: absolute;
    left: 58px;
    bottom: 32px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

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

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

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 48px 0 22px;
}

.section-head h2,
.page-title h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(26px, 3vw, 38px);
}

.section-head p,
.page-title p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.text-link {
    color: var(--pink);
    font-weight: 800;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.08);
    transition: 0.25s ease;
}

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

.card-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #ffedd5);
}

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

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

.card-duration,
.card-category {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.card-duration {
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.74);
}

.card-category {
    left: 10px;
    top: 10px;
    padding: 6px 10px;
    background: linear-gradient(90deg, var(--pink), var(--orange));
}

.card-body {
    display: flex;
    min-height: 158px;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.card-body strong {
    font-size: 17px;
    line-height: 1.45;
    color: var(--ink);
}

.card-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 13px;
}

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

.category-card {
    min-height: 170px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.08);
    transition: 0.25s ease;
}

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

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    color: var(--pink-deep);
}

.category-card span {
    color: var(--muted);
    line-height: 1.7;
}

.page-title {
    margin: 42px 0 26px;
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fdf2f8, #fff7ed);
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.06);
}

.filter-bar,
.search-box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 22px 0 26px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.06);
}

.filter-bar select {
    width: 150px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 98px 1fr 180px 90px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.06);
}

.rank-row:hover {
    transform: translateX(4px);
}

.rank-index {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.rank-row img {
    width: 98px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-title {
    font-weight: 800;
    color: var(--ink);
}

.rank-meta,
.rank-hot {
    color: var(--muted);
    font-size: 14px;
}

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

.player-card,
.content-card,
.side-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.08);
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

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

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.play-button {
    position: absolute;
    z-index: 6;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: #ffffff;
    font-size: 32px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 18px 46px rgba(236, 72, 153, 0.38);
}

.content-card {
    padding: 28px;
    margin-top: 24px;
}

.content-card h1 {
    margin: 0 0 18px;
    font-size: clamp(26px, 3vw, 36px);
}

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

.detail-meta span,
.tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #6b7280;
    background: #f3f4f6;
    font-size: 14px;
    font-weight: 600;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
}

.story-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.story-block h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.story-block p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

.review-box {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fdf2f8, #fff7ed);
}

.side-card {
    padding: 20px;
    margin-bottom: 22px;
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.side-poster {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
}

.side-poster img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-item {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 104px;
    height: 66px;
    border-radius: 12px;
    object-fit: cover;
}

.related-item strong {
    display: block;
    color: var(--ink);
    line-height: 1.45;
}

.related-item span {
    color: var(--muted);
    font-size: 13px;
}

.search-results {
    min-height: 260px;
}

.empty-state {
    padding: 46px 24px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.06);
}

.site-footer {
    margin-top: 40px;
    color: #ffffff;
    background: linear-gradient(90deg, #831843, #9a3412, #713f12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 34px;
    padding: 44px 0;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: #fce7f3;
    line-height: 1.8;
}

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

.site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 18px 0;
    text-align: center;
    color: #fbcfe8;
    font-size: 14px;
}

@media (max-width: 980px) {
    .desktop-nav,
    .nav-shell > .site-search {
        display: none;
    }

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

    .hero {
        min-height: 760px;
    }

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

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

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

    .rank-row {
        grid-template-columns: 48px 88px 1fr;
    }

    .rank-meta,
    .rank-hot {
        display: none;
    }
}

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

    .brand {
        font-size: 20px;
    }

    .hero {
        min-height: 840px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 24px;
    }

    .hero-art,
    .movie-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .page-title {
        padding: 24px;
    }

    .site-search,
    .search-box {
        width: 100%;
    }

    .site-search input,
    .filter-bar input,
    .filter-bar select,
    .search-box input {
        width: 100%;
    }

    .filter-bar,
    .search-box {
        align-items: stretch;
        flex-direction: column;
    }
}
