:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(244, 63, 94, 0.18);
    --shadow: 0 20px 45px rgba(225, 29, 72, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, var(--pink-50) 100%);
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--rose-100), var(--pink-100));
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(252, 231, 243, 0.96));
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--pink-600);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-600));
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.25);
    font-size: 15px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.12);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--pink-600);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 0;
    color: #374151;
    font-weight: 700;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 660px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.18), transparent 35%), linear-gradient(135deg, #fff7f7 0%, #ffe4e6 45%, #fdf2f8 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(42px);
    opacity: 0.5;
}

.hero-glow-one {
    width: 260px;
    height: 260px;
    left: 8%;
    top: 8%;
    background: var(--pink-500);
}

.hero-glow-two {
    width: 340px;
    height: 340px;
    right: -80px;
    bottom: -60px;
    background: var(--rose-500);
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 70px 0;
}

.hero-carousel {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: 54px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--pink-600);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    color: #111827;
    letter-spacing: -0.04em;
}

.hero-summary {
    margin: 24px 0 0;
    max-width: 720px;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--pink-600);
    border: 1px solid rgba(244, 63, 94, 0.18);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags span {
    padding: 8px 12px;
}

.tag-row span {
    padding: 5px 9px;
    background: var(--pink-50);
}

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

.primary-button,
.ghost-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.primary-button:hover,
.ghost-button:hover,
.outline-button:hover {
    transform: translateY(-2px);
}

.ghost-button,
.outline-button {
    color: var(--pink-600);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(244, 63, 94, 0.22);
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(225, 29, 72, 0.22);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.38));
}

.hero-play,
.play-icon {
    position: absolute;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-600));
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(225, 29, 72, 0.28);
}

.hero-play {
    z-index: 2;
    left: 26px;
    bottom: 26px;
    width: 62px;
    height: 62px;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 12px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.22);
    cursor: pointer;
}

.hero-dot.active {
    width: 34px;
    background: var(--pink-600);
}

.section-block {
    padding: 70px 0;
}

.white-block {
    background: #ffffff;
}

.rose-block {
    background: linear-gradient(120deg, var(--pink-100), var(--rose-100));
}

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

.section-heading h2,
.movie-article h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 4vw, 40px);
    letter-spacing: -0.03em;
}

.section-heading p:not(.eyebrow) {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.center-heading {
    display: block;
    max-width: 760px;
    text-align: center;
}

.text-link {
    flex: 0 0 auto;
    color: var(--pink-600);
    font-weight: 800;
}

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

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

.category-card {
    display: grid;
    gap: 12px;
    min-height: 178px;
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff7f7, #ffffff);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(244, 63, 94, 0.35);
    box-shadow: var(--shadow);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--pink-600);
}

.category-card strong {
    font-size: 20px;
}

.category-card em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.7;
}

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

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

.related-grid,
.ranking-preview {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.poster-link img {
    transition: transform 0.32s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
}

.year-badge {
    left: 12px;
}

.rank-badge {
    right: 12px;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-600));
}

.play-icon {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-icon {
    opacity: 1;
    transform: translateY(0);
}

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

.movie-meta {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

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

.movie-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.page-hero,
.detail-hero {
    background: linear-gradient(135deg, var(--rose-100), #ffffff 58%, var(--pink-100));
}

.small-hero {
    padding: 72px 0 54px;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

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

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

.filter-panel {
    position: relative;
    z-index: 3;
    margin: -30px auto 0;
    width: min(1180px, calc(100% - 32px));
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 120px;
    gap: 14px;
    align-items: end;
}

.filter-grid label {
    display: grid;
    gap: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 16px;
    padding: 0 14px;
    color: #111827;
    background: #ffffff;
    outline: none;
}

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

.filter-empty {
    margin: 18px 0 0;
    color: var(--muted);
    text-align: center;
    font-weight: 700;
}

.rank-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list li a {
    display: grid;
    grid-template-columns: 60px minmax(160px, 0.7fr) minmax(160px, 0.7fr) minmax(240px, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, var(--pink-50));
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(225, 29, 72, 0.07);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--pink-600);
    font-weight: 900;
}

.rank-list strong {
    font-size: 17px;
}

.rank-list em,
.rank-list span:last-child {
    color: var(--muted);
    font-style: normal;
    line-height: 1.6;
}

.detail-hero {
    padding: 64px 0;
}

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

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.detail-info .lead-text {
    max-width: 780px;
    margin: 20px 0 0;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.8;
}

.detail-tags {
    margin-top: 22px;
}

.detail-meta-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.detail-meta-list div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
}

.detail-meta-list dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta-list dd {
    margin: 0;
    color: #111827;
    font-weight: 800;
}

.player-section {
    padding: 70px 0;
    background: #111827;
}

.player-section .section-heading h2,
.player-section .eyebrow {
    color: #ffffff;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    aspect-ratio: 16 / 9;
}

.movie-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    cursor: pointer;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.78));
    cursor: pointer;
}

.play-cover span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-600));
    box-shadow: 0 18px 38px rgba(225, 29, 72, 0.32);
    font-size: 34px;
}

.play-cover strong {
    font-size: 18px;
}

.play-cover.hidden {
    display: none;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 860px);
}

.movie-article {
    padding: 34px;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff, var(--pink-50));
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.08);
}

.movie-article h2 + p {
    margin-top: 12px;
}

.movie-article p {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.95;
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.site-footer {
    background: linear-gradient(180deg, var(--pink-50), var(--rose-100));
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    padding: 42px 0;
}

.footer-grid p {
    max-width: 600px;
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    color: #374151;
    font-weight: 800;
}

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

.footer-bottom {
    padding: 18px 0;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid rgba(244, 63, 94, 0.12);
}

[hidden] {
    display: none !important;
}

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

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

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

    .menu-button {
        display: block;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-carousel {
        min-height: 800px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-poster {
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-dots {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-heading {
        display: block;
    }

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

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

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

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

    .rank-list li a {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .rank-list em,
    .rank-list span:last-child {
        grid-column: 2;
    }

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

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

    .brand {
        font-size: 20px;
    }

    .hero-container {
        padding: 46px 0 64px;
    }

    .hero-carousel {
        min-height: 760px;
    }

    .hero-summary,
    .detail-info .lead-text {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button,
    .outline-button {
        width: 100%;
    }

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

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

    .category-grid,
    .large-category-grid {
        grid-template-columns: 1fr;
    }

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

    .small-hero,
    .detail-hero {
        padding: 46px 0;
    }

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

    .movie-article {
        padding: 22px;
    }

    .play-cover span {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
