:root {
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-300: #f9a8d4;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --orange-50: #fff7ed;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --yellow-400: #facc15;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --dark: #111827;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --shadow-soft: 0 20px 60px rgba(236, 72, 153, 0.16);
    --shadow-card: 0 12px 32px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(180deg, var(--pink-50) 0%, #fff 42%, var(--orange-50) 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid rgba(244, 114, 182, 0.2);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.12);
    backdrop-filter: blur(14px);
}

.header-shell {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink-400), var(--orange-400));
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.28);
}

.brand-text,
.footer-brand span:last-child {
    font-size: 1.35rem;
    background: linear-gradient(90deg, var(--pink-500), var(--orange-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--pink-500);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    border: 1px solid rgba(244, 114, 182, 0.35);
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    background: #fff;
    color: var(--gray-800);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 170px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--pink-400);
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
}

.header-search button,
.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--gray-700);
    background: rgba(252, 231, 243, 0.88);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel.open {
    display: block;
    animation: slide-down 0.22s ease both;
}

.mobile-nav {
    display: grid;
    gap: 8px;
    padding: 8px 0 14px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--gray-700);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.68);
}

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

.mobile-search input {
    flex: 1;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
}

.hero-stage {
    position: relative;
    min-height: 720px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 42px;
    padding: 96px max(32px, calc((100vw - 1180px) / 2)) 90px;
    background-position: center;
    background-size: cover;
    transition: opacity 0.75s ease, transform 0.75s ease;
    transform: scale(1.02);
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.24), transparent 24%), radial-gradient(circle at 85% 20%, rgba(250, 204, 21, 0.18), transparent 22%);
    pointer-events: none;
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 3;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.hero h1,
.hero h2 {
    max-width: 820px;
    font-size: clamp(2.8rem, 8vw, 5.6rem);
    line-height: 0.98;
}

.hero-movie-title {
    margin-top: 18px !important;
    font-size: clamp(1.4rem, 3vw, 2.4rem) !important;
    letter-spacing: -0.02em !important;
}

.hero p,
.page-hero p,
.detail-copy .lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.8;
}

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

.hero-tags span,
.tag-list span {
    padding: 8px 13px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

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

.quick-panel {
    margin-top: -54px;
    position: relative;
    z-index: 10;
}

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

.quick-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.quick-intro h2,
.section-heading h2,
.site-footer h2,
.text-card h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(1.35rem, 3vw, 2.15rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.quick-intro p,
.section-heading p,
.site-footer p,
.card-body span,
.text-card p {
    color: var(--gray-500);
    line-height: 1.7;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-link {
    padding: 10px 15px;
    border-radius: 999px;
    font-weight: 800;
    color: var(--pink-600);
    background: var(--pink-100);
    transition: transform 0.2s ease, background 0.2s ease;
}

.chip-link:hover {
    transform: translateY(-2px);
    background: #fff;
}

.content-section {
    padding: 72px 0;
}

.highlight-section {
    padding-top: 54px;
}

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

.section-heading p {
    margin: 8px 0 0;
}

.section-more {
    flex: 0 0 auto;
    color: var(--pink-600);
    font-weight: 900;
}

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

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

.movie-card {
    min-width: 0;
}

.poster-link {
    display: block;
    overflow: hidden;
    height: 100%;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(236, 72, 153, 0.2);
}

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

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

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

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

.poster-badge,
.rank-mark {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 900;
}

.poster-badge {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    color: #fff;
    background: var(--pink-500);
}

.rank-mark {
    right: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7c2d12;
    background: var(--yellow-400);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.card-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.card-body strong {
    color: var(--gray-800);
    font-size: 1.05rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-body span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 3.4em;
}

.card-body em {
    color: var(--pink-600);
    font-style: normal;
    font-weight: 800;
}

.compact-card .card-body span {
    display: none;
}

.ranking-band {
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.9), rgba(255, 247, 237, 0.92));
    border-top: 1px solid rgba(244, 114, 182, 0.16);
    border-bottom: 1px solid rgba(251, 146, 60, 0.16);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.page-hero {
    min-height: 390px;
    display: flex;
    align-items: center;
    padding: 72px max(32px, calc((100vw - 1180px) / 2));
}

.soft-hero {
    background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.24), transparent 24%), linear-gradient(135deg, var(--pink-500), var(--orange-500));
}

.page-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
}

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

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

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

.category-card a {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 260px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(17, 24, 39, 0.72));
}

.category-content {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    color: #fff;
}

.category-content strong {
    display: block;
    font-size: 1.45rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.category-content em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
    line-height: 1.55;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin: -6px 0 26px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.empty-state {
    padding: 28px;
    border-radius: var(--radius-lg);
    color: var(--gray-500);
    text-align: center;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.detail-hero {
    min-height: 660px;
    padding: 72px 0;
}

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

.detail-poster {
    overflow: hidden;
    margin: 0;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    line-height: 1.02;
}

.movie-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 30px 0;
}

.movie-meta div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.movie-meta dt {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
}

.movie-meta dd {
    margin: 4px 0 0;
    color: #fff;
    font-weight: 900;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.player-section {
    padding-bottom: 40px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #09090b;
    box-shadow: 0 34px 90px rgba(17, 24, 39, 0.28);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #09090b;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.42), rgba(236, 72, 153, 0.32));
    cursor: pointer;
}

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

.play-circle {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    color: var(--pink-600);
    font-size: 2.3rem;
    background: #fff;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.play-overlay strong {
    max-width: min(680px, calc(100% - 48px));
    font-size: clamp(1.4rem, 4vw, 2.6rem);
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 32px;
}

.text-card {
    padding: 32px;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.text-card p {
    margin: 16px 0 0;
    font-size: 1.03rem;
}

.accent-card {
    background: linear-gradient(135deg, #fff, var(--pink-50));
}

.site-footer {
    margin-top: 48px;
    background: linear-gradient(180deg, var(--pink-50), var(--pink-100));
    border-top: 1px solid rgba(236, 72, 153, 0.18);
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
    gap: 32px;
    padding: 54px 0;
}

.site-footer h2 {
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.site-footer p {
    margin: 14px 0 0;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.site-footer a {
    color: var(--gray-700);
    font-weight: 700;
}

.site-footer a:hover {
    color: var(--pink-600);
}

.copyright {
    padding: 18px;
    color: var(--gray-500);
    text-align: center;
    border-top: 1px solid rgba(236, 72, 153, 0.14);
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
    box-shadow: 0 16px 34px rgba(236, 72, 153, 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .hero-poster {
        display: none;
    }

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

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

@media (max-width: 760px) {
    .header-shell {
        height: 64px;
    }

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

    .hero,
    .hero-stage {
        min-height: 650px;
    }

    .hero-slide {
        padding: 88px 22px 82px;
    }

    .quick-shell {
        grid-template-columns: 1fr;
    }

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

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

    .card-body {
        padding: 13px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        max-width: 260px;
    }

    .movie-meta {
        grid-template-columns: 1fr;
    }

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

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

    .hero-arrow {
        display: none;
    }

    .page-hero {
        min-height: 330px;
        padding: 54px 22px;
    }

    .content-section {
        padding: 50px 0;
    }
}
