:root {
    color-scheme: light;
    --pink: #db2777;
    --rose: #f43f5e;
    --soft: #fff1f2;
    --soft-2: #fdf2f8;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #fbcfe8;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(219, 39, 119, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, #fff7fb 45%, #fff1f2 100%);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(255, 241, 242, 0.96));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(251, 207, 232, 0.8);
    box-shadow: 0 10px 28px rgba(219, 39, 119, 0.08);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 24px;
    color: var(--pink);
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 14px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 8px 22px rgba(219, 39, 119, 0.28);
}

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

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(219, 39, 119, 0.1);
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #374151;
    border-radius: 20px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(251, 207, 232, 0.8);
}

.mobile-nav.open {
    display: grid;
    gap: 10px;
}

.mobile-link {
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.2), transparent 35%), linear-gradient(135deg, #fff1f2 0%, #fdf2f8 45%, #ffffff 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.5;
}

.hero::before {
    width: 220px;
    height: 220px;
    background: #f9a8d4;
    top: 70px;
    left: 7%;
}

.hero::after {
    width: 280px;
    height: 280px;
    background: #fecdd3;
    right: 6%;
    bottom: 60px;
}

.hero-shell {
    position: relative;
    z-index: 2;
    padding: 68px 0 64px;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    display: none;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
    align-items: center;
    min-height: 520px;
}

.hero-slide.active {
    display: grid;
    animation: fadeUp 0.48s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(219, 39, 119, 0.1);
    color: var(--pink);
    border: 1px solid rgba(219, 39, 119, 0.12);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 750;
    margin-bottom: 18px;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    margin: 0 0 22px;
    letter-spacing: -0.055em;
}

.hero-title-gradient {
    display: block;
    color: transparent;
    background: linear-gradient(90deg, var(--pink), var(--rose), #fb7185);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero p {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 18px;
}

.hero-actions,
.section-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: white;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    box-shadow: 0 16px 30px rgba(219, 39, 119, 0.24);
}

.btn-ghost {
    color: var(--pink);
    background: white;
    border: 1px solid var(--line);
}

.hero-media {
    position: relative;
    padding: 18px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: var(--shadow);
    border: 1px solid rgba(251, 207, 232, 0.8);
}

.hero-media img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 26px;
}

.hero-card-floating {
    position: absolute;
    left: -18px;
    bottom: 30px;
    width: min(300px, 78%);
    padding: 16px;
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.76);
    color: white;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 38px rgba(31, 41, 55, 0.22);
}

.hero-card-floating strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.hero-card-floating span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #f9a8d4;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
    padding: 64px 0;
}

.section.alt {
    background: rgba(255, 255, 255, 0.62);
}

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

.section-head h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: #111827;
    font-weight: 900;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -0.035em;
}

.section-head p,
.page-hero p,
.detail-title p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff, var(--soft));
    border: 1px solid rgba(251, 207, 232, 0.9);
    box-shadow: 0 12px 28px rgba(219, 39, 119, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(219, 39, 119, 0.16);
}

.category-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
}

.category-tile h3 {
    margin: 16px 0 4px;
    font-size: 20px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    border: 1px solid rgba(251, 207, 232, 0.75);
    box-shadow: 0 12px 26px rgba(31, 41, 55, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.62));
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
    opacity: 1;
}

.poster-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    color: white;
    font-size: 28px;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: scale(1);
}

.card-body {
    padding: 14px;
}

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

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

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

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

.rank-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 64px 1fr 44px;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 12px;
    border-radius: 20px;
    background: white;
    border: 1px solid rgba(251, 207, 232, 0.75);
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: 0 18px 34px rgba(219, 39, 119, 0.14);
}

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

.rank-item img {
    width: 64px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    font-size: 16px;
    line-height: 1.35;
}

.rank-info em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.rank-hot {
    color: var(--rose);
    font-weight: 900;
}

.page-hero {
    padding: 64px 0 38px;
    background: radial-gradient(circle at 15% 10%, rgba(244, 63, 94, 0.18), transparent 35%), linear-gradient(135deg, #fff1f2, #ffffff);
}

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

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

.search-box {
    position: relative;
    margin: 26px 0 0;
    max-width: 680px;
}

.search-box input {
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    outline: none;
    background: white;
    box-shadow: 0 14px 32px rgba(219, 39, 119, 0.08);
}

.search-box input:focus {
    border-color: var(--pink);
}

.detail-hero {
    padding: 48px 0;
    background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.18), transparent 34%), linear-gradient(135deg, #fff1f2, #ffffff);
}

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

.detail-cover {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(251, 207, 232, 0.9);
}

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

.detail-title h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    margin-bottom: 14px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.player-section {
    padding: 52px 0 24px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 28px 58px rgba(17, 24, 39, 0.24);
    border: 1px solid rgba(17, 24, 39, 0.12);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.62));
    cursor: pointer;
}

.player-start span {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 999px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 18px 34px rgba(244, 63, 94, 0.34);
}

.player-box.is-playing .player-start {
    display: none;
}

.content-card {
    margin: 26px 0;
    padding: 28px;
    border-radius: 26px;
    background: white;
    border: 1px solid rgba(251, 207, 232, 0.8);
    box-shadow: 0 12px 26px rgba(31, 41, 55, 0.06);
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: #4b5563;
    white-space: pre-line;
}

.site-footer {
    margin-top: 42px;
    background: linear-gradient(180deg, #fff7fb, #ffe4e6);
    border-top: 1px solid rgba(251, 207, 232, 0.8);
}

.footer-grid {
    padding: 48px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
}

.footer-grid p {
    color: var(--muted);
    max-width: 540px;
}

.footer-grid h3 {
    margin: 0 0 12px;
}

.footer-grid a {
    display: block;
    color: var(--muted);
    margin: 7px 0;
}

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

.footer-bottom {
    text-align: center;
    color: var(--muted);
    padding: 18px;
    border-top: 1px solid rgba(251, 207, 232, 0.8);
    font-size: 14px;
}

.empty-note {
    display: none;
    padding: 22px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--line);
    color: var(--muted);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
    }

    .hero-slide,
    .detail-grid,
    .rank-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-card-floating {
        left: 14px;
        right: 14px;
        width: auto;
    }

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

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

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

    .detail-grid {
        gap: 22px;
    }

    .detail-cover {
        max-width: 320px;
    }
}

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

    .brand {
        font-size: 19px;
    }

    .hero-shell {
        padding: 44px 0;
    }

    .hero-media {
        padding: 10px;
        border-radius: 24px;
    }

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

    .rank-item {
        grid-template-columns: 34px 54px 1fr;
    }

    .rank-hot {
        display: none;
    }

    .player-start span {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}
