:root {
    --brand: #e11d48;
    --brand-dark: #be123c;
    --brand-soft: #ffe4e6;
    --pink: #ec4899;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #fff7f9;
    --shadow: 0 18px 45px rgba(225, 29, 72, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7f9 0%, #ffffff 42%, #fff7f9 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 10px 35px rgba(17, 24, 39, 0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 68px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--brand);
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--pink));
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
}

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

.main-nav a {
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
    color: var(--brand);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
}

.search-input {
    width: 100%;
    border: 1px solid #fecdd3;
    background: #fff;
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff1f2;
    color: var(--brand);
    font-size: 22px;
    cursor: pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 610px;
    color: #fff;
    background: #111827;
}

.hero-track {
    position: relative;
    min-height: 610px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.34), transparent 30%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.72) 46%, rgba(17, 24, 39, 0.20) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.92) 0%, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 610px;
    display: grid;
    align-content: center;
    max-width: 700px;
    padding: 96px 22px 80px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 800;
    color: #ffe4e6;
}

.hero h1 {
    margin: 20px 0 12px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-desc {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    max-width: 650px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.hero .tag {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--pink));
    box-shadow: 0 18px 34px rgba(225, 29, 72, 0.32);
}

.btn-light {
    color: var(--brand);
    background: rgba(255, 255, 255, 0.94);
}

.btn-ghost {
    color: var(--brand);
    background: #fff1f2;
}

.hero-search {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    max-width: 560px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 120px;
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    outline: none;
}

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

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

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

.section {
    padding: 58px 0;
}

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

.section-title h2,
.page-title h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.section-title p,
.page-title p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.movie-card {
    background: var(--paper);
    border: 1px solid rgba(254, 205, 211, 0.75);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(225, 29, 72, 0.35);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

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

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(225, 29, 72, 0.92);
}

.card-body {
    padding: 18px;
}

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

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

.card-meta {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 9px;
}

.card-desc {
    color: #4b5563;
    font-size: 14px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: 24px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, #e11d48, #ec4899);
    box-shadow: var(--shadow);
}

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

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

.category-card:after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p,
.category-card span {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.88);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 96px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid #ffe4e6;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

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

.rank-poster {
    width: 96px;
    height: 128px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff1f2;
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h2,
.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
}

.page-title {
    padding: 58px 0 26px;
}

.page-tools {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin: 0 0 26px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.filter-pill {
    border: 1px solid #fecdd3;
    background: #fff;
    color: var(--brand-dark);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
}

.filter-pill.is-active,
.filter-pill:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--pink));
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    padding: 32px 0 42px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    background: #fff1f2;
}

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

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

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

.detail-summary {
    color: #374151;
    font-size: 17px;
    margin: 0 0 18px;
}

.content-card {
    background: #fff;
    border: 1px solid #ffe4e6;
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.06);
    margin-bottom: 26px;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.content-card p {
    margin: 0;
    color: #374151;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 26px 60px rgba(17, 24, 39, 0.22);
    margin-bottom: 32px;
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.45), rgba(17, 24, 39, 0.72));
    z-index: 3;
}

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

.play-circle {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--pink));
    box-shadow: 0 20px 40px rgba(225, 29, 72, 0.36);
    font-size: 40px;
}

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

.related-card {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #ffe4e6;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.06);
}

.related-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #fff1f2;
}

.related-card span {
    display: block;
    padding: 12px;
    font-size: 14px;
    font-weight: 900;
}

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

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 46px 22px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
}

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

.footer-inner p,
.footer-inner a {
    color: #d1d5db;
    font-size: 14px;
}

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

.empty-state {
    display: none;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px solid #ffe4e6;
    border-radius: 24px;
}

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

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

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

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 12px 18px;
    }

    .main-nav,
    .header-search {
        display: none;
        width: 100%;
    }

    .main-nav.is-open,
    .header-search.is-open {
        display: flex;
    }

    .main-nav.is-open {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
    }

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

    .hero,
    .hero-track,
    .hero-content {
        min-height: 560px;
    }

    .hero-search {
        border-radius: 28px;
        flex-direction: column;
    }

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

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

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

    .rank-item {
        grid-template-columns: 46px 78px 1fr;
    }

    .rank-item .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .rank-poster {
        width: 78px;
        height: 104px;
    }

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

@media (max-width: 560px) {
    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 72px 16px 70px;
    }

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

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

    .section-title,
    .page-tools {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .section-title {
        display: grid;
    }

    .content-card {
        padding: 20px;
    }
}
