/* Static movie website styles derived from the uploaded Tailwind/React visual system. */
:root {
    --pink: #ec4899;
    --pink-dark: #be185d;
    --orange: #f97316;
    --yellow: #facc15;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #f3e8ff;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(190, 24, 93, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(236, 72, 153, 0.13), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.12), transparent 30%),
        linear-gradient(180deg, #fff7fb 0%, #ffffff 28%, #fffaf4 100%);
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fde2f3, #ffedd5);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(190, 24, 93, 0.12);
}

.header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-mark {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(236, 72, 153, 0.45);
    font-size: 14px;
}

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

.desktop-nav a,
.nav-dropdown button {
    border: 0;
    background: transparent;
    color: #374151;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover button {
    color: var(--pink);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    width: 210px;
    padding: 10px;
    display: grid;
    gap: 4px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 9px 12px;
    border-radius: 12px;
}

.dropdown-panel a:hover {
    background: #fdf2f8;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(360px, 32vw);
}

.header-search input,
.toolbar input,
.toolbar select {
    width: 100%;
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    padding: 11px 15px;
    outline: none;
    background: #fff7fb;
    color: var(--text);
}

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

.header-search button,
.primary-button,
.secondary-button,
.toolbar button,
.player-button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.22);
}

.secondary-button {
    color: var(--pink-dark);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
    color: var(--pink);
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 18px;
}

.mobile-panel.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff7fb;
    color: #374151;
    font-weight: 700;
}

main {
    min-height: 60vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 76px 0 58px;
    color: #ffffff;
    background:
        radial-gradient(circle at 16% 18%, rgba(252, 211, 77, 0.35), transparent 28%),
        radial-gradient(circle at 86% 20%, rgba(244, 114, 182, 0.42), transparent 32%),
        linear-gradient(135deg, #831843 0%, #9a3412 48%, #713f12 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 55%, rgba(0, 0, 0, 0.28));
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: 44px;
    align-items: center;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 5vw, 76px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 720px;
    color: #ffe4e6;
    font-size: 18px;
    line-height: 1.85;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.hero-tags span,
.tag-list span,
.info-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff7fb;
    font-weight: 700;
}

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

.hero-stage {
    position: relative;
    min-height: 430px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    pointer-events: none;
    transition: 0.45s ease;
}

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

.hero-slide img {
    border-radius: 22px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.28);
}

.hero-slide h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.15;
}

.hero-slide p {
    color: #ffe4e6;
    line-height: 1.75;
}

.hero-slide .meta-row {
    color: #fff7fb;
    margin: 12px 0;
}

.hero-dots {
    position: absolute;
    left: 24px;
    bottom: 22px;
    display: flex;
    gap: 8px;
}

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

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

.section {
    padding: 58px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.2;
    font-weight: 950;
    color: #111827;
}

.section-subtitle {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.7;
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

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

.category-card,
.stat-card,
.detail-panel,
.player-shell,
.recommend-box {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.category-card {
    padding: 24px;
    transition: 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
}

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

.category-card p,
.stat-card p {
    color: var(--muted);
    line-height: 1.7;
}

.stat-card {
    padding: 24px;
    text-align: center;
}

.stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 34px;
    color: var(--pink);
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(190, 24, 93, 0.11);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 52px rgba(190, 24, 93, 0.18);
}

.poster-link {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111827;
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62));
}

.duration,
.category-chip,
.rank-index {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.duration {
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.72);
}

.category-chip {
    top: 10px;
    left: 10px;
    background: linear-gradient(90deg, var(--pink), var(--orange));
}

.rank-index {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    justify-content: center;
    background: linear-gradient(135deg, #facc15, #f97316);
    font-size: 15px;
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.movie-card h3 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-desc {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row,
.metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.meta-row span,
.metric-row span {
    border-radius: 999px;
    padding: 4px 8px;
    background: #fff7fb;
}

.metric-row {
    margin-top: auto;
    padding-top: 10px;
}

.breadcrumb {
    padding: 22px 0;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--pink-dark);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 26px;
    align-items: start;
}

.player-shell {
    padding: 16px;
    background: #111827;
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #000000;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48));
    pointer-events: none;
}

.player-button {
    pointer-events: auto;
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.detail-panel {
    padding: 24px;
}

.detail-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.16;
}

.detail-cover {
    aspect-ratio: 2 / 3;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

.content-block {
    margin-top: 26px;
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.content-block h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 25px;
}

.content-block p {
    color: #374151;
    line-height: 1.95;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 76px 120px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(190, 24, 93, 0.09);
}

.rank-item img {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

.rank-num {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-weight: 900;
}

.site-footer {
    margin-top: 62px;
    color: #ffffff;
    background: linear-gradient(90deg, #831843, #9a3412, #713f12);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 20px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-grid h3 {
    margin: 0 0 12px;
}

.footer-grid p,
.footer-grid a {
    color: #ffe4e6;
    line-height: 1.8;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid li {
    margin-bottom: 8px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 18px 20px;
    text-align: center;
    color: #ffe4e6;
}

.hidden-by-filter {
    display: none !important;
}

@media (max-width: 1080px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

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

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

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

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

@media (max-width: 680px) {
    .header-inner {
        height: 62px;
    }

    .brand {
        font-size: 21px;
    }

    .hero {
        min-height: auto;
        padding: 46px 0;
    }

    .hero-slide {
        position: relative;
        display: none;
        grid-template-columns: 1fr;
        min-height: auto;
    }

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

    .hero-stage {
        min-height: auto;
    }

    .hero-slide img {
        aspect-ratio: 16 / 9;
    }

    .category-grid,
    .stats-grid,
    .movie-grid,
    .toolbar,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .rank-item .metric-row {
        grid-column: 2 / -1;
    }
}
