:root {
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-soft: #fdf2f8;
    --color-line: #e5e7eb;
    --color-pink: #ec4899;
    --color-pink-dark: #db2777;
    --color-purple: #9333ea;
    --color-blue: #60a5fa;
    --shadow-card: 0 16px 40px rgba(31, 41, 55, 0.12);
    --shadow-soft: 0 12px 28px rgba(236, 72, 153, 0.18);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 28%, #f8fafc 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

body.nav-open {
    overflow: hidden;
}

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: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-pink), var(--color-blue));
    box-shadow: var(--shadow-soft);
    font-size: 15px;
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #f472b6 0%, #a855f7 48%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--color-pink-dark);
    background: #fdf2f8;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--color-pink-dark);
    background: #fdf2f8;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 62px 0 70px;
    background:
        radial-gradient(circle at 15% 10%, rgba(244, 114, 182, 0.38), transparent 34%),
        radial-gradient(circle at 80% 15%, rgba(96, 165, 250, 0.33), transparent 32%),
        linear-gradient(135deg, #fff1f7 0%, #f4edff 48%, #eaf6ff 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    align-items: center;
    gap: 44px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--color-pink-dark);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.12);
    font-weight: 750;
    font-size: 14px;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-gradient-text {
    display: block;
    background: linear-gradient(90deg, #ec4899, #9333ea, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 680px;
    color: #4b5563;
    font-size: 18px;
    margin-bottom: 26px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    box-shadow: var(--shadow-soft);
}

.button-secondary {
    color: var(--color-pink-dark);
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(244, 114, 182, 0.26);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(236, 72, 153, 0.2);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-tags a,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    color: #be185d;
    background: #fce7f3;
    font-size: 13px;
    font-weight: 700;
}

.hero-slider {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.78fr 1fr;
    gap: 22px;
    align-items: stretch;
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-poster,
.hero-info-card {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(31, 41, 55, 0.22);
}

.hero-poster {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

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

.hero-poster:hover img {
    transform: scale(1.04);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.76) 100%);
}

.hero-poster-meta {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    color: #fff;
}

.hero-info-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 500px;
    padding: 34px;
    color: #fff;
    background:
        linear-gradient(160deg, rgba(17, 24, 39, 0.82), rgba(219, 39, 119, 0.66)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-info-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.22), transparent 34%);
}

.hero-info-content {
    position: relative;
    z-index: 2;
}

.hero-info-content h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 900;
}

.hero-info-content p {
    color: rgba(255, 255, 255, 0.86);
    margin: 0 0 22px;
}

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

.hero-meta-line span,
.card-region,
.rank-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(236, 72, 153, 0.94);
    font-size: 12px;
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -34px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(219, 39, 119, 0.28);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: var(--color-pink);
}

.section {
    padding: 64px 0;
}

.section-soft {
    background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 50%, #eff6ff 100%);
}

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

.section-title {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.035em;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

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

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
    opacity: 1;
}

.card-region {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
}

.play-mark {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(236, 72, 153, 0.92);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

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

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--color-muted);
    font-size: 13px;
}

.movie-card p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tags span {
    padding: 3px 8px;
    border-radius: 999px;
    color: #9333ea;
    background: #f3e8ff;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #8b5cf6 55%, #60a5fa);
    box-shadow: var(--shadow-soft);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #a855f7, #ec4899 55%, #fb7185);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #3b82f6, #a855f7 54%, #ec4899);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -38px;
    top: -42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.category-card span {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 850;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 30px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0 16px;
    color: #374151;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.list-hero {
    padding: 54px 0 44px;
    background:
        radial-gradient(circle at 15% 18%, rgba(244, 114, 182, 0.35), transparent 32%),
        radial-gradient(circle at 84% 10%, rgba(96, 165, 250, 0.25), transparent 32%),
        linear-gradient(135deg, #fff1f7 0%, #f4edff 56%, #eef7ff 100%);
}

.list-hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.list-hero p {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 17px;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 74px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

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

.rank-thumb {
    overflow: hidden;
    width: 74px;
    height: 98px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

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

.rank-row h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 850;
}

.rank-row p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-hero {
    padding: 46px 0 58px;
    background: linear-gradient(135deg, #fff1f7 0%, #f5edff 52%, #eef7ff 100%);
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(270px, 0.36fr) minmax(0, 0.64fr);
    gap: 28px;
    align-items: stretch;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, #fce7f3, #dbeafe);
    box-shadow: var(--shadow-card);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.detail-main {
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: var(--shadow-card);
}

.detail-main h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #be185d;
    background: #fce7f3;
    font-size: 13px;
    font-weight: 750;
}

.detail-one-line {
    color: #4b5563;
    font-size: 18px;
    margin-bottom: 22px;
}

.player-section {
    padding: 54px 0 20px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.26);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.26), rgba(2, 6, 23, 0.74));
    z-index: 3;
}

.play-overlay span {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    box-shadow: var(--shadow-soft);
    font-size: 30px;
}

.play-overlay strong {
    font-size: 20px;
    letter-spacing: 0.04em;
}

.player-box.is-playing .play-overlay,
.player-box.is-ready .play-overlay[hidden] {
    display: none;
}

.content-card {
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.07);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
}

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

.footer {
    margin-top: 40px;
    padding: 44px 0;
    color: #4b5563;
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
    border-top: 1px solid #e5e7eb;
}

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

.footer h2,
.footer h3 {
    margin: 0 0 12px;
    color: #1f2937;
    font-weight: 900;
}

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

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

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

.hidden-by-filter {
    display: none !important;
}

@media (max-width: 1100px) {
    .hero-inner,
    .rank-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-slider,
    .hero-poster,
    .hero-info-card {
        min-height: 460px;
    }

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

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

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: #fff;
        box-shadow: var(--shadow-card);
    }

    body.nav-open .nav-links {
        display: flex;
    }

    .nav-links a {
        padding: 13px 16px;
    }

    .hero {
        padding-top: 42px;
    }

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

    .hero-info-card {
        min-height: 360px;
    }

    .hero-poster {
        display: none;
    }

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

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

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

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

    .brand-title {
        font-size: 20px;
    }

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

    .section {
        padding: 46px 0;
    }

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

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

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

    .rank-row {
        grid-template-columns: 44px 62px 1fr;
        gap: 10px;
    }

    .rank-thumb {
        width: 62px;
        height: 82px;
    }

    .detail-main,
    .content-card {
        padding: 20px;
        border-radius: 22px;
    }

    .detail-poster img {
        min-height: auto;
    }
}
