:root {
    color-scheme: light;
    --text: #211628;
    --muted: #74687c;
    --soft: #fff7fd;
    --panel: rgba(255, 255, 255, 0.86);
    --line: rgba(128, 70, 120, 0.14);
    --purple: #7c3aed;
    --pink: #ec4899;
    --rose: #fb7185;
    --orange: #f59e0b;
    --shadow: 0 24px 70px rgba(102, 48, 120, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #faf5ff 0%, #fdf2f8 38%, #ffffff 100%);
    min-height: 100vh;
}

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.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    width: min(1200px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 14px 35px rgba(124, 58, 237, 0.28);
}

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

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

.main-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 15px;
    color: #5d5366;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-nav a:hover {
    color: var(--purple);
    background: rgba(124, 58, 237, 0.1);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 20px;
    color: var(--text);
    background: rgba(124, 58, 237, 0.1);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

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

.hero-slider {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: #190f21;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: saturate(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 36%, rgba(236, 72, 153, 0.36), transparent 34%),
        linear-gradient(90deg, rgba(24, 10, 32, 0.90), rgba(24, 10, 32, 0.54), rgba(24, 10, 32, 0.18)),
        linear-gradient(0deg, rgba(24, 10, 32, 0.88), transparent 58%);
}

.hero-content {
    position: absolute;
    inset: 0;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
    padding-top: 28px;
}

.hero-pill,
.inner-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 16px 45px rgba(236, 72, 153, 0.28);
}

.hero-copy h1 {
    margin: 20px 0 16px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

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

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.hero-meta span,
.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.32);
}

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

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px);
}

.ghost-button.dark {
    color: var(--purple);
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.18);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.page-section {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 0;
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.section-link {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--purple);
    background: rgba(124, 58, 237, 0.1);
    font-weight: 800;
}

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

.category-card {
    min-height: 220px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.18), transparent 40%),
        rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 40px rgba(102, 48, 120, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card-main span {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    font-weight: 800;
}

.category-card-main h3 {
    margin: 18px 0 10px;
    font-size: 22px;
}

.category-card-main p,
.category-samples {
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-samples a {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.08);
    color: var(--purple);
}

.movie-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 36px rgba(102, 48, 120, 0.08);
}

.search-box,
.select-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 18px;
    background: #ffffff;
    color: var(--muted);
}

.search-box input,
.select-box select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 36px rgba(102, 48, 120, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(236, 72, 153, 0.18));
}

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

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

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(12px);
}

.year-badge {
    left: 12px;
}

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

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

.movie-title {
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
}

.movie-title:hover {
    color: var(--purple);
}

.movie-meta {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.movie-card-body p {
    margin: 12px 0 14px;
    min-height: 48px;
    color: #4f4659;
    line-height: 1.65;
    font-size: 14px;
}

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

.tag-row span,
.detail-tags span {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--purple);
    background: rgba(124, 58, 237, 0.1);
    font-size: 12px;
    font-weight: 700;
}

.inner-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 86px;
    background:
        radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.32), transparent 32%),
        radial-gradient(circle at 86% 18%, rgba(124, 58, 237, 0.26), transparent 36%),
        linear-gradient(135deg, #241033, #6d28d9 48%, #db2777);
    color: #ffffff;
}

.inner-hero-content {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.inner-hero h1 {
    max-width: 780px;
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.inner-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.detail-page {
    padding-bottom: 70px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 42px;
    width: min(1200px, calc(100% - 32px));
    margin: 52px auto 0;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 42%),
        rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(24, 10, 32, 0.22);
}

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

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

.breadcrumbs a:hover {
    color: var(--purple);
}

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

.detail-one-line {
    margin: 0;
    color: #4d4258;
    font-size: 18px;
    line-height: 1.8;
}

.detail-info .detail-meta span {
    color: var(--purple);
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.14);
}

.player-section {
    padding-top: 50px;
}

.compact-heading {
    margin-bottom: 16px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #12091b;
    box-shadow: 0 28px 90px rgba(24, 10, 32, 0.28);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #12091b;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.34), rgba(18, 9, 27, 0.74) 42%, rgba(18, 9, 27, 0.88));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    font-size: 30px;
    box-shadow: 0 20px 55px rgba(236, 72, 153, 0.36);
}

.player-cover strong {
    font-size: clamp(22px, 4vw, 36px);
}

.detail-text-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.detail-text-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 42px rgba(102, 48, 120, 0.08);
}

.detail-text-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-text-card p {
    margin: 0;
    color: #4f4659;
    line-height: 1.9;
}

.site-footer {
    margin-top: 74px;
    padding: 48px 0 26px;
    background: #1f1228;
    color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    font-size: 22px;
    color: #ffffff;
}

.footer-inner p {
    max-width: 560px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.66);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: start;
    gap: 12px;
}

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

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.54);
    font-size: 14px;
}

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

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-slider {
        min-height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-copy {
        max-width: 100%;
    }

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

    .category-grid,
    .movie-grid,
    .detail-text-section,
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .movie-toolbar {
        grid-template-columns: 1fr;
    }

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

    .detail-cover img {
        min-height: 0;
        aspect-ratio: 3 / 4;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .site-header-inner {
        height: 64px;
    }

    .brand-name {
        font-size: 18px;
    }

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

    .hero-content,
    .page-section,
    .inner-hero-content,
    .detail-hero,
    .footer-inner,
    .footer-bottom,
    .site-header-inner,
    .mobile-nav {
        width: min(100% - 24px, 1200px);
    }

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

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

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

    .category-grid,
    .movie-grid,
    .detail-text-section,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .page-section {
        padding-top: 44px;
    }

    .inner-hero {
        padding: 76px 0 64px;
    }

    .player-shell {
        border-radius: 22px;
    }
}
