:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --orange: #f97316;
    --amber: #f59e0b;
    --dark: #111827;
    --muted: #6b7280;
    --soft: #fff1f2;
    --line: rgba(244, 63, 94, 0.16);
    --shadow: 0 22px 55px rgba(190, 24, 93, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2937;
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #ffe4e6 100%);
    line-height: 1.6;
}

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: linear-gradient(90deg, #ec4899 0%, #f43f5e 48%, #fb923c 100%);
    box-shadow: 0 18px 40px rgba(190, 24, 93, 0.28);
}

.navbar {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 650;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #fef3c7;
    transform: translateY(-1px);
}

.nav-search {
    position: relative;
    width: min(310px, 30vw);
}

.nav-search input,
.filter-input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 12px 48px 12px 18px;
    color: #374151;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.nav-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #ec4899;
    background: #fff7ed;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 22px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 0 0 18px;
}

.mobile-menu a {
    display: block;
    color: #fff;
    padding: 10px 0;
    font-weight: 650;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.32), transparent 34%), linear-gradient(110deg, #db2777 0%, #f43f5e 50%, #fb923c 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.42;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.65s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: saturate(1.18) contrast(1.05);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(190, 24, 93, 0.52), rgba(249, 115, 22, 0.24));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 38px;
    align-items: center;
    color: #fff;
}

.hero-copy h1 {
    margin: 0 0 18px;
    max-width: 820px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h1 span {
    color: #fde68a;
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 28px;
    font-size: clamp(17px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.section-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #be185d;
    background: #fff;
    box-shadow: 0 16px 30px rgba(255, 255, 255, 0.18);
}

.btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.btn-accent {
    color: #fff;
    background: linear-gradient(90deg, #ec4899, #f97316);
    box-shadow: 0 16px 35px rgba(244, 63, 94, 0.24);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-panel {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 390px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 28px 70px rgba(88, 28, 135, 0.28);
    backdrop-filter: blur(8px);
}

.hero-panel img {
    width: 100%;
    height: 390px;
    object-fit: cover;
}

.hero-panel-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 26px;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
}

.hero-panel-body h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 36px);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: #fff;
}

.featured-strip {
    position: relative;
    z-index: 4;
    margin-top: -82px;
}

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

.featured-card {
    position: relative;
    height: 340px;
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    box-shadow: var(--shadow);
    transform: translateZ(0);
}

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

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

.featured-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 26px;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent);
}

.section {
    padding: 58px 0;
}

.section-alt {
    padding: 58px 0;
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.86), rgba(255, 228, 230, 0.9), rgba(252, 231, 243, 0.82));
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 3.6vw, 42px);
    color: #1f2937;
    line-height: 1.14;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.movie-grid.compact {
    grid-template-columns: repeat(5, 1fr);
}

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 38px rgba(190, 24, 93, 0.11);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(190, 24, 93, 0.18);
}

.card-poster {
    position: relative;
    display: block;
    height: 255px;
    overflow: hidden;
    background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

.movie-grid.compact .card-poster {
    height: 220px;
}

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

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

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    color: #be123c;
    background: #ffe4e6;
    font-size: 12px;
    font-weight: 800;
}

.card-poster .badge {
    position: absolute;
    right: 12px;
    top: 12px;
    color: #fff;
    background: rgba(236, 72, 153, 0.9);
    backdrop-filter: blur(6px);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.32;
}

.card-body h3 a:hover {
    color: var(--pink);
}

.card-text {
    min-height: 48px;
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

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

.list-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(190, 24, 93, 0.1);
}

.list-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.list-card .card-body {
    align-self: center;
}

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

.category-card {
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #fb923c);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #f43f5e, #f59e0b);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #db2777, #ef4444);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 60px rgba(190, 24, 93, 0.22);
}

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

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.page-hero {
    padding: 76px 0 64px;
    color: #fff;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 30%), linear-gradient(110deg, #be185d, #f43f5e 52%, #fb923c);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.filter-panel {
    margin: -28px auto 34px;
    position: relative;
    z-index: 3;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.chip {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #be123c;
    background: #ffe4e6;
    font-weight: 750;
    cursor: pointer;
}

.chip:hover,
.chip.is-active {
    color: #fff;
    background: linear-gradient(90deg, #ec4899, #f97316);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 120px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 26px rgba(190, 24, 93, 0.1);
}

.rank-num {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #fb923c);
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 120px;
    height: 82px;
    border-radius: 14px;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #be185d;
    font-weight: 700;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08), rgba(0, 0, 0, 0.32));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-bubble {
    display: grid;
    place-items: center;
    gap: 12px;
}

.play-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #be185d;
    background: rgba(255, 255, 255, 0.94);
    font-size: 34px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.play-text {
    font-size: 18px;
    font-weight: 900;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
}

.detail-card,
.side-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

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

.detail-card h1 {
    margin: 0 0 12px;
    color: #111827;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: #111827;
}

.detail-card p {
    color: #4b5563;
    font-size: 16px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 20px;
}

.side-card {
    padding: 20px;
}

.side-poster {
    width: 100%;
    border-radius: 20px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin-bottom: 16px;
}

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

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

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

.related-item h3 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.35;
}

.related-item p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
}

.site-footer {
    margin-top: 70px;
    color: #e5e7eb;
    background: linear-gradient(90deg, #1f2937, #111827, #030712);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 48px 0;
}

.footer-grid h2,
.footer-grid h3 {
    color: #fff;
    margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a {
    color: #9ca3af;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

.hidden-card {
    display: none !important;
}

.empty-state {
    display: none;
    padding: 34px;
    border-radius: 22px;
    background: #fff;
    color: #6b7280;
    text-align: center;
    box-shadow: var(--shadow);
}

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

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

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

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        padding: 62px 0 112px;
    }

    .hero-panel {
        min-height: 320px;
    }

    .hero-panel img {
        height: 320px;
    }

    .featured-grid,
    .movie-grid,
    .movie-grid.compact,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-head,
    .filter-row {
        align-items: stretch;
        flex-direction: column;
        display: flex;
    }

    .list-card,
    .rank-item {
        grid-template-columns: 1fr;
    }

    .rank-item img {
        width: 100%;
        height: 170px;
    }

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

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

    .logo {
        font-size: 18px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        min-height: 620px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .featured-grid,
    .movie-grid,
    .movie-grid.compact,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        height: 300px;
    }

    .card-poster,
    .movie-grid.compact .card-poster {
        height: 310px;
    }

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

.hero-spotlight {
    position: relative;
    min-height: 390px;
}

.hero-spotlight .hero-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-spotlight .hero-panel.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.hero-panel-body .btn {
    margin-top: 14px;
}

@media (max-width: 860px) {
    .hero-spotlight {
        min-height: 320px;
    }
}
