:root {
    --bg: #fff7fb;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fff1f5;
    --line: rgba(244, 114, 182, 0.22);
    --rose: #f43f5e;
    --pink: #ec4899;
    --purple: #7c3aed;
    --amber: #f59e0b;
    --card: rgba(255, 255, 255, 0.84);
    --shadow: 0 18px 45px rgba(136, 19, 55, 0.14);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site-body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(244, 63, 94, 0.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 36rem),
        linear-gradient(135deg, #fff7fb 0%, #fff1f5 45%, #fdf2f8 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.64);
    background: rgba(255, 247, 251, 0.86);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(136, 19, 55, 0.07);
}

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

.site-header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #9f1239;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.site-logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--purple));
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.28);
}

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

.nav-link {
    padding: 10px 16px;
    color: #4b5563;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.22);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(136, 19, 55, 0.12);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #9f1239;
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
}

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

.hero {
    position: relative;
    min-height: 628px;
    overflow: hidden;
    background: linear-gradient(120deg, #881337 0%, #9d174d 45%, #581c87 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: overlay;
    opacity: 0.56;
    transform: scale(1.02);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 40%, rgba(255, 255, 255, 0.18), transparent 23rem),
        linear-gradient(90deg, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.62));
}

.hero-inner {
    position: relative;
    min-height: 628px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: center;
    gap: 42px;
    color: #fff;
}

.hero-copy {
    max-width: 720px;
    padding: 96px 0 120px;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(14px);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 18px 0;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.75;
}

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

.btn-primary,
.btn-secondary,
.section-link,
.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 850;
    transition: all 0.22s ease;
}

.btn-primary,
.filter-button {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 38px rgba(244, 63, 94, 0.32);
}

.btn-primary:hover,
.filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(244, 63, 94, 0.42);
}

.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-2px);
}

.hero-panel {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-panel h2 {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 900;
}

.hero-picks {
    display: grid;
    gap: 12px;
}

.hero-pick {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    color: #fff;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.13);
    transition: all 0.22s ease;
}

.hero-pick:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(3px);
}

.hero-pick img {
    width: 74px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
}

.hero-pick strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.hero-pick small {
    color: rgba(255, 255, 255, 0.76);
}

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

.hero-dot {
    width: 44px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.24s ease;
}

.hero-dot.active {
    background: #fff;
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.62);
}

.section {
    padding: 70px 0;
}

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

.section-kicker {
    color: #be123c;
    border-color: rgba(244, 63, 94, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
    margin-top: 10px;
    color: #1f2937;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.section-heading p,
.page-hero p,
.detail-title p {
    margin-top: 9px;
    color: var(--muted);
    line-height: 1.75;
}

.section-link {
    color: #be123c;
    background: #fff;
    box-shadow: 0 10px 28px rgba(136, 19, 55, 0.10);
}

.section-link:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

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

.movie-grid.dense {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 14px 36px rgba(136, 19, 55, 0.10);
    transition: all 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 63, 94, 0.38);
    box-shadow: var(--shadow);
}

.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #3f1d2d;
}

.movie-card.wide .movie-poster {
    aspect-ratio: 16 / 9;
}

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

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

.poster-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 72%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.play-dot {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding-left: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 16px 32px rgba(244, 63, 94, 0.36);
}

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 6px 10px;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
}

.year-badge {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

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

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.movie-meta-row span,
.movie-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    color: #be123c;
    border-radius: 999px;
    background: #ffe4e6;
    font-size: 12px;
    font-weight: 750;
}

.movie-meta-row span:nth-child(2) {
    color: #6d28d9;
    background: #ede9fe;
}

.movie-card h3 {
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
}

.movie-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.62;
}

.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    box-shadow: 0 18px 42px rgba(136, 19, 55, 0.16);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(136, 19, 55, 0.82), rgba(124, 58, 237, 0.52));
}

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

.category-card div {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
}

.category-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.55;
}

.category-shine {
    position: absolute;
    inset: 14px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 22px;
    pointer-events: none;
}

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

.compact-list {
    display: grid;
    gap: 12px;
}

.compact-card {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 92px;
    padding: 10px 12px;
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 24px rgba(136, 19, 55, 0.07);
    transition: all 0.22s ease;
}

.compact-card:hover {
    transform: translateX(4px);
    border-color: rgba(244, 63, 94, 0.32);
}

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

.compact-card span:not(.compact-rank) {
    align-self: end;
    color: #1f2937;
    font-weight: 900;
    line-height: 1.3;
}

.compact-card small {
    align-self: start;
    color: #6b7280;
}

.compact-rank {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.26);
}

.search-panel,
.card-panel,
.detail-panel {
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 42px rgba(136, 19, 55, 0.10);
    backdrop-filter: blur(16px);
}

.search-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(140px, 0.35fr));
    gap: 12px;
    padding: 16px;
    margin-bottom: 28px;
}

.search-panel input,
.search-panel select,
.hero-search input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    color: #1f2937;
    border: 1px solid rgba(244, 114, 182, 0.24);
    border-radius: 16px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-panel input:focus,
.search-panel select:focus,
.hero-search input:focus {
    border-color: rgba(244, 63, 94, 0.62);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.10);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 560px;
    margin-top: 28px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(15px);
}

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

.page-hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #be123c;
}

.watch-section {
    padding: 28px 0 70px;
}

.detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.player-card {
    overflow: hidden;
    border-radius: 32px;
    background: #09090b;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

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

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-cover span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 20px 44px rgba(244, 63, 94, 0.38);
    font-size: 34px;
}

.detail-panel {
    padding: 24px;
}

.detail-title {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #be123c;
    background: #ffe4e6;
    font-weight: 800;
}

.detail-copy {
    display: grid;
    gap: 18px;
    padding-top: 18px;
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.detail-copy h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 950;
}

.side-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(136, 19, 55, 0.15);
}

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

.side-info {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(136, 19, 55, 0.09);
}

.side-info h2 {
    font-size: 22px;
    font-weight: 950;
}

.side-info dl {
    display: grid;
    gap: 10px;
}

.side-info div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #4b5563;
}

.side-info dt {
    color: #9f1239;
    font-weight: 800;
}

.no-result {
    display: none;
    padding: 34px;
    text-align: center;
    color: #6b7280;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
}

.no-result.show {
    display: block;
}

.site-footer {
    margin-top: 50px;
    color: #fff;
    background: linear-gradient(135deg, #881337, #9d174d 50%, #581c87);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 46px 0 28px;
}

.footer-logo {
    color: #fff;
}

.footer-inner p {
    max-width: 620px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.24);
}

.footer-bottom {
    padding: 18px 0 30px;
    color: rgba(255, 255, 255, 0.70);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 14px;
}

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

    .rank-layout,
    .detail-wrap {
        grid-template-columns: 1fr;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
        padding: 72px 0 92px;
    }

    .hero {
        min-height: auto;
    }

    .hero-copy {
        padding: 0;
    }

    .hero-panel {
        display: none;
    }

    .section-heading,
    .page-hero-inner,
    .footer-inner {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .hero-search {
        grid-template-columns: 1fr;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .site-header-inner,
    .mobile-nav,
    .hero-inner,
    .section,
    .footer-inner,
    .footer-bottom,
    .page-hero-inner,
    .detail-wrap {
        width: min(100% - 24px, 1180px);
    }

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

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

    .compact-card img {
        width: 64px;
        height: 64px;
    }

    .play-cover span {
        width: 66px;
        height: 66px;
        font-size: 26px;
    }
}
