:root {
    --pink: #ec4899;
    --pink-soft: #fce7f3;
    --orange: #f97316;
    --yellow: #facc15;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f3d0df;
    --paper: #ffffff;
    --page: #fff7fb;
    --shadow: 0 18px 45px rgba(236, 72, 153, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff7fb 0%, #fff 42%, #fffaf3 100%);
    color: var(--ink);
}

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

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

.nav-wrap {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #f472b6, #fb923c);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.25);
    font-size: 14px;
    flex: 0 0 auto;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
    color: #4b5563;
}

.desktop-nav a,
.mobile-panel a,
.footer-grid a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-grid a:hover {
    color: var(--pink);
}

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

.nav-search input,
.mobile-panel input,
.filter-input,
.filter-select,
.search-panel input {
    border: 1px solid rgba(244, 114, 182, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    padding: 10px 16px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.nav-search input:focus,
.mobile-panel input:focus,
.filter-input:focus,
.filter-select:focus,
.search-panel input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.nav-search button,
.mobile-panel button,
.search-panel button,
.hero-cta,
.ghost-cta,
.filter-clear,
.player-overlay span {
    border-radius: 999px;
    border: 0;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    color: #fff;
    padding: 10px 18px;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(236, 72, 153, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-panel button:hover,
.search-panel button:hover,
.hero-cta:hover,
.ghost-cta:hover,
.filter-clear:hover,
.player-overlay span:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.26);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    border: 1px solid rgba(244, 114, 182, 0.24);
    font-size: 22px;
}

.mobile-panel {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
    display: grid;
    gap: 12px;
    animation: fadeIn 0.22s ease;
}

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    color: #fff;
    background: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.3), transparent 28%), linear-gradient(135deg, #ec4899 0%, #fb7185 46%, #f97316 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.55;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -32% -10%;
    height: 360px;
    border-radius: 50% 50% 0 0;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(12px);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 84px 24px 74px;
}

.hero-title {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 40px;
}

.hero-title h1 {
    font-size: clamp(42px, 7vw, 78px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero-title p {
    margin-top: 18px;
    font-size: clamp(18px, 2.4vw, 26px);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.hero-focus {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 28px;
    align-items: stretch;
}

.hero-slider {
    position: relative;
    min-height: 420px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
    background: rgba(255, 255, 255, 0.18);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.68), rgba(0,0,0,0.18) 58%, rgba(0,0,0,0.08)), linear-gradient(0deg, rgba(0,0,0,0.72), transparent 52%);
}

.hero-copy {
    position: absolute;
    z-index: 2;
    left: 38px;
    right: 38px;
    bottom: 34px;
    max-width: 720px;
}

.hero-copy h2 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 12px;
}

.hero-copy p {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 22px;
}

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

.ghost-cta {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(12px);
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 36px;
    top: 28px;
    display: flex;
    gap: 8px;
}

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

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

.hero-side {
    display: grid;
    gap: 18px;
}

.hero-side-card {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    border-radius: 26px;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.18);
}

.hero-side-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.hero-side-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.72), rgba(0,0,0,0.16));
}

.hero-side-card span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    text-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

.section,
.detail-wrap,
.search-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 24px;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    color: #111827;
    line-height: 1.14;
}

.section-heading p,
.page-title p,
.detail-title p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 760px;
    margin-top: 10px;
}

.more-link {
    color: var(--pink);
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
    border: 1px solid rgba(244, 114, 182, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(236, 72, 153, 0.32);
}

.poster-box {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4ef, #ffedd5);
}

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

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

.poster-box::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(0,0,0,0.64), transparent);
    opacity: 0.9;
}

.poster-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 10px;
}

.poster-type {
    left: 12px;
    bottom: 12px;
    background: rgba(236, 72, 153, 0.88);
}

.rank-badge {
    top: 12px;
    left: 12px;
    background: linear-gradient(90deg, #facc15, #f97316);
    color: #78350f;
}

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

.movie-card-body h3 {
    font-size: 18px;
    font-weight: 900;
    color: #111827;
    line-height: 1.35;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    min-height: 72px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
}

.movie-tags {
    margin-top: 12px;
    color: var(--pink);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.category-card {
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff, #fff7ed);
    border: 1px solid rgba(244, 114, 182, 0.18);
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--muted);
    line-height: 1.75;
}

.category-card span {
    display: inline-flex;
    margin-top: 18px;
    color: var(--pink);
    font-weight: 900;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 46px 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(244, 114, 182, 0.15);
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

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

.rank-item img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 16px;
    background: #ffe4ef;
}

.rank-info strong {
    display: block;
    color: #111827;
    font-weight: 900;
    line-height: 1.45;
}

.rank-info em {
    display: block;
    color: var(--muted);
    font-style: normal;
    margin-top: 5px;
    font-size: 13px;
}

.side-panel {
    border-radius: 28px;
    padding: 24px;
    background: linear-gradient(135deg, #fff, #fff7fb);
    border: 1px solid rgba(244, 114, 182, 0.18);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 96px;
}

.side-panel h3 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 16px;
}

.filter-bar,
.search-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(244, 114, 182, 0.16);
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.05);
}

.filter-input {
    min-width: min(360px, 100%);
    flex: 1;
}

.filter-select {
    min-width: 160px;
}

.filter-clear {
    padding: 10px 16px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 26px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--pink);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    padding: 30px;
    border-radius: 36px;
    background: radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.16), transparent 32%), linear-gradient(135deg, #fff, #fff7ed);
    box-shadow: var(--shadow);
    border: 1px solid rgba(244, 114, 182, 0.18);
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 52px rgba(31, 41, 55, 0.18);
    background: #ffe4ef;
}

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

.detail-title h1 {
    margin-bottom: 16px;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-badges span {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--pink-soft);
    color: #be185d;
    font-weight: 800;
    font-size: 13px;
}

.player-card {
    margin-top: 34px;
    padding: 24px;
    border-radius: 34px;
    background: #111827;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.25);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.2), rgba(0, 0, 0, 0.38));
    border: 0;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay span {
    width: 92px;
    height: 92px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    margin-top: 34px;
}

.article-card,
.recommend-card {
    border-radius: 30px;
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(244, 114, 182, 0.16);
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.06);
}

.article-card h2,
.recommend-card h2 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 16px;
}

.article-card p {
    color: #4b5563;
    line-height: 1.95;
    margin-bottom: 16px;
}

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

.recommend-list a {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7fb;
    transition: transform 0.2s ease, background 0.2s ease;
}

.recommend-list a:hover {
    transform: translateX(4px);
    background: #ffe4ef;
}

.recommend-list img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 14px;
    background: #ffe4ef;
}

.recommend-list strong {
    display: block;
    font-weight: 900;
    color: #111827;
    line-height: 1.45;
}

.recommend-list span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.search-results-note {
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.empty-state {
    padding: 42px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(244, 114, 182, 0.18);
    color: var(--muted);
    text-align: center;
}

.site-footer {
    margin-top: 40px;
    padding: 48px 24px;
    background: linear-gradient(90deg, #fff1f8, #fff7ed);
    border-top: 1px solid rgba(244, 114, 182, 0.18);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
}

.footer-grid p {
    color: var(--muted);
    line-height: 1.8;
    margin-top: 16px;
    max-width: 520px;
}

.footer-grid h3 {
    font-weight: 900;
    margin-bottom: 12px;
}

.footer-grid a {
    display: block;
    color: #4b5563;
    margin: 8px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .hero-side {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .side-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        height: 66px;
        padding: 0 16px;
    }

    .site-logo,
    .footer-logo {
        font-size: 20px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: 54px 16px 52px;
    }

    .hero-focus,
    .hero-side,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 520px;
        border-radius: 26px;
    }

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

    .section,
    .detail-wrap,
    .search-wrap {
        padding: 42px 16px;
    }

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

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

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

    .movie-card-body h3 {
        font-size: 16px;
        min-height: 44px;
    }

    .movie-card-body p {
        font-size: 13px;
        min-height: 66px;
    }

    .detail-hero,
    .player-card,
    .article-card,
    .recommend-card {
        padding: 18px;
        border-radius: 24px;
    }

    .detail-poster {
        max-width: 300px;
        margin: 0 auto;
    }

    .player-overlay span {
        width: 74px;
        height: 74px;
        font-size: 28px;
    }
}

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

    .rank-item {
        grid-template-columns: 38px 58px minmax(0, 1fr);
    }

    .rank-item img {
        width: 58px;
        height: 78px;
    }

    .mobile-panel form,
    .search-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .mobile-panel button,
    .search-panel button,
    .filter-clear {
        width: 100%;
    }
}
