:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --purple: #9333ea;
    --purple-soft: #f5e8ff;
    --blue: #2563eb;
    --dark: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --page: #fff7fb;
    --shadow: 0 18px 55px rgba(147, 51, 234, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--dark);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.14), transparent 32rem),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 36rem),
        linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #faf5ff 100%);
    font-family: -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.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 8px 30px rgba(17, 24, 39, 0.08);
}

.nav-wrap {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 68px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.35);
}

.brand-text,
.footer-brand {
    font-size: 26px;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.nav-link:hover,
.nav-link.is-active {
    color: var(--pink-dark);
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.12), rgba(147, 51, 234, 0.12));
}

.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(360px, 34vw);
    padding: 5px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.08);
}

.nav-search input,
.home-search input,
.filter-search input,
.filter-panel select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dark);
}

.nav-search input {
    padding: 9px 12px;
}

.nav-search button,
.home-search button,
.primary-btn {
    border: 0;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-search button {
    padding: 9px 16px;
    white-space: nowrap;
}

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

.nav-search button:hover,
.home-search button:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(236, 72, 153, 0.36);
}

.ghost-btn {
    border-radius: 999px;
    font-weight: 900;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.mobile-panel {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px 18px;
}

.mobile-link,
.mobile-cats a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active,
.mobile-cats a:hover {
    color: var(--pink-dark);
    background: rgba(236, 72, 153, 0.1);
}

main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 22px 0;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border-radius: 34px;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-bg,
.hero-slide::before,
.page-hero::before,
.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(88, 28, 135, 0.58), rgba(236, 72, 153, 0.14)),
        var(--hero-image, none) center / cover no-repeat;
    filter: saturate(1.1);
}

.hero-bg::after,
.page-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(236, 72, 153, 0.36), transparent 18rem),
        radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.22), transparent 22rem),
        linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.2));
}

.hero-slider {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    padding: 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.48fr);
    gap: 48px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy,
.hero-poster,
.detail-poster,
.detail-copy,
.page-hero > *,
.hero-mini-row,
.hero-dots {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--pink);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-summary,
.page-hero p,
.detail-copy p {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 2vw, 21px);
}

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

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

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    padding: 7px 12px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.13);
}

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

.hero-poster {
    overflow: hidden;
    justify-self: end;
    width: min(360px, 100%);
    aspect-ratio: 2 / 3;
    border: 8px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2.5deg);
}

.hero-poster img,
.detail-poster img,
.poster-frame img,
.category-card-large img,
.rank-wide-card img,
.side-list img,
.hero-mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.hero-dots {
    position: absolute;
    left: 72px;
    bottom: 104px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 30px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
    width: 56px;
    background: linear-gradient(90deg, var(--pink), var(--purple));
}

.hero-mini-row {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.hero-mini-card img {
    height: 52px;
    border-radius: 12px;
}

.hero-mini-card span {
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-search-block,
.filter-panel,
.section-block,
.rank-section,
.detail-layout,
.player-section {
    margin-top: 34px;
}

.home-search-block,
.filter-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 0.8fr);
    gap: 22px;
    align-items: center;
    padding: 26px;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 44px rgba(147, 51, 234, 0.08);
}

.home-search-block h2,
.section-head h2,
.rank-copy h2,
.detail-article h2,
.detail-side h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.home-search {
    display: flex;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.home-search input {
    padding: 13px 16px;
}

.home-search button {
    padding: 0 24px;
    white-space: nowrap;
}

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

.section-head > a {
    color: var(--pink-dark);
    font-weight: 900;
}

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

.category-tile {
    min-height: 150px;
    padding: 22px;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(147, 51, 234, 0.1)),
        #ffffff;
    box-shadow: 0 12px 34px rgba(147, 51, 234, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover,
.rank-wide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 60px rgba(147, 51, 234, 0.16);
}

.category-tile span {
    display: block;
    font-size: 23px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.category-tile small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link,
.poster-frame {
    display: block;
}

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

.poster-frame img {
    transition: transform 0.42s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.card-body {
    padding: 16px;
}

.card-meta,
.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.card-body h2 {
    margin: 8px 0 6px;
    font-size: 20px;
    line-height: 1.25;
}

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

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

.tag-row span {
    padding: 5px 9px;
    color: #7e22ce;
    background: linear-gradient(90deg, #fce7f3, #f3e8ff);
}

.rank-section {
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    gap: 24px;
    padding: 30px;
    border-radius: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #581c87 48%, #be185d);
    box-shadow: var(--shadow);
}

.rank-copy p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.78);
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.rank-list a {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.rank-num,
.rank-score {
    font-weight: 900;
    color: #f9a8d4;
}

.rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 58px;
    border-radius: 34px;
    background: #111827;
    box-shadow: var(--shadow);
}

.compact-hero {
    min-height: 300px;
}

.page-hero .ghost-btn {
    color: #ffffff;
}

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

.category-card-large {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border-radius: 28px;
    color: #ffffff;
    box-shadow: 0 14px 44px rgba(17, 24, 39, 0.13);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-large img,
.category-overlay {
    position: absolute;
    inset: 0;
}

.category-overlay {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.82));
}

.category-card-large strong,
.category-card-large small {
    position: relative;
    z-index: 1;
}

.category-card-large strong {
    font-size: 27px;
    font-weight: 900;
}

.category-card-large small {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
}

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

.filter-search,
.filter-panel select {
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
}

.filter-search {
    display: flex;
    align-items: center;
}

.movie-card.is-hidden {
    display: none;
}

.rank-wide-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rank-wide-card {
    display: grid;
    grid-template-columns: 50px 74px 1fr 48px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-wide-card img {
    width: 74px;
    height: 96px;
    border-radius: 14px;
}

.rank-wide-card span,
.rank-wide-card em {
    font-style: normal;
    color: var(--pink-dark);
    font-weight: 900;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 4px 0 18px;
    color: var(--muted);
    font-weight: 700;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    border: 7px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.detail-stats {
    margin-top: 20px;
    color: #ffffff;
}

.detail-stats span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.player-section {
    border-radius: 32px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    background: #020617;
}

.site-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.28), rgba(2, 6, 23, 0.72));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 18px 44px rgba(236, 72, 153, 0.35);
}

.play-overlay strong {
    font-size: 22px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
}

.detail-article,
.detail-side {
    padding: 26px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.07);
}

.detail-article p {
    color: #374151;
    font-size: 17px;
}

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.info-grid span {
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(90deg, #fff1f2, #faf5ff);
}

.info-grid b {
    display: block;
    color: var(--pink-dark);
    margin-bottom: 4px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #7e22ce;
    font-weight: 800;
    background: linear-gradient(90deg, #fce7f3, #f3e8ff);
}

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

.side-list a {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
    font-weight: 800;
}

.side-list img {
    height: 92px;
    border-radius: 14px;
}

.site-footer {
    margin-top: 64px;
    padding: 48px 22px 24px;
    color: #ffffff;
    background: linear-gradient(90deg, #111827, #581c87, #111827);
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1.1fr;
    gap: 38px;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #f9a8d4;
    font-size: 18px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

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

.copyright {
    max-width: 1240px;
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
}

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

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

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

    .hero-poster {
        display: none;
    }

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

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

    .menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

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

    main {
        padding: 18px 14px 0;
    }

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

    .hero-slide {
        padding: 38px 24px;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 40px;
    }

    .hero-mini-row {
        left: 18px;
        right: 18px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-dots {
        left: 24px;
        bottom: 168px;
    }

    .home-search-block,
    .filter-panel,
    .rank-section,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero,
    .detail-hero {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .detail-poster {
        width: 220px;
    }
}

@media (max-width: 560px) {
    .nav-wrap {
        padding: 0 14px;
    }

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

    .hero-mini-row,
    .category-large-grid,
    .movie-grid,
    .category-grid,
    .rank-wide-list,
    .info-grid {
        grid-template-columns: 1fr;
    }

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

    .home-search {
        border-radius: 20px;
        flex-direction: column;
    }

    .home-search button {
        min-height: 46px;
    }

    .rank-wide-card {
        grid-template-columns: 40px 62px 1fr 40px;
    }

    .rank-wide-card img {
        width: 62px;
        height: 82px;
    }
}
