:root {
    --page-bg: #fff7fb;
    --paper: #ffffff;
    --paper-soft: #fff1f6;
    --text: #1f2937;
    --muted: #667085;
    --muted-2: #98a2b3;
    --line: #f9c9d9;
    --pink: #ec4899;
    --rose: #f43f5e;
    --orange: #fb923c;
    --shadow: 0 18px 50px rgba(236, 72, 153, 0.14);
    --shadow-card: 0 10px 30px rgba(157, 23, 77, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(251, 146, 60, 0.18), transparent 28%),
        radial-gradient(circle at 85% 5%, rgba(236, 72, 153, 0.20), transparent 32%),
        linear-gradient(135deg, #fff7fb 0%, #fff1f6 45%, #fff7ed 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

img {
    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.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(249, 168, 212, 0.55);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f472b6, #fb7185);
    box-shadow: 0 12px 25px rgba(236, 72, 153, 0.28);
}

.brand-text strong {
    display: block;
    font-size: 21px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #ec4899, #f43f5e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.nav-link,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: #475467;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown > button:hover {
    color: var(--pink);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 220px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px;
    border: 1px solid #ffd2e2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-panel {
    display: grid;
}

.dropdown-panel a {
    padding: 9px 10px;
    border-radius: 12px;
    color: #475467;
    background: #fff7fb;
    font-size: 14px;
}

.dropdown-panel a:hover {
    color: var(--pink);
    background: #ffe4ee;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #ffd2e2;
    border-radius: 14px;
    color: var(--pink);
    background: #ffffff;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff7fb;
    color: #475467;
    font-weight: 700;
    text-align: center;
}

.mobile-nav.is-open {
    display: grid;
}

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

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: 28px;
    align-items: center;
    padding: 56px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.68) 45%, rgba(17, 24, 39, 0.16) 100%),
        radial-gradient(circle at 15% 25%, rgba(236, 72, 153, 0.44), transparent 32%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: saturate(1.08);
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.34);
    font-weight: 800;
}

.hero h1 {
    margin: 20px 0 16px;
    color: #ffffff;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.06em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

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

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

.btn-primary,
.btn-soft,
.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    box-shadow: 0 16px 32px rgba(236, 72, 153, 0.28);
}

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

.btn-soft {
    color: var(--pink);
    background: #ffffff;
}

.btn-line {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 10px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 3;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

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

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

.section {
    margin: 46px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(25px, 4vw, 36px);
    letter-spacing: -0.04em;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more {
    color: var(--pink);
    font-weight: 800;
    white-space: nowrap;
}

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

.category-tile {
    display: block;
    min-height: 156px;
    padding: 22px;
    border: 1px solid rgba(249, 168, 212, 0.65);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 20px;
}

.category-tile span {
    display: block;
    color: var(--muted);
    line-height: 1.65;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(249, 168, 212, 0.55);
    border-radius: 22px;
    background: var(--paper);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #ffe4ee, #fff7ed);
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.48));
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--pink);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.20);
}

.corner-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

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

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

.card-body p {
    min-height: 48px;
    margin: 10px 0 14px;
    color: var(--muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #be185d;
    background: #ffe4ee;
    font-size: 12px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted-2);
    font-size: 13px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
}

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

.list-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 190px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(249, 168, 212, 0.55);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.rank-no {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    font-weight: 900;
}

.list-poster {
    overflow: hidden;
    border-radius: 16px;
    background: #fff1f6;
}

.list-poster img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.list-body h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.list-body p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
}

.page-hero {
    margin: 28px 0 28px;
    padding: 40px;
    border: 1px solid rgba(249, 168, 212, 0.65);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 246, 0.92)),
        radial-gradient(circle at 85% 10%, rgba(236, 72, 153, 0.24), transparent 28%);
    box-shadow: var(--shadow-card);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    margin: 24px 0;
    padding: 14px;
    border: 1px solid rgba(249, 168, 212, 0.55);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
}

.filter-bar label {
    display: grid;
    gap: 6px;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select,
.search-panel input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #ffd2e2;
    border-radius: 14px;
    color: var(--text);
    background: #ffffff;
    outline: 0;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.breadcrumb {
    margin: 22px 0;
    color: var(--muted);
    font-size: 14px;
}

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

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

.player-card,
.detail-card,
.aside-card {
    border: 1px solid rgba(249, 168, 212, 0.55);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.player-card {
    overflow: hidden;
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #0f172a;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.35);
    cursor: pointer;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.56);
}

.player-cover span {
    position: relative;
    z-index: 2;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    font-size: 28px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.player-cover.is-hidden {
    display: none;
}

.detail-card {
    margin-top: 22px;
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 48px);
    letter-spacing: -0.05em;
}

.detail-card h2,
.aside-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-card p {
    color: #475467;
    line-height: 1.9;
    font-size: 16px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #be185d;
    background: #ffe4ee;
    font-weight: 800;
}

.aside-card {
    padding: 18px;
}

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

.aside-item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.aside-item img {
    width: 86px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: #fff1f6;
}

.aside-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.45;
}

.aside-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 12px;
}

.search-panel {
    margin: 24px 0;
    padding: 22px;
    border: 1px solid rgba(249, 168, 212, 0.55);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.search-results {
    display: grid;
    gap: 14px;
}

.search-item {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    border: 1px solid #ffd2e2;
    border-radius: 18px;
    background: #fffafd;
}

.search-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
}

.search-item h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

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

.sitemap-columns {
    column-count: 4;
    column-gap: 24px;
}

.sitemap-columns a {
    display: block;
    break-inside: avoid;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    color: #475467;
}

.sitemap-columns a:hover {
    color: var(--pink);
    background: #ffe4ee;
}

.site-footer {
    margin-top: 64px;
    border-top: 1px solid rgba(249, 168, 212, 0.65);
    background: rgba(255, 241, 246, 0.74);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.footer-brand strong {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
    color: var(--pink);
}

.footer-brand p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.footer-links h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

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

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

.is-filter-hidden {
    display: none !important;
}

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

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-poster {
        display: none;
    }

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

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

    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .sitemap-columns {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 66px;
    }

    .brand-text em {
        display: none;
    }

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

    main {
        width: min(100% - 24px, 1200px);
    }

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

    .hero-track {
        min-height: 510px;
    }

    .hero-slide {
        padding: 24px;
    }

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

    .hero-actions {
        display: grid;
    }

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

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

    .rank-no {
        position: absolute;
        left: 18px;
        top: 18px;
        z-index: 2;
    }

    .search-item {
        grid-template-columns: 1fr;
    }

    .sitemap-columns {
        column-count: 1;
    }
}
