:root {
    --bg: #fff7fb;
    --panel: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fce7f3;
    --line: rgba(244, 114, 182, 0.18);
    --rose: #f43f5e;
    --pink: #ec4899;
    --purple: #8b5cf6;
    --dark: #111827;
    --shadow: 0 20px 55px rgba(157, 23, 77, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(244, 114, 182, 0.18), transparent 34rem),
        radial-gradient(circle at 100% 10%, rgba(139, 92, 246, 0.14), transparent 30rem),
        linear-gradient(180deg, #fff7fb 0%, #fff 36%, #fff7fb 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

img,
video {
    max-width: 100%;
}

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(244, 114, 182, 0.14);
}

.header-inner {
    width: min(1200px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 16px 35px rgba(236, 72, 153, 0.34);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

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

.brand-text small {
    color: var(--muted);
    font-size: 12px;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--soft);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--pink);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

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

.hero {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    min-height: 620px;
    margin: 28px auto 42px;
    overflow: hidden;
    border-radius: 36px;
    color: #fff;
    background: #111827;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.26);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(244, 114, 182, 0.42), transparent 26rem),
        linear-gradient(115deg, rgba(17, 24, 39, 0.94), rgba(88, 28, 135, 0.58), rgba(244, 63, 94, 0.30));
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    align-items: center;
    gap: 44px;
    padding: 76px;
    opacity: 0;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    transition: opacity 0.55s ease, transform 0.55s ease;
    transform: scale(1.02);
}

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

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

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

.hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    width: min(650px, 100%);
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.btn-light {
    color: var(--rose);
    background: #fff;
    border-color: var(--line);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.hero-meta span,
.pill,
.tag-row span,
.rank-tags span,
.detail-meta span,
.category-links a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-weight: 700;
}

.hero-poster {
    min-height: 480px;
    border-radius: 30px;
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.hero-dots {
    position: absolute;
    left: 76px;
    bottom: 46px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dot.active {
    background: #fff;
}

.section {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 46px;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 20px;
}

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

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

.movie-card,
.category-card,
.info-panel,
.search-panel,
.detail-panel,
.player-card,
.rank-row {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 70px rgba(157, 23, 77, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    height: 285px;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.poster-bg,
.rank-thumb,
.category-cover span,
.related-thumb {
    display: block;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

.poster-bg {
    transition: transform 0.4s ease;
}

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

.poster-year,
.poster-type {
    position: absolute;
    top: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(17, 24, 39, 0.62);
    backdrop-filter: blur(12px);
}

.poster-year {
    left: 14px;
}

.poster-type {
    right: 14px;
}

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

.movie-title,
.rank-title,
.category-name {
    display: inline-block;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-title:hover,
.rank-title:hover,
.category-name:hover {
    color: var(--pink);
}

.movie-card p,
.category-body p,
.rank-info p,
.detail-panel p,
.info-panel p,
.search-panel p {
    color: var(--muted);
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 0;
    color: #9f1239;
    font-size: 13px;
    font-weight: 800;
}

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

.tag-row span,
.rank-tags span,
.detail-meta span,
.category-links a {
    color: #9f1239;
    background: #fff1f2;
    border-color: rgba(244, 63, 94, 0.16);
}

.category-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
}

.category-cover {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 210px;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.category-cover span {
    min-height: 100%;
}

.category-body {
    padding: 24px;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 94px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

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

.rank-thumb {
    width: 94px;
    height: 118px;
    border-radius: 18px;
    background-color: #fce7f3;
}

.rank-info p {
    margin: 5px 0 10px;
}

.rank-heat {
    color: var(--rose);
    font-weight: 900;
    white-space: nowrap;
}

.search-panel {
    padding: 22px;
    margin-bottom: 28px;
}

.search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(150px, 0.35fr));
    gap: 12px;
}

.search-controls input,
.search-controls select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

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

.detail-hero {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto;
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 30px;
    align-items: stretch;
}

.detail-cover {
    min-height: 520px;
    border-radius: 34px;
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
}

.detail-panel {
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-panel h1 {
    margin: 12px 0 16px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.player-card {
    overflow: hidden;
    padding: 0;
}

.player-frame {
    position: relative;
    min-height: 520px;
    background: #020617;
}

.movie-player {
    display: block;
    width: 100%;
    min-height: 520px;
    background: #020617;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(236, 72, 153, 0.22), transparent 24rem),
        rgba(2, 6, 23, 0.44);
}

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

.play-layer span {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 20px 48px rgba(244, 63, 94, 0.38);
}

.play-layer strong {
    font-size: 20px;
}

.content-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 46px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
}

.detail-content {
    display: grid;
    gap: 22px;
}

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

.info-panel h2,
.info-panel h3 {
    margin: 0 0 12px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-thumb {
    height: 96px;
    border-radius: 16px;
    background-color: #fce7f3;
}

.related-item strong {
    display: block;
    line-height: 1.35;
}

.related-item span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 55%, #3b0f2f);
    margin-top: 60px;
}

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
    padding: 46px 0 34px;
}

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

.footer-grid a,
.footer-grid p {
    display: block;
    color: #cbd5e1;
    margin: 0 0 8px;
}

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

.footer-brand strong {
    color: #fff;
    font-size: 20px;
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #94a3b8;
}

.empty-state {
    display: none;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

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

    .menu-toggle {
        display: flex;
    }

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

    .hero {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 42px 28px 86px;
    }

    .hero-poster {
        min-height: 320px;
    }

    .hero-dots {
        left: 28px;
        bottom: 32px;
    }

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

    .category-grid,
    .detail-hero,
    .content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-cover {
        min-height: 420px;
    }
}

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

    .brand-text small {
        display: none;
    }

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

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .hero {
        width: calc(100% - 20px);
        margin-top: 16px;
        border-radius: 26px;
    }

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

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .section,
    .container,
    .detail-hero,
    .content-grid {
        width: calc(100% - 20px);
    }

    .section-head {
        display: block;
    }

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

    .category-card {
        grid-template-columns: 1fr;
    }

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

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

    .rank-thumb {
        width: 78px;
        height: 100px;
    }

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

    .player-frame,
    .movie-player {
        min-height: 300px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
