* {
    box-sizing: border-box;
}

:root {
    --rose: #e11d48;
    --pink: #db2777;
    --purple: #9333ea;
    --dark: #111827;
    --muted: #6b7280;
    --soft: #fff1f2;
    --soft-purple: #faf5ff;
    --border: #f3d2dc;
    --shadow: 0 18px 45px rgba(136, 19, 55, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 34%, #fff1f2 100%);
    line-height: 1.6;
}

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: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(244, 114, 182, 0.18);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 900;
    color: #1f2937;
    letter-spacing: -0.03em;
}

.site-logo span,
.footer-logo span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 38px;
    padding: 0 9px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--purple));
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
}

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

.site-nav a {
    padding: 10px 14px;
    color: #4b5563;
    font-weight: 700;
    border-radius: 999px;
    transition: 0.2s ease;
}

.site-nav a:hover {
    color: var(--rose);
    background: #fff1f2;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    border-radius: 14px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--rose);
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(120deg, var(--rose), var(--pink));
}

.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 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.42), rgba(225, 29, 72, 0.34)), linear-gradient(0deg, rgba(17, 24, 39, 0.76), transparent 58%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
    gap: 48px;
    height: 100%;
    color: #ffffff;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.section-heading span,
.page-hero span,
.ranking-copy span {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    color: #ffe4e6;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 32px;
    color: #ffe4e6;
    font-size: clamp(18px, 2.2vw, 24px);
}

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

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 16px 30px rgba(225, 29, 72, 0.35);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(225, 29, 72, 0.42);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

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

.hero-card span {
    display: block;
    padding: 16px 18px;
    color: #ffffff;
    font-weight: 800;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translateY(-50%);
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    border: 0;
    border-radius: 999px;
    transition: 0.2s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: #ffffff;
}

.home-search-section,
.section-block {
    padding: 64px 0;
}

.soft-bg {
    background: linear-gradient(135deg, #fff1f2, #faf5ff);
}

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

.section-heading.centered {
    display: block;
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
}

.section-heading span,
.page-hero span,
.ranking-copy span {
    color: var(--rose);
    background: #fff1f2;
    border-color: #ffe4e6;
}

.section-heading h2,
.page-hero h1,
.ranking-copy h1 {
    margin: 10px 0 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.ranking-copy p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.section-heading > a,
.text-link {
    color: var(--rose);
    background: #fff1f2;
    border: 1px solid #ffe4e6;
}

.search-panel {
    margin: 0 auto;
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    max-width: 820px;
    margin: 0 auto;
    padding: 8px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #ffe4e6;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.search-box input,
.search-box select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: #111827;
    background: #ffffff;
    border: 0;
    border-radius: 16px;
    outline: 0;
}

.search-box select {
    color: var(--rose);
    font-weight: 800;
}

.search-empty {
    min-height: 24px;
    margin: 16px 0 0;
    color: var(--rose);
    font-weight: 800;
    text-align: center;
}

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
    transition: 0.24s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    height: 270px;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #e9d5ff);
}

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

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

img.is-missing {
    opacity: 0;
}

.poster-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.84), transparent);
}

.poster-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(225, 29, 72, 0.9);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    left: auto;
    right: 12px;
    background: rgba(147, 51, 234, 0.92);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--rose);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 0 0 9px;
    color: #111827;
    font-size: 18px;
    line-height: 1.3;
}

.movie-card h3 a:hover {
    color: var(--rose);
}

.movie-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 13px;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span {
    padding: 4px 8px;
    color: #7e22ce;
    background: #faf5ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile,
.category-overview-card {
    display: block;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(244, 114, 182, 0.2);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
    transition: 0.22s ease;
}

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

.category-tile span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 10px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong,
.category-overview-card p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.category-overview-card {
    display: grid;
    gap: 18px;
}

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

.category-thumb-row img {
    width: 100%;
    height: 116px;
    object-fit: cover;
    background: linear-gradient(135deg, #fce7f3, #e9d5ff);
    border-radius: 14px;
}

.page-hero {
    padding: 86px 0 64px;
    background: radial-gradient(circle at top left, #fce7f3, transparent 38%), linear-gradient(135deg, #faf5ff, #ffffff 48%, #fff1f2);
}

.compact-hero .container {
    max-width: 900px;
}

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

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

.breadcrumb em {
    color: #d1d5db;
    font-style: normal;
}

.ranking-hero,
.detail-hero {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background: #111827;
}

.ranking-hero > img,
.detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    filter: blur(1px);
}

.ranking-mask,
.detail-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.52), rgba(225, 29, 72, 0.24));
}

.ranking-copy {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 480px;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.ranking-copy h1,
.ranking-copy p {
    color: #ffffff;
}

.ranking-copy p {
    max-width: 680px;
    color: #ffe4e6;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 520px;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    color: #ffffff;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    background: linear-gradient(135deg, #fce7f3, #e9d5ff);
}

.detail-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 780px;
    margin: 0 0 22px;
    color: #ffe4e6;
    font-size: 19px;
}

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

.detail-meta span {
    padding: 7px 11px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-weight: 800;
}

.large-tags span {
    color: #ffffff;
    background: rgba(147, 51, 234, 0.7);
}

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

.detail-primary,
.detail-aside,
.article-section,
.player-section {
    background: #ffffff;
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 26px;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

.player-section,
.article-section,
.detail-aside {
    padding: 24px;
}

.detail-primary {
    display: grid;
    gap: 22px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.player-section h2,
.article-section h2,
.detail-aside h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 24px;
}

.article-section p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 22px;
}

.player-shell video,
.player-cover,
.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-shell video {
    z-index: 1;
    object-fit: contain;
}

.player-cover {
    z-index: 2;
    cursor: pointer;
    background: #111827;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.48;
}

.player-cover.is-hidden {
    display: none;
}

.play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 20px 45px rgba(225, 29, 72, 0.45);
    transform: translate(-50%, -50%);
    font-size: 32px;
    text-indent: 4px;
}

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

.side-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: #fff7f9;
    border: 1px solid #ffe4e6;
    border-radius: 18px;
    transition: 0.2s ease;
}

.side-card:hover {
    transform: translateX(3px);
    background: #ffffff;
}

.side-card img {
    width: 82px;
    height: 104px;
    object-fit: cover;
    background: linear-gradient(135deg, #fce7f3, #e9d5ff);
    border-radius: 13px;
}

.side-card strong,
.side-card em {
    display: block;
}

.side-card strong {
    margin-bottom: 6px;
    color: #111827;
    font-size: 15px;
    line-height: 1.35;
}

.side-card em {
    color: var(--rose);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.page-neighbor-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.page-neighbor-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    color: var(--rose);
    background: #ffffff;
    border: 1px solid #ffe4e6;
    border-radius: 999px;
    font-weight: 900;
}

.site-footer {
    padding: 44px 0;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-logo {
    color: #ffffff;
}

.footer-grid p {
    max-width: 620px;
    margin: 12px 0 0;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

[data-movie-card].is-hidden {
    display: none;
}

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

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

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid #ffe4e6;
        border-radius: 22px;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero-carousel {
        height: 680px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 26px;
        padding: 70px 0 84px;
    }

    .hero-card {
        max-width: 220px;
    }

    .hero-card img {
        height: 250px;
    }

    .hero-control {
        display: none;
    }

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

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

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

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

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

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

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

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

    .movie-poster {
        height: 230px;
    }

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

    .movie-card h3 {
        font-size: 16px;
    }

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

    .detail-copy h1 {
        font-size: 34px;
    }

    .player-section,
    .article-section,
    .detail-aside {
        padding: 18px;
        border-radius: 22px;
    }

    .play-circle {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}

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

    .movie-poster {
        height: 310px;
    }
}
