:root {
    --rose-50: #fff1f5;
    --rose-100: #ffe4ec;
    --rose-200: #fecdd8;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --amber-400: #f59e0b;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f3c4d2;
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 22px 55px rgba(244, 63, 94, 0.18);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, var(--rose-50), #ffffff 42%, #fff7fa);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 241, 245, 0.9);
    border-bottom: 1px solid rgba(254, 205, 216, 0.9);
    box-shadow: 0 12px 35px rgba(244, 63, 94, 0.08);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1240px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
    font-size: 13px;
}

.brand-name,
.footer-brand span:last-child {
    font-size: 22px;
    line-height: 1;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

.nav-search,
.btn,
.search-form button,
.filter-bar button,
.pill-link,
.block-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.nav-search {
    min-width: 106px;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 12px 26px rgba(244, 63, 94, 0.22);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.12);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--rose-600);
    border-radius: 99px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #111827;
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.85s ease;
}

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

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

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.52), rgba(244, 63, 94, 0.18));
}

.hero-mask::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.85), transparent);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100% - 1240px) / 2));
    top: 50%;
    width: min(640px, calc(100% - 48px));
    transform: translateY(-50%);
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    color: var(--rose-600);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #fecdd8;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

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

.hero-tags,
.tag-row,
.detail-meta,
.rank-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.rank-meta span,
.card-meta span {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

.btn {
    min-height: 48px;
    padding: 0 24px;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 18px 36px rgba(244, 63, 94, 0.35);
}

.btn-soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 4;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

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

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.quick-panel,
.page-shell,
.section,
.site-footer .footer-grid,
.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.quick-panel {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
    margin-top: -64px;
    padding: 26px;
    border: 1px solid rgba(254, 205, 216, 0.8);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search h2,
.section-head h2,
.page-hero h1,
.movie-detail-card h1 {
    margin: 0;
    color: #111827;
    letter-spacing: -0.03em;
}

.quick-search h2 {
    font-size: 28px;
}

.quick-search p {
    margin: 8px 0 18px;
    color: var(--muted);
}

.search-form,
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-form input,
.filter-bar input,
.filter-bar select {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--rose-200);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    outline: none;
}

.search-form input {
    width: min(520px, 100%);
    flex: 1 1 260px;
}

.search-form button {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

.quick-links {
    display: grid;
    gap: 12px;
}

.quick-links a {
    min-width: 132px;
    padding: 14px 18px;
    border-radius: 18px;
    color: var(--rose-600);
    background: var(--rose-50);
    font-weight: 900;
    text-align: center;
}

.section {
    padding: 74px 0 0;
}

.section.no-top-space {
    padding-top: 0;
}

.section-soft,
.section-pink {
    padding: 42px;
    margin-top: 74px;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.section-soft {
    background: linear-gradient(135deg, #fff1f5, #ffffff, #f0fdfa);
}

.section-pink {
    background: linear-gradient(135deg, #ffe4ec, #fff7fa, #fff1f5);
}

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

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

.section-head a {
    color: var(--rose-600);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(254, 205, 216, 0.72);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 16px 40px rgba(244, 63, 94, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(244, 63, 94, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #fff1f5;
}

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

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

.score-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-400), var(--rose-500));
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.card-body {
    padding: 17px;
}

.card-meta span,
.detail-meta span,
.rank-meta span {
    padding: 4px 8px;
    color: var(--muted);
    background: #fff1f5;
}

.card-body h2 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h2 a:hover,
.rank-content h2 a:hover,
.category-block h2 a:hover {
    color: var(--rose-600);
}

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

.tag-row span {
    padding: 5px 9px;
    color: var(--rose-600);
    background: var(--rose-50);
}

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

.category-tile {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border: 1px solid rgba(254, 205, 216, 0.85);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 35px rgba(244, 63, 94, 0.1);
    transition: transform 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
}

.category-tile span {
    font-size: 28px;
}

.category-tile strong {
    color: #111827;
    font-size: 20px;
}

.category-tile small {
    color: var(--muted);
    line-height: 1.65;
}

.page-shell {
    padding: 38px 0 78px;
}

.page-hero {
    margin-bottom: 34px;
    padding: clamp(32px, 6vw, 62px);
    border: 1px solid rgba(254, 205, 216, 0.8);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 228, 236, 0.92), rgba(255, 255, 255, 0.92), rgba(255, 241, 245, 0.92));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 6vw, 58px);
}

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

.category-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 22px;
    background: #ffffff;
    font-size: 28px;
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.12);
}

.filter-bar {
    margin-top: 24px;
}

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

.filter-bar select {
    min-width: 140px;
}

.empty-state {
    display: none;
    margin: 34px 0;
    padding: 32px;
    border-radius: 24px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow);
}

.category-block {
    margin-bottom: 28px;
    padding: 28px;
    border: 1px solid rgba(254, 205, 216, 0.78);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 42px rgba(244, 63, 94, 0.1);
}

.category-block-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

.category-block-head > span {
    font-size: 32px;
}

.category-block h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.category-block p {
    margin: 0;
    color: var(--muted);
}

.block-more,
.pill-link {
    min-height: 40px;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

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

.compact-grid.one-column {
    grid-template-columns: 1fr;
}

.compact-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    grid-template-rows: auto auto;
    gap: 7px 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.1);
}

.compact-card img {
    grid-row: span 2;
    width: 82px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
}

.compact-card span {
    align-self: end;
    font-weight: 900;
    line-height: 1.3;
}

.compact-card small {
    align-self: start;
    color: var(--muted);
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.rank-list {
    display: grid;
    gap: 16px;
}

.rank-row {
    display: grid;
    grid-template-columns: 110px 54px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(254, 205, 216, 0.75);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(244, 63, 94, 0.09);
}

.rank-poster img {
    width: 110px;
    height: 82px;
    border-radius: 18px;
    object-fit: cover;
}

.rank-number {
    color: var(--rose-600);
    font-size: 26px;
    font-weight: 950;
}

.rank-content h2 {
    margin: 0 0 7px;
    font-size: 21px;
}

.rank-content p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.65;
}

.rank-aside {
    position: sticky;
    top: 92px;
    height: fit-content;
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rank-aside h2 {
    margin: 0 0 16px;
}

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

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

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

.player-card,
.movie-detail-card,
.side-section,
.side-poster {
    border: 1px solid rgba(254, 205, 216, 0.75);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
    background: #111827;
}

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

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #111827;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.22), rgba(17, 24, 39, 0.18));
    cursor: pointer;
}

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

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.38);
    font-size: 30px;
    text-indent: 4px;
}

.movie-detail-card {
    margin-top: 24px;
    padding: clamp(24px, 4vw, 36px);
}

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

.movie-detail-card h1 {
    margin-bottom: 14px;
    font-size: clamp(28px, 5vw, 46px);
}

.lead-text {
    padding: 18px 20px;
    border-radius: 20px;
    color: #4b5563;
    background: linear-gradient(135deg, #fff1f5, #ffffff);
    font-size: 18px;
    line-height: 1.8;
}

.detail-tags {
    margin: 18px 0 26px;
}

.movie-detail-card section {
    margin-top: 24px;
}

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

.movie-detail-card p {
    color: #4b5563;
    line-height: 1.9;
}

.detail-side {
    display: grid;
    gap: 20px;
    align-content: start;
}

.side-poster {
    overflow: hidden;
}

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

.side-poster strong,
.side-poster span {
    display: block;
    padding: 0 18px;
}

.side-poster strong {
    padding-top: 18px;
    font-size: 20px;
}

.side-poster span {
    padding-bottom: 18px;
    color: var(--muted);
}

.side-section {
    padding: 20px;
}

.side-section h2 {
    margin: 0 0 16px;
}

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

.about-grid article {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.about-grid h2 {
    margin: 0 0 12px;
}

.about-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.site-footer {
    margin-top: 86px;
    padding: 54px 0 28px;
    background: linear-gradient(180deg, #fff7fa, #ffe4ec);
    border-top: 1px solid rgba(254, 205, 216, 0.9);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-grid p {
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 9px 0;
    color: #4b5563;
}

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

.footer-bottom {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(244, 63, 94, 0.16);
    color: var(--muted);
    text-align: center;
}

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 16px;
        border: 1px solid var(--rose-200);
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .nav-link.active,
    .nav-link:hover {
        background: var(--rose-50);
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        top: auto;
        bottom: 84px;
        transform: none;
    }

    .hero-arrow {
        display: none;
    }

    .quick-panel,
    .ranking-layout,
    .detail-layout,
    .footer-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .quick-panel {
        margin-top: 22px;
    }

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

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

    .rank-aside {
        position: static;
    }

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

    .side-poster {
        display: none;
    }
}

@media (max-width: 620px) {
    .nav-shell,
    .quick-panel,
    .page-shell,
    .section,
    .site-footer .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, 1240px);
    }

    .brand-name,
    .footer-brand span:last-child {
        font-size: 18px;
    }

    .hero {
        min-height: 520px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .quick-links,
    .movie-grid,
    .movie-grid.full-grid,
    .category-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .section-soft,
    .section-pink,
    .category-block,
    .page-hero {
        padding: 24px;
        border-radius: 24px;
    }

    .section-head,
    .detail-title-row,
    .category-block-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-row {
        grid-template-columns: 86px 42px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-poster img {
        width: 86px;
        height: 74px;
    }

    .rank-content p {
        display: none;
    }

    .filter-bar input,
    .filter-bar select {
        width: 100%;
    }
}
