:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --purple: #7c3aed;
    --blue: #2563eb;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button, input, select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(229, 231, 235, 0.9);
}

.ribbon-decoration {
    height: 4px;
    background: linear-gradient(90deg, #f472b6, #a78bfa, #60a5fa, #f472b6);
    background-size: 240% 100%;
    animation: ribbonMove 6s linear infinite;
}

@keyframes ribbonMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 240% 50%; }
}

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

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
}

.brand-name {
    display: block;
    font-size: 21px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

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

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

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

.header-search {
    display: flex;
    align-items: center;
    width: 300px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
}

.header-search input,
.mobile-search input {
    width: 100%;
    border: 0;
    outline: none;
    padding: 10px 14px;
    color: var(--ink);
    background: transparent;
}

.header-search button,
.mobile-search button,
.btn,
.filter-bar button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-weight: 800;
    cursor: pointer;
}

.header-search button {
    align-self: stretch;
    padding: 0 16px;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #374151;
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-link {
    display: block;
    padding: 12px 0;
    color: #374151;
    font-weight: 700;
    border-top: 1px solid var(--line);
}

.mobile-search {
    display: flex;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.mobile-search button {
    padding: 0 16px;
}

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

.hero-slide {
    display: none;
    min-height: 650px;
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    display: block;
}

.hero-inner {
    width: min(1240px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
    align-items: center;
    gap: 44px;
    padding: 76px 0 72px;
}

.hero-kicker,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(252, 231, 243, 0.92);
    font-size: 13px;
    font-weight: 900;
}

.hero h1 {
    margin: 18px 0 18px;
    max-width: 780px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-meta,
.detail-meta,
.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.hero-meta span,
.detail-meta span,
.page-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(124, 58, 237, 0.32);
}

.btn.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.hero-art {
    position: relative;
    min-height: 420px;
}

.hero-poster-stack {
    position: absolute;
    inset: 10px 24px 0 0;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.88), rgba(124, 58, 237, 0.76));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    transform: rotate(3deg);
}

.hero-poster {
    position: relative;
    z-index: 2;
    width: min(380px, 88%);
    aspect-ratio: 3 / 4;
    margin-left: auto;
    overflow: hidden;
    border-radius: 32px;
    background: radial-gradient(circle at 30% 20%, #fdf2f8, #db2777 42%, #4c1d95 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

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

.hero-poster img.is-missing,
.poster-shell img.is-missing,
.compact-cover img.is-missing,
.detail-cover img.is-missing {
    opacity: 0;
}

.hero-panel {
    position: absolute;
    left: 0;
    right: 42px;
    bottom: 6px;
    z-index: 4;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.hero-panel strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.hero-panel p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    font-size: 14px;
}

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

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

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

main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero {
    position: relative;
    margin: 34px auto 30px;
    padding: clamp(34px, 6vw, 66px);
    overflow: hidden;
    border-radius: 32px;
    color: #ffffff;
    background: radial-gradient(circle at 18% 20%, rgba(236, 72, 153, 0.98), transparent 34%), linear-gradient(135deg, #111827, #4c1d95 58%, #be185d);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 14px 0 12px;
    max-width: 880px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
}

.section {
    margin: 56px 0;
}

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

.section-title h2,
.section-title h1 {
    margin: 12px 0 6px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.section-link {
    color: var(--pink);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.78);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.poster-link {
    display: block;
}

.poster-shell {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: radial-gradient(circle at 32% 22%, #fce7f3, #c026d3 45%, #111827 100%);
}

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

.poster-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-title {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.movie-title a:hover,
.compact-card h3 a:hover,
.rank-title:hover {
    color: var(--pink);
}

.movie-meta,
.movie-desc,
.compact-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-desc {
    margin-top: 10px;
    min-height: 42px;
}

.movie-tags,
.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.movie-tags span,
.mini-tags span {
    padding: 5px 8px;
    border-radius: 9px;
    color: #6b21a8;
    background: #f3e8ff;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 24px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #7c3aed);
    box-shadow: var(--shadow-soft);
}

.category-card:nth-child(3n + 2) {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

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

.category-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -58px;
    top: -62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.1;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.84);
}

.category-card span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
    font-weight: 900;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.compact-cover {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #fce7f3, #7c3aed);
}

.compact-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.25;
}

.ranking-panel,
.filter-panel,
.detail-panel,
.sidebar-panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-panel {
    overflow: hidden;
}

.rank-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-no {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.rank-title {
    display: block;
    font-weight: 900;
}

.rank-info {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.rank-tag {
    color: #be185d;
    font-size: 13px;
    font-weight: 900;
}

.filter-panel {
    margin: 0 0 24px;
    padding: 18px;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 180px)) auto;
    gap: 12px;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    padding: 0 12px;
    outline: none;
}

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

.filter-bar button {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
}

.detail-hero {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    padding: 34px;
    border-radius: 32px;
    color: #ffffff;
    background: radial-gradient(circle at 15% 10%, rgba(236, 72, 153, 0.88), transparent 30%), linear-gradient(135deg, #111827, #3b0764 55%, #be185d);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    background: radial-gradient(circle at 20% 20%, #fce7f3, #be185d 48%, #111827 100%);
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.35);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

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

.detail-intro {
    max-width: 820px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.player-section {
    margin: 34px 0;
}

.video-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.32), rgba(2, 6, 23, 0.78));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button-core {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.34);
}

.play-button-core::before {
    content: "";
    margin-left: 7px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 28px solid #ffffff;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    margin: 34px 0 60px;
}

.detail-panel {
    padding: 28px;
}

.detail-panel h2,
.sidebar-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.15;
}

.detail-panel p {
    margin: 0 0 18px;
    color: #374151;
    font-size: 16px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-tags a,
.detail-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #6b21a8;
    background: #f3e8ff;
    font-weight: 800;
    font-size: 13px;
}

.sidebar-panel {
    padding: 18px;
}

.sidebar-panel .compact-list {
    gap: 12px;
}

.sidebar-panel .compact-card {
    grid-template-columns: 82px minmax(0, 1fr);
    box-shadow: none;
}

.no-result {
    display: none;
    padding: 36px;
    border: 1px dashed var(--line);
    border-radius: 24px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
}

.no-result.is-visible {
    display: block;
}

.site-footer {
    margin-top: 70px;
    padding: 42px 0 30px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

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

.footer-inner strong {
    color: var(--pink);
    font-size: 20px;
}

.footer-inner p {
    max-width: 520px;
    margin: 8px 0 0;
    color: var(--muted);
}

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

.footer-links a {
    color: #4b5563;
    font-weight: 700;
}

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

.copyright {
    width: min(1240px, calc(100% - 32px));
    margin: 26px auto 0;
    color: #9ca3af;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

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

    .hero-art {
        min-height: 360px;
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
        width: min(100% - 24px, 1240px);
    }

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

    .brand-subtitle {
        display: none;
    }

    .hero,
    .hero-slide,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 46px 0 78px;
    }

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

    .hero-summary,
    .detail-intro {
        font-size: 16px;
    }

    .hero-art {
        min-height: 280px;
    }

    .hero-panel {
        right: 0;
    }

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

    .section-head {
        display: block;
    }

    .section-link {
        display: inline-block;
        margin-top: 10px;
    }

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

    .detail-hero {
        padding: 20px;
    }

    .detail-cover {
        max-width: 270px;
    }

    .compact-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

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