:root {
    --pink: #db2777;
    --pink-dark: #be185d;
    --purple: #9333ea;
    --purple-dark: #7e22ce;
    --slate: #111827;
    --muted: #6b7280;
    --line: #f3d4e5;
    --soft: #fdf2f8;
    --card: #ffffff;
    --shadow: 0 20px 50px rgba(190, 24, 93, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--slate);
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 34%, #fdf2f8 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);
    border-bottom: 1px solid rgba(244, 114, 182, 0.2);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 10px 24px rgba(219, 39, 119, 0.24);
}

.brand-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link,
.mobile-link {
    border-radius: 14px;
    color: #374151;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 12px;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--pink-dark);
    background: #fce7f3;
}

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

.header-search input,
.mobile-search input,
.filter-bar input {
    border: 1px solid #f9a8d4;
    outline: none;
    background: #ffffff;
    border-radius: 999px;
    padding: 12px 16px;
    color: #374151;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-search input {
    width: 220px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.header-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.page-actions a,
.filter-tips button,
.text-link {
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    padding: 12px 18px;
    box-shadow: 0 12px 28px rgba(219, 39, 119, 0.25);
}

.header-search button:hover,
.mobile-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.page-actions a:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: #fce7f3;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--pink-dark);
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #fbcfe8;
    padding: 14px 16px 20px;
    background: #ffffff;
}

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

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 12px;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    margin: 4px 0;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.02);
    transform: scale(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(90deg, rgba(190, 24, 93, 0.94) 0%, rgba(147, 51, 234, 0.82) 45%, rgba(17, 24, 39, 0.78) 100%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    color: #ffffff;
    padding: 88px 0 112px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff7fb;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-copy h1 {
    margin: 24px 0 18px;
    max-width: 760px;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

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

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

.primary-btn,
.ghost-btn,
.page-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
}

.ghost-btn,
.page-actions a {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

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

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

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

.quick-panel {
    width: min(1180px, calc(100% - 32px));
    margin: -46px auto 0;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.quick-panel a {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #fbcfe8;
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-panel a:hover,
.movie-card:hover,
.category-card:hover,
.wide-card:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(190, 24, 93, 0.2);
}

.quick-panel strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.quick-panel span {
    color: var(--muted);
}

.content-section {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.content-section.soft-bg {
    width: 100%;
    padding: 70px max(16px, calc((100% - 1240px) / 2));
    background: linear-gradient(135deg, #fff1f2, #faf5ff);
}

.content-section.flat {
    padding-top: 28px;
}

.section-title {
    text-align: center;
    margin-bottom: 34px;
}

.section-title h2,
.page-hero h1,
.detail-heading h1 {
    margin: 0;
    color: #1f2937;
    letter-spacing: -0.04em;
}

.section-title h2 {
    font-size: clamp(30px, 5vw, 44px);
}

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

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

.movie-card,
.wide-card,
.category-overview-card,
.aside-card,
.detail-info,
.article-block,
.player-card {
    background: var(--card);
    border: 1px solid rgba(244, 114, 182, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 14px 36px rgba(31, 41, 55, 0.08);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.movie-card.compact .poster-frame {
    aspect-ratio: 16 / 9;
}

.poster-frame img,
.category-card img,
.wide-link img,
.detail-heading img,
.overview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover img,
.category-card:hover img,
.wide-card:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
}

.poster-frame em,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 30px;
    border-radius: 999px;
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.74);
    backdrop-filter: blur(8px);
}

.poster-frame em {
    right: 12px;
    bottom: 12px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.card-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.card-body strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.35;
}

.card-body small,
.wide-main small {
    color: var(--pink-dark);
    font-weight: 800;
}

.card-desc {
    min-height: 44px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

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

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

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

.category-card {
    position: relative;
    min-height: 210px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    isolation: isolate;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(219, 39, 119, 0.12));
    z-index: 1;
}

.category-card span {
    position: absolute;
    inset: auto 18px 18px 18px;
    z-index: 2;
    color: #ffffff;
}

.category-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.category-card em {
    display: block;
    color: rgba(255, 255, 255, 0.84);
    font-style: normal;
    line-height: 1.55;
    font-size: 13px;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.wide-list {
    display: grid;
    gap: 16px;
}

.wide-link {
    display: grid;
    grid-template-columns: auto 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.wide-link img {
    width: 120px;
    height: 76px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

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

.wide-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.wide-main strong {
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wide-main em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.heat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    height: 38px;
    border-radius: 999px;
    color: var(--pink-dark);
    background: #fce7f3;
    font-size: 13px;
    font-weight: 900;
}

.side-panel,
.detail-aside {
    position: sticky;
    top: 96px;
}

.side-panel h2,
.aside-card h2,
.article-block h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

.compact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.compact-grid.single .movie-card {
    box-shadow: none;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 74px max(16px, calc((100% - 1240px) / 2));
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(135deg, var(--pink), var(--purple));
}

.page-hero span {
    display: inline-block;
    margin-bottom: 12px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(36px, 7vw, 68px);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    margin-left: 0;
}

.overview-stack {
    width: min(1180px, calc(100% - 32px));
    margin: 40px auto 80px;
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 16px;
}

.overview-cover {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    height: 180px;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.category-overview-card h2 {
    margin: 6px 0 8px;
    font-size: 26px;
}

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

.category-overview-card ul {
    padding: 0;
    margin: 14px 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-overview-card li a {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--pink-dark);
    background: #fce7f3;
    font-size: 13px;
    font-weight: 800;
}

.text-link {
    display: inline-flex;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    padding: 10px 16px;
}

.filter-bar {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #fbcfe8;
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.filter-bar.strong {
    margin-top: -28px;
    position: relative;
    z-index: 2;
}

.filter-bar input {
    width: 100%;
}

.filter-tips button {
    padding: 10px 14px;
    color: var(--pink-dark);
    background: #fce7f3;
}

.filter-tips button:hover,
.filter-tips button.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.detail-layout {
    width: min(1240px, calc(100% - 32px));
    margin: 34px auto 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

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

.breadcrumb a {
    color: var(--pink-dark);
    font-weight: 800;
}

.player-card {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #030712;
}

.video-el {
    width: 100%;
    height: 100%;
    display: block;
    background: #030712;
}

.play-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: rgba(219, 39, 119, 0.88);
    border-radius: 999px;
    padding: 16px 22px;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    z-index: 4;
}

.movie-player.playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: var(--pink-dark);
    background: #ffffff;
}

.player-status {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    color: #ffffff;
    font-size: 14px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.detail-info,
.article-block,
.aside-card {
    margin-top: 22px;
    padding: 24px;
}

.detail-heading {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
}

.detail-heading img {
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.detail-heading h1 {
    margin-top: 16px;
    font-size: clamp(28px, 5vw, 48px);
}

.detail-heading p,
.article-block p {
    color: #4b5563;
    line-height: 1.85;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.meta-row span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #374151;
    background: #f3f4f6;
    font-weight: 800;
    font-size: 13px;
}

.article-block p {
    margin: 0 0 14px;
    font-size: 16px;
}

.hidden-card {
    display: none !important;
}

.site-footer {
    background: linear-gradient(135deg, #fff1f2, #faf5ff);
    border-top: 1px solid #fbcfe8;
    padding-top: 46px;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.4fr;
    gap: 24px;
    align-items: start;
}

.footer-brand {
    align-items: flex-start;
    flex-direction: column;
}

.footer-brand p {
    color: var(--muted);
    line-height: 1.75;
    max-width: 420px;
}

.footer-links,
.footer-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a,
.footer-cats a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--pink-dark);
    background: #ffffff;
    font-weight: 800;
    font-size: 13px;
}

.copyright {
    text-align: center;
    color: var(--muted);
    padding: 28px 16px 34px;
}

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

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

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

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

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

    .side-panel,
    .detail-aside {
        position: static;
    }
}

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

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

    .hero-carousel {
        min-height: 540px;
    }

    .hero-copy {
        padding: 64px 0 90px;
    }

    .quick-panel,
    .filter-bar,
    .footer-inner,
    .category-overview-card,
    .detail-heading {
        grid-template-columns: 1fr;
    }

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

    .wide-link {
        grid-template-columns: auto 86px minmax(0, 1fr);
        gap: 12px;
    }

    .wide-link img {
        width: 86px;
        height: 64px;
    }

    .heat-pill {
        grid-column: 2 / -1;
        justify-content: flex-start;
        padding: 0 12px;
    }

    .detail-heading img {
        width: 180px;
    }

    .filter-tips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .filter-tips button {
        white-space: nowrap;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .primary-btn,
    .ghost-btn,
    .page-actions a {
        width: 100%;
    }
}
