:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --pink-500: #ec4899;
    --yellow-200: #fef08a;
    --ink: #17131f;
    --muted: #6b6475;
    --line: rgba(190, 18, 60, 0.14);
    --card: rgba(255, 255, 255, 0.82);
    --shadow: 0 24px 70px rgba(136, 19, 55, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(244, 63, 94, 0.18), transparent 32rem),
        linear-gradient(180deg, #fff8fb 0%, #fff 40%, #fff7fa 100%);
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--rose-700);
    letter-spacing: 0.02em;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #51475c;
    font-weight: 700;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--rose-700);
    background: var(--rose-100);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--rose-700);
    background: var(--rose-100);
    font-size: 22px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow);
}

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

.hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 34px;
    min-height: 78vh;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    opacity: 0.75;
    pointer-events: none;
}

.hero-glow.one {
    width: 360px;
    height: 360px;
    top: 20px;
    left: -110px;
    background: rgba(244, 63, 94, 0.22);
}

.hero-glow.two {
    width: 420px;
    height: 420px;
    right: -150px;
    bottom: 20px;
    background: rgba(236, 72, 153, 0.2);
}

.hero-slider {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 610px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 40px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(190, 18, 60, 0.94), rgba(236, 72, 153, 0.82)),
        linear-gradient(45deg, #fff1f2, #fce7f3);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(28px) scale(0.99);
    transition: opacity 0.58s ease, transform 0.58s ease;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: center;
    gap: 40px;
    padding: 56px;
    pointer-events: none;
}

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

.hero-copy {
    color: white;
    max-width: 680px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--rose-700);
    background: var(--rose-100);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hero-kicker {
    color: var(--yellow-200);
    background: rgba(255, 255, 255, 0.16);
}

.hero h1 {
    margin: 18px 0 10px;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 4vw, 46px);
    line-height: 1.08;
}

.hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.16);
}

.tag-row span {
    color: var(--rose-700);
    background: var(--rose-50);
}

.hero-actions,
.detail-copy .primary-btn {
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: white;
    background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
    box-shadow: 0 14px 32px rgba(225, 29, 72, 0.28);
}

.hero .primary-btn {
    color: var(--rose-700);
    background: white;
}

.ghost-btn {
    margin-left: 10px;
    color: white;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    align-self: stretch;
    min-height: 430px;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 70px rgba(66, 9, 28, 0.26);
}

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

.hero-visual:hover img,
.movie-card:hover img,
.detail-poster:hover img {
    transform: scale(1.06);
}

.hero-visual span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 13px 16px;
    color: white;
    border-radius: 18px;
    background: rgba(23, 19, 31, 0.58);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    left: 56px;
    bottom: 34px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 34px;
    background: white;
}

.wide-section,
.page-hero,
.detail-wrap,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.wide-section {
    padding: 46px 0;
}

.quick-search {
    margin-top: -40px;
    position: relative;
    z-index: 4;
}

.search-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.search-panel label {
    display: grid;
    gap: 8px;
    color: var(--rose-700);
    font-size: 13px;
    font-weight: 900;
}

.search-panel input {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0 16px;
    outline: none;
    color: var(--ink);
    background: white;
    font: inherit;
}

.search-panel input:focus {
    border-color: var(--rose-500);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-row button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: var(--rose-700);
    background: var(--rose-50);
    font-weight: 900;
    cursor: pointer;
}

.filter-row button.active,
.filter-row button:hover {
    color: white;
    background: var(--rose-600);
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.story-card h2,
.category-overview h2 {
    margin: 10px 0 8px;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-head p,
.page-hero p,
.category-overview p,
.story-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.section-link {
    color: var(--rose-700);
    background: var(--rose-100);
    white-space: nowrap;
}

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

.category-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(160deg, white, var(--rose-50));
    border: 1px solid var(--line);
    box-shadow: 0 14px 42px rgba(136, 19, 55, 0.08);
}

.category-card:hover,
.movie-card:hover,
.category-overview:hover,
.story-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.category-card span {
    color: var(--rose-700);
    font-weight: 900;
}

.category-card strong {
    font-size: 34px;
    color: var(--ink);
}

.category-card p,
.category-card em {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-style: normal;
}

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

.movie-card,
.story-card,
.category-overview {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--card);
    overflow: hidden;
    box-shadow: 0 14px 42px rgba(136, 19, 55, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.year-badge,
.play-mark {
    position: absolute;
    border-radius: 999px;
    color: white;
    background: rgba(23, 19, 31, 0.68);
    backdrop-filter: blur(10px);
    font-weight: 900;
}

.year-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    font-size: 12px;
}

.play-mark {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
}

.movie-card-body {
    padding: 16px;
}

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

.movie-title {
    min-height: 54px;
    margin: 9px 0 8px;
    font-size: 18px;
    line-height: 1.45;
}

.movie-title a:hover {
    color: var(--rose-700);
}

.movie-card p {
    min-height: 68px;
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.empty-state {
    display: none;
    margin: 22px 0 0;
    padding: 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
}

.empty-state.is-visible {
    display: block;
}

.split-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: start;
}

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

.rank-item a {
    display: grid;
    grid-template-columns: 50px 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 22px;
    background: white;
    border: 1px solid var(--line);
}

.rank-item a:hover {
    background: var(--rose-50);
}

.rank-no {
    color: var(--rose-700);
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 64px;
    height: 82px;
    object-fit: cover;
    border-radius: 16px;
    background: var(--rose-100);
}

.rank-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rank-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
}

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

.page-hero {
    padding: 72px 0 26px;
}

.page-hero.compact {
    min-height: auto;
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 58px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: var(--rose-700);
}

.category-overview-list {
    display: grid;
    gap: 18px;
}

.category-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: center;
    padding: 24px;
}

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

.mini-posters a {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    background: var(--rose-100);
}

.mini-posters img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-posters span {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 6px 8px;
    color: white;
    border-radius: 10px;
    background: rgba(23, 19, 31, 0.66);
    font-size: 12px;
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: white;
    background: #170f1c;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    filter: blur(18px);
    transform: scale(1.08);
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23, 15, 28, 0.96), rgba(190, 18, 60, 0.72));
}

.detail-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 70px 0;
}

.detail-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

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

.detail-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    color: var(--rose-700);
    border-radius: 999px;
    background: white;
    font-size: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.detail-copy .breadcrumb {
    color: rgba(255, 255, 255, 0.72);
}

.detail-copy h1 {
    font-size: clamp(36px, 5vw, 70px);
    line-height: 1.02;
}

.lead-text {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta span {
    padding: 8px 12px;
    color: white;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.detail-tags {
    margin-top: 16px;
}

.detail-tags span {
    color: var(--yellow-200);
    background: rgba(255, 255, 255, 0.16);
}

.player-section {
    margin-top: -96px;
    position: relative;
    z-index: 4;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #050408;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #050408;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.18), rgba(5, 4, 8, 0.42));
    cursor: pointer;
}

.player-overlay span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--rose-700);
    background: white;
    font-size: 34px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

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

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

.story-card {
    padding: 26px;
}

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

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 30px;
    padding: 34px 0 46px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer strong {
    color: var(--rose-700);
}

.site-footer p {
    margin: 8px 0 0;
}

.site-footer a {
    color: var(--rose-700);
    font-weight: 900;
}

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 300px;
        padding: 42px;
    }

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

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

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

    .hero {
        padding-top: 24px;
        min-height: auto;
    }

    .hero-slider {
        min-height: 780px;
        border-radius: 30px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding: 30px;
    }

    .hero-visual {
        min-height: 330px;
    }

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

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

    .category-grid,
    .movie-grid,
    .related-grid,
    .detail-content,
    .long-list,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .detail-wrap {
        grid-template-columns: 1fr;
        padding: 42px 0 130px;
    }

    .detail-poster {
        max-width: 280px;
    }

    .player-section {
        margin-top: -110px;
    }

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

@media (max-width: 460px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero h2,
    .section-head h2,
    .page-hero h1 {
        font-size: 28px;
    }

    .hero-actions {
        display: grid;
        gap: 10px;
    }

    .ghost-btn {
        margin-left: 0;
    }

    .rank-item a {
        grid-template-columns: 42px 56px minmax(0, 1fr);
    }

    .rank-item img {
        width: 56px;
        height: 74px;
    }
}
