:root {
    --rose-50: #fff1f5;
    --rose-100: #ffe4ec;
    --rose-200: #fecdd9;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-500: #ec4899;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #f8fafc;
    --card: #ffffff;
    --line: #f1d3dc;
    --shadow: 0 18px 45px rgba(225, 29, 72, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, rgba(255, 241, 245, 0.7), #ffffff 28%, rgba(255, 241, 245, 0.42));
    line-height: 1.65;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(254, 205, 211, 0.85);
    box-shadow: 0 12px 35px rgba(225, 29, 72, 0.08);
}

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

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

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
    box-shadow: 0 12px 25px rgba(244, 63, 94, 0.28);
}

.brand-text strong {
    display: block;
    font-size: 21px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.nav-link,
.mobile-link {
    color: #4b5563;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--rose-50);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--rose-500);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    flex-direction: column;
    gap: 12px;
}

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

.hero-wrap {
    position: relative;
    overflow: hidden;
    padding: 54px 0 34px;
    background: radial-gradient(circle at 15% 12%, rgba(251, 113, 133, 0.22), transparent 35%),
                linear-gradient(135deg, #fff1f5 0%, #fdf2f8 43%, #ffffff 100%);
}

.hero-bg-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(20px);
    opacity: 0.45;
}

.hero-bg-glow.one {
    width: 320px;
    height: 320px;
    left: -80px;
    top: 20px;
    background: #fecdd9;
}

.hero-bg-glow.two {
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -110px;
    background: #fbcfe8;
}

.hero-shell {
    position: relative;
    min-height: 520px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
    gap: 38px;
    min-height: 520px;
    padding: 58px;
    align-items: center;
}

.hero-slide.active {
    display: grid;
}

.hero-copy h1 {
    margin: 12px 0 18px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.05;
    letter-spacing: -1px;
    color: #111827;
}

.hero-copy p {
    margin: 0;
    max-width: 720px;
    color: #4b5563;
    font-size: 18px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rose-600);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-tags,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 26px 0 30px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff1f5;
    color: var(--rose-600);
    font-size: 12px;
    font-weight: 700;
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

.ghost-btn,
.outline-btn {
    color: var(--rose-600);
    background: #ffffff;
    border: 1px solid var(--rose-200);
}

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

.hero-poster {
    position: relative;
    min-height: 410px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-100), #ffffff);
    box-shadow: 0 25px 60px rgba(17, 24, 39, 0.16);
}

.hero-poster img,
.poster-link img,
.detail-poster img,
.category-tile img,
.category-overview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--rose-100), #ffffff);
}

.hero-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(244, 63, 94, 0.9);
    box-shadow: 0 12px 35px rgba(244, 63, 94, 0.34);
}

.hero-bottom-bar {
    position: absolute;
    left: 58px;
    right: 58px;
    bottom: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.hero-search {
    display: flex;
    width: min(520px, 100%);
    background: #ffffff;
    border: 1px solid var(--rose-200);
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 14px 32px rgba(225, 29, 72, 0.12);
}

.hero-search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 18px;
    font-size: 15px;
    background: transparent;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: var(--rose-200);
    cursor: pointer;
}

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

.page-section {
    padding: 58px 0;
}

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

.section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 3vw, 38px);
}

.section-more {
    color: var(--rose-600);
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    padding: 20px;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: auto 0 0 auto;
    width: 72px;
    height: 96px;
    border-top-left-radius: 18px;
    opacity: 0.82;
}

.category-tile strong,
.category-tile small,
.tile-number {
    position: relative;
    z-index: 1;
    display: block;
}

.category-tile strong {
    margin-top: 18px;
    font-size: 21px;
}

.category-tile small {
    margin-top: 6px;
    color: var(--muted);
}

.tile-number {
    color: var(--rose-500);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(254, 205, 211, 0.68);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--rose-50);
}

.poster-link img {
    transition: transform 0.35s ease;
}

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

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(244, 63, 94, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

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

.movie-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--rose-600);
    font-size: 12px;
    font-weight: 800;
}

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

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

.movie-card.compact {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
}

.movie-card.compact .poster-link {
    aspect-ratio: auto;
    min-height: 168px;
}

.movie-card.compact h3 {
    min-height: auto;
}

.sub-hero,
.detail-hero {
    position: relative;
    padding: 70px 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-100), #fff7fb 52%, #ffffff);
}

.sub-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 22px;
    padding: 20px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
    align-items: center;
}

.category-overview-card img {
    height: 220px;
    border-radius: 22px;
}

.category-overview-card span,
.category-overview-card strong {
    color: var(--rose-600);
    font-weight: 800;
}

.category-overview-card h2 {
    margin: 8px 0;
    font-size: 30px;
}

.category-overview-card p {
    color: var(--muted);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.filter-panel label span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--rose-200);
    border-radius: 14px;
    padding: 0 12px;
    outline: none;
    background: #ffffff;
}

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

.filter-count {
    margin: 0;
    color: var(--rose-600);
    font-weight: 900;
    white-space: nowrap;
}

.empty-state {
    margin-top: 28px;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border: 1px dashed var(--rose-200);
}

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

.detail-poster {
    height: 440px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--rose-600);
    font-weight: 800;
}

.detail-info h1 {
    margin: 14px 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
}

.detail-one-line {
    color: #4b5563;
    font-size: 18px;
}

.detail-meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.detail-meta-list span {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--rose-200);
}

.player-card,
.content-card {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid rgba(254, 205, 211, 0.65);
}

.player-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

.player-title-row h2 {
    margin: 6px 0 0;
    font-size: 30px;
}

.source-badge {
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    font-weight: 900;
}

.video-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111827;
}

.play-trigger {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 180px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background: rgba(244, 63, 94, 0.94);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.play-trigger.hide {
    display: none;
}

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

.content-card h2 {
    margin: 8px 0 16px;
    font-size: 28px;
}

.content-card p {
    color: #4b5563;
    margin: 0 0 14px;
}

.content-card.wide {
    max-width: 860px;
}

.site-footer {
    margin-top: 54px;
    padding: 48px 0 20px;
    background: #ffffff;
    border-top: 1px solid var(--rose-100);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rose-600);
    font-size: 20px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: var(--muted);
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.site-footer h3 {
    margin-top: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px solid var(--rose-100);
    font-size: 14px;
}

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

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

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

    .menu-toggle {
        display: flex;
    }

    .hero-slide,
    .detail-hero-grid,
    .detail-content-grid,
    .category-overview-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        padding: 32px;
        min-height: 680px;
    }

    .hero-bottom-bar {
        position: static;
        padding: 0 32px 32px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-poster {
        min-height: 320px;
    }

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

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

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

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

    .brand-text small {
        display: none;
    }

    .hero-wrap {
        padding-top: 22px;
    }

    .hero-shell,
    .player-card,
    .content-card {
        border-radius: 22px;
    }

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

    .hero-copy h1 {
        font-size: 34px;
    }

    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .rank-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .movie-card.compact {
        grid-template-columns: 100px 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
