:root {
    --bg: #fff7ed;
    --bg-soft: #fdf2f8;
    --surface: #ffffff;
    --surface-strong: #fffaf5;
    --text: #111827;
    --muted: #6b7280;
    --line: #f3e8de;
    --primary: #ec4899;
    --primary-dark: #be185d;
    --accent: #fb923c;
    --gold: #facc15;
    --shadow: 0 24px 70px rgba(236, 72, 153, 0.16);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(251, 146, 60, 0.16), transparent 28rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fdf2f8 100%);
    min-height: 100vh;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 45px rgba(190, 24, 93, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.32);
}

.brand-name {
    font-size: 1.28rem;
}

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

.nav-link {
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
    background: #fdf2f8;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--primary-dark);
}

.hero {
    position: relative;
    padding: 48px 0 28px;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border-radius: 42px;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-title-layer {
    position: absolute;
    z-index: 3;
    left: clamp(24px, 5vw, 58px);
    top: 34px;
    max-width: 680px;
    color: #ffffff;
}

.hero-title-layer h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.08em;
}

.hero-title-layer p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.64fr);
    align-items: end;
    gap: 36px;
    padding: 210px clamp(24px, 5vw, 58px) 58px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.01);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.52) 42%, rgba(17, 24, 39, 0.22)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.16)),
        var(--cover-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.06);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.36), transparent 24rem),
        radial-gradient(circle at 80% 70%, rgba(251, 146, 60, 0.34), transparent 24rem);
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-copy h2 {
    margin: 10px 0 14px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.9;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #fbcfe8;
}

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

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

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

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.primary-button,
.ghost-button,
.soft-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.32);
}

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

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
}

.soft-button,
.section-link {
    color: var(--primary-dark);
    border: 1px solid #fbcfe8;
    background: #fff7fb;
}

.hero-poster {
    justify-self: end;
    width: min(330px, 100%);
    border: 10px solid rgba(255, 255, 255, 0.18);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(251, 146, 60, 0.2));
}

.hero-controls {
    position: absolute;
    z-index: 4;
    right: clamp(24px, 5vw, 58px);
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot,
.hero-arrow {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
}

.hero-dot.active {
    width: 34px;
    border-radius: 999px;
    background: #ffffff;
}

.hero-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.hero-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.mini-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 152px;
    border-radius: 22px;
    background: #111827;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.mini-card img {
    width: 100%;
    height: 100%;
    min-height: 152px;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mini-card span {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.mini-card:hover img {
    opacity: 0.98;
    transform: scale(1.06);
}

.section {
    padding: 46px 0;
}

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

.section-heading h2,
.page-title h1,
.detail-copy h1 {
    margin: 6px 0 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 188px;
    padding: 24px;
    border: 1px solid rgba(251, 207, 232, 0.8);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.18), transparent 9rem),
        linear-gradient(135deg, #ffffff, #fff7fb);
    box-shadow: 0 18px 45px rgba(236, 72, 153, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 58px rgba(236, 72, 153, 0.16);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 207, 232, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 72, 153, 0.48);
    box-shadow: 0 24px 58px rgba(236, 72, 153, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.quality-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 8px 18px rgba(236, 72, 153, 0.24);
}

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

.card-meta {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.movie-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.movie-card h3 a:hover {
    color: var(--primary-dark);
}

.card-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 8px 0 12px;
    overflow: hidden;
    color: #4b5563;
    font-size: 0.84rem;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    color: #831843;
    background: #fce7f3;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(251, 207, 232, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.06);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.rank-item img {
    width: 86px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 22px;
    border: 1px solid rgba(251, 207, 232, 0.76);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.08);
}

.search-panel label {
    display: grid;
    gap: 8px;
    color: #831843;
    font-size: 0.82rem;
    font-weight: 900;
}

.search-panel input,
.search-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid #fbcfe8;
    border-radius: 16px;
    color: var(--text);
    background: #ffffff;
    padding: 0 14px;
    outline: 0;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.filter-empty {
    margin: 18px 0;
    padding: 18px;
    border-radius: 18px;
    color: #831843;
    background: #fce7f3;
    font-weight: 800;
}

.page-hero {
    padding: 64px 0 28px;
}

.page-title {
    padding: 38px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 82% 16%, rgba(236, 72, 153, 0.2), transparent 20rem),
        linear-gradient(135deg, #ffffff, #fff7ed 52%, #fdf2f8);
    box-shadow: var(--shadow);
}

.page-title p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.detail-hero {
    padding: 52px 0 28px;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 34px;
    border: 10px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    background: #111827;
}

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

.detail-copy {
    padding: 34px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 58px rgba(17, 24, 39, 0.08);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 20px;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #831843;
    background: #fce7f3;
    font-size: 0.84rem;
    font-weight: 800;
}

.detail-copy p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.95;
}

.watch-section {
    padding-top: 20px;
}

.watch-panel {
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.24);
}

.watch-panel h2 {
    margin: 0;
    padding: 22px 26px;
    color: #ffffff;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.26), rgba(251, 146, 60, 0.18));
}

.player-shell {
    position: relative;
    background: #000000;
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.72));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 20px 45px rgba(236, 72, 153, 0.42);
}

.article-panel {
    padding: 30px;
    border: 1px solid rgba(251, 207, 232, 0.72);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.07);
}

.article-panel h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
    letter-spacing: -0.04em;
}

.article-panel p {
    margin: 0 0 18px;
    color: #4b5563;
    line-height: 2;
}

.detail-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

.detail-nav a {
    flex: 1;
    padding: 16px;
    border-radius: 20px;
    color: var(--primary-dark);
    background: #fff7fb;
    font-weight: 900;
}

.site-footer {
    margin-top: 46px;
    padding: 46px 0;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(251, 207, 232, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 28px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 1.1rem;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #831843;
    background: #fce7f3;
    font-size: 0.88rem;
    font-weight: 800;
}

[hidden] {
    display: none !important;
}

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

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

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

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    body.nav-open .site-nav {
        display: flex;
    }

    .nav-link {
        padding: 14px 16px;
    }

    .hero-shell {
        min-height: 720px;
        border-radius: 30px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding-top: 220px;
    }

    .hero-poster {
        display: none;
    }

    .hero-title-layer {
        right: 24px;
    }

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

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

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

    .hero {
        padding-top: 24px;
    }

    .hero-shell {
        min-height: 690px;
    }

    .hero-title-layer h1 {
        font-size: 2.2rem;
    }

    .hero-title-layer p {
        font-size: 0.95rem;
    }

    .hero-slide {
        padding: 205px 20px 78px;
    }

    .hero-copy h2 {
        font-size: 2.15rem;
    }

    .hero-controls {
        left: 20px;
        right: auto;
    }

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

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .rank-item .primary-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .page-title,
    .detail-copy,
    .article-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .detail-nav {
        flex-direction: column;
    }
}
