:root {
    --pink: #ec4899;
    --pink-soft: #fce7f3;
    --purple: #9333ea;
    --violet: #7c3aed;
    --blue: #2563eb;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 24px 70px rgba(148, 85, 211, 0.14);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.14), transparent 30rem),
        radial-gradient(circle at 92% 6%, rgba(147, 51, 234, 0.14), transparent 26rem),
        linear-gradient(180deg, #fff7fb 0%, #ffffff 28%, #f8fafc 100%);
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

button,
input {
    font: inherit;
}

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

.ribbon-decoration {
    position: relative;
    overflow: hidden;
    height: 4px;
    background: linear-gradient(90deg, #f472b6, #a855f7, #60a5fa);
}

.ribbon-decoration::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
    animation: ribbon-shine 3s linear infinite;
}

@keyframes ribbon-shine {
    0% {
        left: -100%;
    }
    55%,
    100% {
        left: 100%;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 72px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.25);
}

.brand-text strong,
.footer-brand strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.main-nav {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: 0.2s ease;
}

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

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(320px, 30vw);
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
}

.header-search input,
.page-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.header-search input {
    padding: 8px 10px;
}

.header-search button,
.btn,
.page-search button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.header-search button,
.btn.primary {
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 14px 34px rgba(236, 72, 153, 0.25);
}

.header-search button {
    padding: 8px 14px;
    font-weight: 800;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--pink-soft);
}

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

.mobile-panel {
    display: none;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: white;
}

.mobile-panel.is-open {
    display: grid;
    gap: 14px;
}

.mobile-panel a {
    font-weight: 800;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    min-width: 0;
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.mobile-panel button {
    padding: 12px 16px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: var(--pink);
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: white;
    background: #111827;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 440px);
    align-items: center;
    gap: 52px;
    padding: 80px max(16px, calc((100vw - 1180px) / 2)) 56px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(88, 28, 135, 0.82) 50%, rgba(17, 24, 39, 0.55) 100%),
        var(--hero-image) center / cover no-repeat;
    filter: saturate(1.1);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 8% 6% auto;
    width: 380px;
    height: 380px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.32), transparent 68%);
}

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

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--pink);
    font-weight: 900;
    background: rgba(252, 231, 243, 0.95);
}

.hero-copy h1 {
    margin: 22px 0 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 18px 0 0;
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.05;
}

.hero-copy p {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 20px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn.ghost {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 10px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

.hero-bottom {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: -36px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(16px);
}

.hero-dots,
.hero-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: linear-gradient(90deg, #f472b6, #a855f7);
}

.hero-links a {
    padding: 9px 13px;
    border-radius: 999px;
    color: white;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
}

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

.section-title {
    margin-bottom: 28px;
}

.section-title.split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-title span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--pink);
    font-weight: 900;
}

.section-title h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-title p,
.page-hero p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip-grid a {
    padding: 13px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #4b5563;
    font-weight: 900;
    background: white;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    transition: 0.2s ease;
}

.chip-grid a:hover {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    transform: translateY(-2px);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 900;
    background: rgba(236, 72, 153, 0.92);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 17px;
}

.card-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

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

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

.card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 9px 0 12px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row span {
    color: #9d174d;
    background: var(--pink-soft);
}

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

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 108px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    transition: 0.2s ease;
}

.rank-card:hover {
    transform: translateY(-4px);
    border-color: rgba(236, 72, 153, 0.3);
}

.rank-card img {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
}

.rank-card strong,
.rank-card em {
    display: block;
}

.rank-card strong {
    line-height: 1.35;
}

.rank-card em {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.rank-num {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: white;
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    z-index: 2;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 54px;
}

.small-hero {
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.15), transparent 24rem),
        radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.14), transparent 26rem),
        linear-gradient(135deg, #fff7fb, #f5f3ff);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #6b7280;
    font-weight: 800;
}

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

.page-search {
    display: flex;
    align-items: center;
    width: min(680px, 100%);
    margin-top: 24px;
    padding: 15px 18px;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 44px rgba(236, 72, 153, 0.09);
}

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

.category-card a {
    display: block;
    overflow: hidden;
    min-height: 330px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: white;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
    transition: 0.22s ease;
}

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

.category-preview {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: repeat(2, 112px);
    gap: 8px;
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 22px;
    background: #fdf2f8;
}

.category-preview img:first-child {
    grid-row: span 2;
}

.category-card span {
    color: var(--pink);
    font-weight: 900;
}

.category-card h2 {
    margin: 9px 0;
    font-size: 24px;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    color: white;
    background: #111827;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(88, 28, 135, 0.78), rgba(17, 24, 39, 0.7)),
        var(--detail-image) center / cover no-repeat;
    filter: saturate(1.08);
}

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

.detail-hero .breadcrumb {
    color: rgba(255, 255, 255, 0.7);
}

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

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 8px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.detail-copy h1 {
    margin-top: 18px;
}

.lead {
    max-width: 780px;
    margin: 18px 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 1.75;
}

.detail-meta span {
    color: white;
    background: rgba(255, 255, 255, 0.14);
}

.detail-tags {
    margin: 18px 0 26px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #030712;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    border: 0;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.6), rgba(88, 28, 135, 0.68));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    color: white;
    font-size: 34px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 20px 50px rgba(236, 72, 153, 0.35);
}

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

.player-cover em {
    font-style: normal;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.76);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.content-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: white;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

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

.content-card p {
    margin: 0 0 12px;
    color: #374151;
    line-height: 1.9;
}

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

.site-footer {
    margin-top: 88px;
    color: #4b5563;
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
    border-top: 1px solid var(--line);
}

.footer-ribbon {
    height: 4px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0;
}

.footer-grid p {
    max-width: 420px;
    line-height: 1.8;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--ink);
}

.footer-grid a {
    display: block;
    margin: 8px 0;
}

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

.footer-bottom {
    padding: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: #6b7280;
}

[data-card].is-hidden {
    display: none;
}

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

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

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .hero-slider,
    .hero-track {
        min-height: 760px;
    }

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

    .hero-poster {
        width: min(280px, 78vw);
        margin: 0 auto;
    }

    .hero-bottom {
        display: grid;
    }

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

    .detail-poster {
        width: min(280px, 78vw);
    }
}

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

    .brand-text small {
        display: none;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

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

    .hero-copy h2 {
        font-size: 30px;
    }

    .hero-copy p,
    .lead {
        font-size: 16px;
    }

    .movie-grid,
    .movie-grid.wide-grid,
    .search-result-grid,
    .category-grid,
    .rank-grid {
        grid-template-columns: 1fr;
    }

    .section-title.split {
        display: block;
    }

    .rank-card {
        grid-template-columns: 72px 1fr;
    }

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