* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #110d1d;
    --bg-soft: #171126;
    --card: rgba(255, 255, 255, 0.08);
    --card-strong: rgba(255, 255, 255, 0.12);
    --text: #fff7fb;
    --muted: #d7c8d7;
    --line: rgba(255, 255, 255, 0.14);
    --primary: #ec4899;
    --primary-strong: #db2777;
    --primary-soft: rgba(236, 72, 153, 0.18);
    --gold: #facc15;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    --radius-lg: 28px;
    --radius-md: 18px;
    --max: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.32), transparent 34rem),
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.22), transparent 30rem),
        linear-gradient(135deg, #0d0a17 0%, #171126 48%, #26112c 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(17, 13, 29, 0.78);
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

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

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

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, #fb7185, #ec4899 48%, #a855f7);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.42);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    background: linear-gradient(90deg, #fff, #ffb8dd, #f0abfc);
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.header-search {
    flex: 1;
    display: flex;
    max-width: 420px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.header-search input,
.inline-filter input,
.search-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: inherit;
}

.header-search input {
    padding: 12px 16px;
}

.header-search button,
.search-panel button,
.inline-filter button {
    border: 0;
    padding: 0 18px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), #a855f7);
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: white;
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 8px 10px;
    color: white;
    background: var(--card-strong);
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    filter: saturate(1.1);
}

.hero-bg::after,
.detail-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.24), transparent 28rem),
        linear-gradient(0deg, rgba(17, 13, 29, 1), transparent 46%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    align-items: center;
    gap: 56px;
    padding: 56px 0;
}

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

.hero-copy p {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffd7ec;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.ranking-meta span,
.poster-year {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffe8f4;
    background: rgba(255, 255, 255, 0.09);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
}

.button.primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.36);
}

.button.secondary {
    color: white;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.1);
}

.hero-poster {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: inherit;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--primary);
}

.search-panel {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: -34px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(17, 13, 29, 0.88);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.search-panel form {
    flex: 1;
    display: flex;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.search-panel input {
    padding: 0 18px;
}

.hot-entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    color: #23121d;
    font-weight: 900;
    background: linear-gradient(135deg, #fde68a, #fb7185);
}

.page-section {
    padding: 64px 0 10px;
}

.page-main {
    padding: 46px 0 72px;
}

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

.section-heading h2,
.page-title-block h1 {
    margin: 6px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.section-link {
    color: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
}

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

.category-tile,
.category-summary-card a,
.content-panel,
.player-card,
.movie-card,
.ranking-item,
.sitemap-group {
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(16px);
}

.category-tile,
.category-summary-card a {
    min-height: 146px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover,
.category-summary-card a:hover,
.movie-card:hover,
.ranking-item:hover {
    transform: translateY(-4px);
    background: var(--card-strong);
}

.category-tile span,
.category-summary-card h2 {
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    color: var(--gold);
}

.category-tile em,
.category-summary-card em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.5;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, background 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.poster-year {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
}

.poster-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: rgba(236, 72, 153, 0.9);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.card-body {
    padding: 14px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.card-body h3 {
    margin: 8px 0;
    font-size: 17px;
    line-height: 1.3;
}

.card-body p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.tag-row span {
    font-size: 11px;
    padding: 4px 7px;
}

.card-category {
    display: inline-flex;
    margin-top: 12px;
    color: #ffd7ec;
    font-weight: 700;
    font-size: 13px;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.ranking-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.ranking-cover span {
    position: absolute;
    left: 6px;
    top: 6px;
    border-radius: 999px;
    padding: 4px 7px;
    color: #26112c;
    font-size: 12px;
    font-weight: 900;
    background: var(--gold);
}

.ranking-item h3 {
    margin: 4px 0 8px;
    font-size: 18px;
}

.ranking-item p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.6;
}

.ranking-meta span {
    font-size: 12px;
    padding: 4px 7px;
}

.page-title-block {
    margin-bottom: 28px;
}

.page-title-block p {
    max-width: 800px;
    color: var(--muted);
    line-height: 1.8;
}

.inline-filter {
    display: flex;
    width: min(420px, 100%);
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.inline-filter input {
    padding: 0 16px;
}

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

.breadcrumb.light {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: #ffd7ec;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 42px 0 64px;
}

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

.detail-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.08);
}

.detail-copy h1 {
    margin: 12px 0 18px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 820px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags {
    margin: 20px 0 28px;
}

.player-card {
    overflow: hidden;
    border-radius: 30px;
}

.video-shell {
    position: relative;
    width: 100%;
    background: black;
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.22), rgba(0, 0, 0, 0.46));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: white;
    font-size: 34px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.36);
}

.player-info {
    padding: 22px 26px;
}

.player-info h2 {
    margin: 0 0 8px;
}

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

.detail-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    padding-top: 28px;
}

.content-panel {
    border-radius: var(--radius-lg);
    padding: 28px;
}

.content-panel h2 {
    margin: 8px 0 14px;
}

.content-panel p {
    color: var(--muted);
    line-height: 1.9;
}

.filter-status {
    color: var(--muted);
    margin-bottom: 20px;
}

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

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

.sitemap-group {
    border-radius: var(--radius-md);
    padding: 20px;
}

.sitemap-group h2 {
    margin: 0 0 14px;
}

.sitemap-group ul {
    columns: 2;
    padding-left: 18px;
    margin: 0;
}

.sitemap-group li {
    break-inside: avoid;
    margin: 0 0 8px;
    color: var(--muted);
}

.sitemap-group span {
    color: #ffd7ec;
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 70px;
    background: rgba(0, 0, 0, 0.16);
}

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    color: var(--muted);
}

.footer-inner strong {
    color: white;
}

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

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

.copyright {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 13px;
}

@media (max-width: 1080px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 820px) {
    .header-inner {
        height: auto;
        min-height: 68px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .header-search {
        order: 3;
        max-width: none;
        flex-basis: 100%;
        margin-left: 0;
    }

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

    .main-nav {
        display: none;
        order: 4;
        flex-basis: 100%;
        padding: 8px 0;
    }

    .main-nav.is-open {
        display: flex;
        flex-wrap: wrap;
    }

    .hero,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        align-content: center;
    }

    .hero-poster {
        width: min(240px, 70vw);
        transform: none;
    }

    .search-panel,
    .section-heading,
    .split-title,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
        display: flex;
    }

    .search-panel form {
        min-height: 48px;
    }

    .category-grid,
    .category-summary-grid,
    .movie-grid,
    .ranking-grid,
    .sitemap-grid,
    .detail-content-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .sitemap-group ul {
        columns: 1;
    }
}

@media (max-width: 560px) {
    .brand-text em {
        display: none;
    }

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

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

    .category-grid,
    .category-summary-grid,
    .movie-grid,
    .ranking-grid,
    .sitemap-grid,
    .detail-content-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .detail-cover {
        width: min(220px, 72vw);
    }
}
