:root {
    --pink: #ec4899;
    --rose: #f43f5e;
    --rose-dark: #be123c;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff1f7;
    --line: #f3d4e4;
    --shadow: 0 24px 60px rgba(190, 18, 60, 0.14);
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
}

img {
    background: linear-gradient(135deg, #fff1f7, #ffe4ef);
}

.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.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(244, 63, 94, 0.16);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 76px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    flex-shrink: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.32);
}

.brand-copy,
.footer-brand div {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong,
.footer-brand strong {
    font-size: 22px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-copy small,
.footer-brand small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.main-nav a {
    color: #374151;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--pink);
    background: #fff0f7;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid #f5c2d9;
    border-radius: 999px;
    background: #ffffff;
}

.header-search input {
    width: 180px;
    border: 0;
    outline: 0;
    padding: 8px 4px 8px 12px;
    color: var(--ink);
}

.header-search button,
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.header-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    box-shadow: 0 14px 32px rgba(244, 63, 94, 0.26);
}

.header-search button {
    padding: 8px 16px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    transition: 0.24s ease;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

.secondary-button {
    color: var(--pink);
    border: 1px solid #f8b7d1;
    background: rgba(255, 255, 255, 0.78);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    font-size: 26px;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4ef 0%, #ffffff 50%, #fff1f7 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image: linear-gradient(rgba(236, 72, 153, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 72, 153, 0.15) 1px, transparent 1px);
    background-size: 54px 54px;
}

.hero::after {
    content: "";
    position: absolute;
    right: -12%;
    bottom: -22%;
    width: 52%;
    height: 86%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.24), transparent 66%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.78fr);
    gap: 46px;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #f8b7d1;
    border-radius: 999px;
    color: var(--rose-dark);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 800;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 900;
    margin: 0 0 18px;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: #374151;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-desc {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
    max-width: 720px;
    margin-bottom: 28px;
}

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

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-pills a,
.movie-tags span,
.meta-chip,
.category-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--rose-dark);
    background: #fff0f7;
    border: 1px solid #f8c0d7;
    font-weight: 700;
}

.hero-pills a {
    padding: 8px 12px;
}

.hero-showcase {
    position: relative;
    min-height: 480px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.74);
    opacity: 0;
    transform: translateX(28px) scale(0.98);
    pointer-events: none;
    transition: 0.5s ease;
    background: #111827;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.86));
}

.hero-card-copy {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 34px;
}

.hero-card-copy h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 12px;
}

.hero-card-copy p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
    margin-bottom: 20px;
}

.hero-dots {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

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

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

.content-section {
    padding: 70px 0;
}

.content-section.is-soft {
    background: linear-gradient(180deg, #ffffff, #fff4fa);
}

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

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--ink);
}

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    color: inherit;
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff, #fff6fb);
    border: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 14px 34px rgba(190, 18, 60, 0.08);
    transition: 0.25s ease;
}

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

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #fff0f7;
}

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

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

.movie-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(244, 63, 94, 0.32);
}

.movie-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    flex: 1;
}

.movie-body h3 {
    font-size: 19px;
    font-weight: 900;
    line-height: 1.35;
    color: var(--ink);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    margin-top: auto;
}

.movie-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f9fafb;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.movie-tags span {
    padding: 4px 8px;
    font-size: 12px;
}

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

.category-card {
    display: block;
    min-height: 150px;
    color: var(--ink);
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(244, 63, 94, 0.14);
    box-shadow: 0 12px 30px rgba(190, 18, 60, 0.08);
    transition: 0.24s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: #f472b6;
    box-shadow: var(--shadow);
}

.category-card strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: var(--pink);
    margin-bottom: 10px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 128px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    color: inherit;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 10px 24px rgba(190, 18, 60, 0.06);
    transition: 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.rank-item img {
    width: 128px;
    height: 84px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-copy {
    min-width: 0;
}

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

.rank-copy strong {
    color: var(--ink);
    font-weight: 900;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.5;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-score {
    color: #f59e0b;
    font-weight: 900;
}

.page-hero {
    padding: 74px 0 34px;
    background: linear-gradient(135deg, #fff0f7, #ffffff);
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 14px;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    -webkit-background-clip: text;
    color: transparent;
}

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

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

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

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 18px;
    margin-bottom: 28px;
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(190, 18, 60, 0.06);
}

.filter-panel input,
.filter-panel select {
    min-height: 44px;
    border: 1px solid #f4bfd6;
    border-radius: 999px;
    outline: 0;
    padding: 0 16px;
    color: var(--ink);
    background: #fffafb;
}

.filter-panel input {
    flex: 1 1 260px;
}

.detail-head {
    padding: 38px 0 60px;
    background: linear-gradient(135deg, #fff0f7, #ffffff 58%, #ffe4ef);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
    gap: 32px;
    align-items: start;
}

.player-root {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-root video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.72));
    cursor: pointer;
    transition: 0.25s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-bubble {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    box-shadow: 0 18px 38px rgba(244, 63, 94, 0.4);
}

.detail-info {
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(244, 63, 94, 0.14);
    box-shadow: 0 14px 34px rgba(190, 18, 60, 0.08);
}

.detail-info img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 20px;
}

.detail-info h1 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--ink);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.meta-chip {
    padding: 7px 11px;
    font-size: 13px;
}

.detail-info p {
    color: var(--muted);
    line-height: 1.8;
}

.article-panel {
    padding: 34px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 12px 30px rgba(190, 18, 60, 0.07);
}

.article-panel + .article-panel {
    margin-top: 24px;
}

.article-panel h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 14px;
    color: var(--ink);
}

.article-panel p {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.95;
}

.site-footer {
    margin-top: 72px;
    color: #f9fafb;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr;
    gap: 32px;
    padding: 46px 0;
}

.site-footer p,
.site-footer a,
.site-footer small {
    color: #d1d5db;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    transition: 0.2s ease;
}

.site-footer a:hover {
    color: #f9a8d4;
}

.site-footer h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    color: #d1d5db;
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed #f4bfd6;
    border-radius: 24px;
    background: #fffafb;
}

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

@media (max-width: 1040px) {
    .header-search {
        display: none;
    }

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

    .hero-showcase {
        min-height: 430px;
        margin-bottom: 40px;
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        min-height: 68px;
    }

    .main-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--shadow);
        border: 1px solid #f8c0d7;
    }

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

    .mobile-toggle {
        display: block;
    }

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

    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 52px 0;
    }

    .hero-actions,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-showcase {
        min-height: 390px;
    }

    .hero-card-copy {
        padding: 24px;
    }

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

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

    .rank-item img {
        width: 92px;
        height: 68px;
    }

    .rank-score {
        grid-column: 3;
    }

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

    .article-panel,
    .detail-info {
        padding: 22px;
    }
}
