:root {
    --pink-50: #fff1f8;
    --pink-100: #ffe4f1;
    --pink-200: #ffc7e2;
    --pink-300: #f9a8d4;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --rose-500: #f43f5e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --shadow-soft: 0 18px 45px rgba(236, 72, 153, 0.16);
    --shadow-card: 0 14px 36px rgba(31, 41, 55, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink-400), var(--pink-300), #fda4af);
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.25);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 68px;
}

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

.brand {
    flex: 0 0 auto;
    font-size: 24px;
}

.brand-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--pink-500);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 10px 18px rgba(190, 24, 93, 0.22);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.1) rotate(5deg);
}

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

.desktop-nav a,
.mobile-nav a {
    opacity: 0.94;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: #fff7fb;
    opacity: 1;
    transform: translateY(-1px);
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px 14px;
}

.nav-search input,
.mobile-search input {
    width: 190px;
    min-width: 0;
    color: #ffffff;
    border: 0;
    outline: 0;
    background: transparent;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: #fff1f8;
}

.menu-toggle {
    display: none;
    color: #ffffff;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
}

.mobile-search {
    flex-basis: 100%;
    margin-top: 8px;
}

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

.hero {
    position: relative;
    height: 520px;
    margin-bottom: 54px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

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

.hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.14));
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 56px 0 68px;
    color: #ffffff;
}

.hero-content .container {
    max-width: 1180px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 18px;
    color: #ffe4f1;
    background: rgba(236, 72, 153, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.hero h1,
.hero h2 {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(34px, 5.2vw, 60px);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -0.04em;
    text-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

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

.hero-actions,
.section-head,
.filter-bar,
.breadcrumb,
.movie-facts,
.tag-row,
.pagination-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 16px 34px rgba(244, 63, 94, 0.34);
}

.btn-light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 40px rgba(244, 63, 94, 0.28);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.44);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    cursor: pointer;
    transition: width 0.24s ease, background 0.24s ease;
}

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

.main-section {
    padding: 44px 0;
}

.section-head {
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
}

.section-head p,
.page-hero p,
.category-card p,
.movie-card p,
.detail-copy p,
.site-footer p,
.about-panel p {
    color: var(--gray-500);
    line-height: 1.75;
}

.section-link {
    color: var(--pink-500);
    font-weight: 750;
}

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

.movie-card,
.category-card,
.about-panel,
.detail-panel,
.side-panel,
.page-hero,
.filter-card,
.ranking-row {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.movie-card {
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(236, 72, 153, 0.20);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #831843);
}

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

.movie-poster::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 70%);
}

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

.movie-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 44px;
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-play {
    opacity: 1;
    transform: scale(1);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    margin-bottom: 8px;
    overflow: hidden;
    color: var(--gray-800);
    font-size: 17px;
    line-height: 1.42;
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: var(--pink-500);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span,
.fact-pill,
.rank-badge,
.breadcrumb a,
.category-link-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.tag-row span {
    padding: 5px 10px;
    color: var(--pink-500);
    background: var(--pink-100);
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    display: flex;
    min-height: 180px;
    padding: 24px;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    font-size: 14px;
}

.category-card strong {
    color: var(--pink-500);
}

.page-hero {
    margin: 34px auto 34px;
    padding: 36px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 248, 0.92));
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.page-hero p {
    max-width: 850px;
    margin: 0;
    font-size: 17px;
}

.filter-card {
    margin-bottom: 28px;
    padding: 22px;
}

.filter-bar {
    justify-content: space-between;
}

.filter-bar input,
.filter-bar select,
.search-panel input {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    outline: 0;
    background: var(--gray-50);
    transition: box-shadow 0.2s ease, border 0.2s ease;
}

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

.filter-bar input {
    flex: 1 1 320px;
}

.filter-bar select {
    flex: 0 1 180px;
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--gray-500);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 48px;
}

.breadcrumb {
    margin: 30px 0 18px;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a {
    padding: 5px 10px;
    color: var(--pink-500);
    background: var(--pink-100);
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(17, 24, 39, 0.28);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.18), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 20px 46px rgba(244, 63, 94, 0.42);
    font-size: 38px;
    transition: transform 0.24s ease;
}

.player-start:hover .play-circle {
    transform: scale(1.08);
}

.detail-panel,
.side-panel,
.about-panel {
    padding: 26px;
}

.detail-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.18;
}

.movie-facts {
    margin-bottom: 22px;
}

.fact-pill {
    padding: 7px 12px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 13px;
}

.detail-copy {
    border-top: 1px solid var(--gray-200);
    margin-top: 22px;
    padding-top: 22px;
}

.detail-copy h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-copy p {
    margin: 0 0 18px;
}

.side-panel {
    position: sticky;
    top: 92px;
}

.side-panel h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

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

.side-link {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-link:hover {
    background: var(--pink-50);
    transform: translateX(2px);
}

.side-link img {
    width: 112px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.side-link strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.38;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-link em {
    display: block;
    margin-top: 5px;
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 68px 150px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.ranking-row .rank-num {
    color: var(--pink-500);
    font-size: 26px;
    font-weight: 850;
    text-align: center;
}

.ranking-row img {
    width: 150px;
    height: 84px;
    object-fit: cover;
    border-radius: 14px;
    background: #111827;
}

.ranking-row h2 {
    margin: 0 0 8px;
    font-size: 19px;
}

.ranking-row p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--gray-500);
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    min-width: 34px;
    height: 34px;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 12px 26px rgba(244, 63, 94, 0.3);
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-top: 24px;
}

.search-panel button {
    min-width: 120px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 34px 0 48px;
}

.about-panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.site-footer {
    margin-top: 50px;
    background: linear-gradient(180deg, var(--pink-50), var(--pink-100));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-brand {
    margin-bottom: 12px;
    color: var(--gray-800);
    font-size: 22px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: var(--gray-500);
    transition: color 0.2s ease;
}

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

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

.category-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.category-link-chip {
    padding: 9px 14px;
    color: var(--pink-500);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.12);
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .side-panel {
        position: static;
    }

    .desktop-nav,
    .nav-search {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .mobile-nav.is-open {
        display: flex;
        flex-wrap: wrap;
    }
}

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

    .brand {
        font-size: 20px;
    }

    .hero {
        height: 560px;
    }

    .hero-content {
        padding: 34px 0 60px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-control {
        display: none;
    }

    .movie-grid,
    .category-strip,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .detail-panel,
    .side-panel,
    .filter-card,
    .about-panel {
        padding: 20px;
        border-radius: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ranking-row {
        grid-template-columns: 46px 96px 1fr;
        gap: 12px;
    }

    .ranking-row img {
        width: 96px;
        height: 64px;
    }

    .ranking-row .btn {
        grid-column: 2 / 4;
        width: 100%;
    }

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

    .filter-bar select {
        flex: 1 1 100%;
    }
}
