:root {
    --site-bg: #fff7fa;
    --surface: #ffffff;
    --surface-soft: #fff1f5;
    --surface-warm: #fff7ed;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-soft: #9ca3af;
    --brand: #ec4899;
    --brand-deep: #db2777;
    --accent: #f97316;
    --line: #fce7f3;
    --shadow: 0 18px 45px rgba(236, 72, 153, 0.13);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, var(--site-bg) 48%, #ffffff 100%);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(252, 231, 243, 0.95);
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.96));
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.08);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #fb7185, var(--accent));
    box-shadow: 0 10px 26px rgba(236, 72, 153, 0.35);
}

.logo-text {
    font-size: 20px;
    background: linear-gradient(135deg, #be185d, #ea580c);
    -webkit-background-clip: text;
    color: transparent;
}

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

.nav a {
    padding: 10px 13px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
    color: var(--brand-deep);
    background: rgba(252, 231, 243, 0.9);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    color: var(--brand-deep);
    box-shadow: 0 8px 22px rgba(236, 72, 153, 0.12);
    cursor: pointer;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 74px 0 62px;
    background: radial-gradient(circle at 12% 15%, rgba(244, 114, 182, 0.28), transparent 28%), radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.22), transparent 24%), linear-gradient(135deg, #fff1f2 0%, #fdf2f8 48%, #fffbeb 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(1px);
    opacity: 0.55;
    animation: floatGlow 8s ease-in-out infinite alternate;
}

.hero::before {
    width: 170px;
    height: 170px;
    left: 5%;
    top: 110px;
    background: rgba(244, 114, 182, 0.26);
}

.hero::after {
    width: 210px;
    height: 210px;
    right: 8%;
    bottom: 70px;
    background: rgba(251, 146, 60, 0.22);
    animation-delay: 1.4s;
}

@keyframes floatGlow {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(18px, -16px, 0) scale(1.07);
    }
}

.hero-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 475px);
    gap: 42px;
    align-items: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(251, 207, 232, 0.9);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.08);
    font-weight: 700;
    font-size: 14px;
}

.hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #be185d, #f43f5e, #f97316);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 690px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
}

.hero-actions,
.card-actions,
.filter-bar,
.pagination,
.meta-row,
.tag-list,
.breadcrumb,
.related-links,
.hero-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: var(--brand-deep);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.14);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #fb7185, var(--accent));
}

.btn-soft {
    color: #be185d;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(251, 207, 232, 0.95);
}

.hero-search {
    display: flex;
    width: min(620px, 100%);
    padding: 7px;
    border: 1px solid rgba(251, 207, 232, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 40px rgba(236, 72, 153, 0.12);
}

.hero-search input,
.search-input,
.select-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(251, 207, 232, 0.9);
    border-radius: 18px;
    background: #ffffff;
    color: var(--text-main);
    outline: none;
    padding: 0 15px;
    font: inherit;
}

.hero-search input {
    border: 0;
    background: transparent;
    border-radius: 999px;
}

.hero-search button {
    flex: 0 0 auto;
}

.hero-slider {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    min-height: 520px;
    background: #111827;
    box-shadow: 0 30px 70px rgba(236, 72, 153, 0.25);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 520px;
    transform: scale(1.02);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.12) 0%, rgba(17, 24, 39, 0.15) 34%, rgba(17, 24, 39, 0.88) 100%);
}

.hero-slide-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    color: #ffffff;
}

.hero-slide-content h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.15;
}

.hero-slide-content p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.82);
}

.hero-tabs {
    position: absolute;
    z-index: 3;
    left: 22px;
    top: 22px;
}

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

.hero-tab.is-active {
    width: 28px;
    background: #ffffff;
}

.section {
    padding: 64px 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.55), rgba(255, 255, 255, 0));
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.section-desc {
    margin: 8px 0 0;
    max-width: 700px;
    color: var(--text-muted);
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(236, 72, 153, 0.09);
    border: 1px solid rgba(252, 231, 243, 0.9);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 114, 182, 0.7);
    box-shadow: 0 20px 46px rgba(236, 72, 153, 0.18);
}

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

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

.movie-card:hover img,
.related-card:hover img,
.rank-card:hover img {
    transform: scale(1.06);
}

.play-badge,
.poster-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.play-badge {
    width: 48px;
    height: 48px;
    left: 50%;
    top: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    color: var(--brand-deep);
    background: rgba(255, 255, 255, 0.92);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.poster-badge {
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(219, 39, 119, 0.9);
    font-size: 12px;
}

.movie-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}

.movie-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
}

.movie-meta,
.meta-row {
    color: var(--text-muted);
    font-size: 13px;
}

.movie-line {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-card,
.info-panel,
.content-card,
.filter-panel,
.player-card,
.aside-card {
    border: 1px solid rgba(252, 231, 243, 0.95);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.category-card {
    padding: 22px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.16);
}

.category-icon {
    font-size: 34px;
}

.category-card h3 {
    margin: 10px 0 8px;
    font-size: 20px;
}

.category-card p {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.category-count {
    color: var(--brand-deep);
    font-weight: 800;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(252, 231, 243, 0.9);
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.15);
}

.rank-poster {
    position: relative;
    aspect-ratio: 16 / 11;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

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

.rank-index {
    position: absolute;
    left: 8px;
    top: 8px;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    font-size: 12px;
    font-weight: 900;
}

.rank-title {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.35;
}

.rank-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero {
    padding: 58px 0;
    background: linear-gradient(135deg, #fff1f2, #fdf2f8, #fff7ed);
    border-bottom: 1px solid rgba(252, 231, 243, 0.95);
}

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

.page-hero p {
    margin: 12px 0 0;
    max-width: 760px;
    color: var(--text-muted);
}

.filter-panel {
    padding: 20px;
    margin-bottom: 28px;
}

.filter-bar {
    align-items: stretch;
}

.filter-bar .search-input {
    flex: 1 1 320px;
}

.select-input {
    width: auto;
    min-width: 160px;
}

.result-count {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

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

.player-card {
    overflow: hidden;
    background: #111827;
    border-color: rgba(17, 24, 39, 0.08);
}

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

.player-wrap video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: auto auto 24px 24px;
    z-index: 4;
    min-height: 48px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #fb7185, var(--accent));
}

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

.content-card,
.aside-card {
    padding: 24px;
}

.content-card h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.content-card h2,
.aside-card h2,
.aside-card h3 {
    margin: 0 0 14px;
}

.content-card p {
    margin: 0 0 16px;
    color: #374151;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #be185d;
    background: #fce7f3;
    font-size: 13px;
    font-weight: 700;
}

.breadcrumb {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--brand-deep);
    font-weight: 750;
}

.aside-poster {
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #fce7f3, #fed7aa);
    margin-bottom: 18px;
}

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

.meta-list {
    display: grid;
    gap: 9px;
    color: var(--text-muted);
    font-size: 14px;
}

.meta-list strong {
    color: var(--text-main);
}

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

.related-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(252, 231, 243, 0.9);
}

.related-card .poster-frame {
    border-radius: 0;
}

.related-card h3 {
    margin: 0;
    padding: 10px;
    font-size: 14px;
    line-height: 1.35;
}

.site-footer {
    margin-top: 42px;
    padding: 34px 0;
    border-top: 1px solid rgba(252, 231, 243, 0.95);
    color: var(--text-muted);
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.78), rgba(255, 247, 237, 0.78));
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--brand-deep);
    font-weight: 700;
}

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

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

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

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

    .hero-slider {
        min-height: 480px;
    }

    .hero-slide img {
        min-height: 480px;
    }
}

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

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

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 10px;
    }

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

    .nav a {
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.66);
    }

    .hero {
        min-height: auto;
        padding: 46px 0;
    }

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

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

    .rank-list,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .hero-slider,
    .hero-slide img {
        min-height: 430px;
    }

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

    .category-grid,
    .rank-list,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .filter-bar {
        flex-direction: column;
    }

    .select-input {
        width: 100%;
    }
}
