:root {
    --bg: #fff7fb;
    --surface: #ffffff;
    --surface-soft: #fff0f7;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f2dbe7;
    --brand: #ec4899;
    --brand-strong: #db2777;
    --brand-soft: #fce7f3;
    --gold: #f59e0b;
    --shadow: 0 18px 45px rgba(219, 39, 119, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 34rem),
        linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fff7fb 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(242, 219, 231, 0.9);
}

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

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

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

.brand-text {
    font-size: 22px;
    color: var(--brand-strong);
}

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

.nav-link,
.mobile-panel a,
.dropdown-panel a {
    color: #374151;
    transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 700;
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 260px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.24s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 14px;
}

.dropdown-panel a:hover {
    color: var(--brand-strong);
    background: #fff1f8;
}

.site-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-search-form input,
.local-search {
    width: 230px;
    height: 42px;
    border: 1px solid #f0cfe0;
    border-radius: 999px;
    background: #ffffff;
    padding: 0 16px;
    outline: none;
    color: var(--text);
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.site-search-form input:focus,
.local-search:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.site-search-form button,
.btn {
    height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #f97316);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.24);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.ghost {
    color: var(--brand-strong);
    background: #ffffff;
    border: 1px solid rgba(236, 72, 153, 0.24);
    box-shadow: none;
}

.btn.text {
    color: #ffffff;
    background: rgba(17, 24, 39, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #fff1f8;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--brand-strong);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.mobile-category-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding-top: 8px;
}

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

.hero-carousel {
    position: relative;
    min-height: 640px;
    margin: 26px auto 26px;
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
    box-shadow: 0 28px 80px rgba(17, 24, 39, 0.22);
}

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

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.15);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.58) 44%, rgba(17, 24, 39, 0.18) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent 52%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(640px, 58%);
    padding: 82px 0 0 64px;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 14px;
    color: #f9a8d4;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--brand-strong);
    background: #fff1f8;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-poster {
    position: absolute;
    right: 64px;
    bottom: 72px;
    z-index: 3;
    width: min(320px, 28%);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    border: 8px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

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

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

.hero-controls {
    position: absolute;
    left: 64px;
    right: 64px;
    bottom: 30px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-controls button {
    pointer-events: auto;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 32px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #ffffff;
}

.quick-search-panel,
.page-hero,
.detail-hero,
.player-section,
.content-section {
    margin: 28px 0;
    border: 1px solid rgba(242, 219, 231, 0.86);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.quick-search-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
}

.quick-search-panel h2,
.section-heading h2,
.footer-links h2,
.article-content h2,
.info-card h2 {
    margin: 0;
    color: #111827;
}

.quick-search-panel p,
.section-heading p,
.category-tile p,
.category-overview-card p,
.page-hero p,
.footer-brand p,
.article-content p,
.info-card dd,
.detail-line {
    color: var(--muted);
    line-height: 1.78;
}

.hero-search input {
    width: min(430px, 48vw);
}

.content-section {
    padding: 28px;
}

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

.section-heading h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.section-heading p {
    margin: 8px 0 0;
}

.section-heading a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--brand-strong);
    background: var(--brand-soft);
    font-weight: 800;
}

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

.category-tile,
.category-overview-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #fff6fb);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover,
.compact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(236, 72, 153, 0.42);
    box-shadow: var(--shadow);
}

.category-tile span,
.category-overview-title {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.category-tile p,
.category-overview-card p {
    margin: 10px 0 0;
    font-size: 14px;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fff1f8, #ffe4e6);
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.48), transparent 52%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--brand-strong);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: all 0.24s ease;
}

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

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
}

.card-body {
    padding: 15px;
}

.card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: #111827;
    font-size: 16px;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.22s ease;
}

.movie-card:hover h3 {
    color: var(--brand-strong);
}

.movie-card p {
    margin: 0 0 12px;
    min-height: 48px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.two-columns {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 28px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.compact-card img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.compact-card h3 {
    margin: 4px 0 6px;
    font-size: 15px;
    line-height: 1.4;
}

.compact-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.mini-rank {
    display: inline-flex;
    min-width: 26px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #ffffff;
    background: var(--brand);
    font-size: 12px;
    font-weight: 900;
}

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

.page-hero {
    padding: 46px;
    background:
        radial-gradient(circle at right top, rgba(236, 72, 153, 0.20), transparent 24rem),
        linear-gradient(135deg, #ffffff, #fff1f8);
}

.page-hero h1 {
    color: #111827;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 17px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    min-height: 36px;
    border: 1px solid #f0cfe0;
    border-radius: 999px;
    padding: 0 14px;
    color: var(--brand-strong);
    background: #ffffff;
    cursor: pointer;
    font-weight: 800;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: #ffffff;
    border-color: var(--brand);
    background: var(--brand);
}

.local-search.large {
    width: min(480px, 100%);
}

.search-toolbar {
    align-items: flex-start;
    flex-direction: column;
}

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

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

.category-samples a {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--brand-strong);
    background: var(--brand-soft);
    font-size: 12px;
    font-weight: 800;
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    padding: 32px;
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.22), transparent 22rem),
        linear-gradient(135deg, #ffffff, #fff4fa);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

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

.detail-info {
    align-self: center;
}

.detail-line {
    margin: 18px 0;
    font-size: 18px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: #374151;
    font-weight: 800;
}

.detail-tags {
    margin-bottom: 22px;
}

.player-section {
    padding: 18px;
    background: #0f172a;
    border-color: rgba(15, 23, 42, 0.4);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.28), rgba(0, 0, 0, 0.48));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #f97316);
    box-shadow: 0 20px 48px rgba(236, 72, 153, 0.34);
    font-size: 34px;
    padding-left: 5px;
}

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

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

.article-content,
.info-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
}

.article-content h2:not(:first-child) {
    margin-top: 28px;
}

.article-content p {
    margin: 12px 0 0;
    font-size: 16px;
}

.info-card dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    margin: 18px 0;
}

.info-card dt {
    color: #111827;
    font-weight: 900;
}

.info-card dd {
    margin: 0;
}

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

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

.footer-logo .brand-text {
    color: #ffffff;
}

.footer-brand p {
    max-width: 520px;
    color: #d1d5db;
}

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-links h2 {
    color: #ffffff;
    font-size: 18px;
}

.footer-links a {
    color: #d1d5db;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
    text-align: center;
    color: #9ca3af;
}

[data-card-container] .movie-card.is-hidden,
[data-card-container] .compact-card.is-hidden {
    display: none;
}

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

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

    .hero-content {
        width: 70%;
        padding-left: 36px;
    }

    .hero-poster {
        right: 32px;
        width: 26%;
    }

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

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

@media (max-width: 840px) {
    main,
    .header-inner,
    .mobile-panel,
    .footer-inner {
        width: min(100% - 24px, 1200px);
    }

    .hero-carousel {
        min-height: 620px;
        border-radius: 24px;
    }

    .hero-content {
        width: auto;
        padding: 42px 24px 0;
    }

    .hero-poster {
        left: 24px;
        right: auto;
        bottom: 72px;
        width: 160px;
    }

    .hero-controls {
        left: 24px;
        right: 24px;
    }

    .quick-search-panel,
    .toolbar,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-search,
    .hero-search input,
    .local-search,
    .site-search-form input {
        width: 100%;
    }

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

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

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

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

@media (max-width: 540px) {
    .brand-text {
        font-size: 18px;
    }

    .hero-carousel {
        min-height: 680px;
        margin-top: 14px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-poster {
        width: 132px;
    }

    .content-section,
    .page-hero,
    .detail-hero {
        padding: 18px;
        border-radius: 18px;
    }

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

    .poster-wrap {
        aspect-ratio: 16 / 10;
    }

    .info-card dl {
        grid-template-columns: 1fr;
    }
}
