:root {
    --pink: #ec4899;
    --pink-deep: #db2777;
    --sky: #38bdf8;
    --emerald: #34d399;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7fb;
    --line: #f2ddea;
    --card: rgba(255, 255, 255, 0.86);
    --shadow: 0 24px 70px rgba(236, 72, 153, 0.16);
}

body {
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.76), #ffffff 42%, rgba(240, 249, 255, 0.8));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 68px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--sky), var(--emerald));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

.brand-name {
    font-size: 20px;
    background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #374151;
    font-size: 15px;
}

.site-nav a {
    position: relative;
    transition: color 0.22s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--pink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f7fb;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 7px 8px 7px 16px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.search-box:focus-within {
    background: #ffffff;
    border-color: rgba(236, 72, 153, 0.42);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.09);
}

.search-box input {
    width: 210px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.search-box button,
.hero-search button,
.primary-btn,
.secondary-btn,
.pill-link {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.search-box button {
    padding: 8px 14px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--sky));
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: #374151;
}

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

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.page-wrap {
    min-height: calc(100vh - 68px);
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(56, 189, 248, 0.16), rgba(52, 211, 153, 0.16));
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.55;
    z-index: -1;
}

.hero::before {
    width: 360px;
    height: 360px;
    left: -130px;
    top: 80px;
    background: rgba(236, 72, 153, 0.22);
}

.hero::after {
    width: 480px;
    height: 480px;
    right: -170px;
    bottom: -130px;
    background: rgba(56, 189, 248, 0.2);
}

.hero-stage {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 650px;
    padding: 70px 22px 50px;
    display: grid;
    align-items: center;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 48px;
    align-items: center;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeRise 0.65s ease both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pink-deep);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(236, 72, 153, 0.16);
    border-radius: 999px;
    padding: 8px 14px;
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.12);
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.05;
    margin: 0 0 22px;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-summary {
    max-width: 680px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 26px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-meta span,
.tag,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.75);
    color: #4b5563;
    border: 1px solid rgba(236, 72, 153, 0.13);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 26px;
}

.primary-btn,
.secondary-btn,
.pill-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--sky));
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.25);
}

.secondary-btn,
.pill-link {
    color: #374151;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(229, 231, 235, 0.92);
}

.primary-btn:hover,
.secondary-btn:hover,
.pill-link:hover,
.search-box button:hover,
.hero-search button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 36px rgba(56, 189, 248, 0.2);
}

.hero-search {
    max-width: 590px;
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
}

.hero-search button {
    padding: 13px 20px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--sky));
}

.hero-art {
    position: relative;
    min-height: 480px;
}

.hero-poster-card {
    position: absolute;
    inset: 20px 28px 28px 0;
    overflow: hidden;
    border-radius: 38px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
    transform: rotate(2deg);
}

.hero-poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.64));
}

.hero-mini {
    position: absolute;
    left: -8px;
    right: 58px;
    bottom: 0;
    z-index: 2;
    padding: 22px;
    color: #ffffff;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.92), rgba(56, 189, 248, 0.9));
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.hero-mini strong {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(236, 72, 153, 0.24);
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--pink), var(--sky));
}

.float-symbol {
    position: absolute;
    color: rgba(236, 72, 153, 0.28);
    font-size: 40px;
    animation: floatSymbol 12s ease-in-out infinite;
}

.float-symbol:nth-child(1) { left: 8%; top: 16%; }
.float-symbol:nth-child(2) { left: 85%; top: 18%; animation-delay: -4s; }
.float-symbol:nth-child(3) { left: 18%; bottom: 12%; animation-delay: -7s; }
.float-symbol:nth-child(4) { right: 14%; bottom: 18%; animation-delay: -2s; }

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 22px 0;
}

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

.section-title {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    color: #111827;
}

.section-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid rgba(236, 72, 153, 0.1);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 72, 153, 0.35);
    box-shadow: 0 26px 54px rgba(236, 72, 153, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #e0f2fe);
}

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

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

.badge,
.duration {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    backdrop-filter: blur(8px);
}

.badge {
    left: 12px;
    top: 12px;
    background: linear-gradient(90deg, var(--pink), var(--sky));
}

.duration {
    right: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.68);
}

.movie-card-body {
    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-card p {
    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;
}

.movie-meta,
.card-tags,
.detail-meta,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.movie-meta {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 12px;
}

.card-tags .tag {
    font-size: 12px;
    padding: 5px 9px;
}

.category-ribbon {
    background: linear-gradient(90deg, rgba(252, 231, 243, 0.74), rgba(224, 242, 254, 0.78));
    padding: 64px 0;
    margin-top: 70px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 58px rgba(56, 189, 248, 0.18);
}

.category-icon {
    font-size: 38px;
    margin-bottom: 16px;
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 92px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(236, 72, 153, 0.1);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

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

.rank-thumb {
    width: 92px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

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

.page-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 22px 20px;
}

.page-hero-inner {
    padding: 46px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(252, 231, 243, 0.86), rgba(224, 242, 254, 0.9), rgba(209, 250, 229, 0.7));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 820px;
    color: #4b5563;
    line-height: 1.9;
    font-size: 17px;
    margin: 0;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    isolation: isolate;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.94)), var(--cover);
    background-size: cover;
    background-position: center;
    filter: blur(0px);
    transform: scale(1.02);
    z-index: -2;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(56, 189, 248, 0.12), rgba(52, 211, 153, 0.12));
    z-index: -1;
}

.detail-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 22px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

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

.breadcrumb {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-lead {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.85;
    margin: 0 0 22px;
}

.detail-meta {
    margin-bottom: 22px;
}

.meta-pill {
    font-size: 14px;
}

.player-section,
.article-section,
.related-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 62px 22px 0;
}

.player-section h2,
.article-section h2,
.related-section h2 {
    margin: 0 0 22px;
    font-size: clamp(26px, 4vw, 38px);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #0f172a;
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.24);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #0f172a;
    object-fit: contain;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.28), rgba(15, 23, 42, 0.74));
}

.player-start span {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 36px;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    box-shadow: 0 20px 42px rgba(236, 72, 153, 0.28);
}

.player-start strong {
    font-size: 20px;
}

.player-shell.is-playing .player-start {
    display: none;
}

.article-card {
    padding: 34px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(236, 72, 153, 0.1);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.article-card p {
    color: #4b5563;
    line-height: 2;
    margin: 0 0 18px;
    font-size: 17px;
}

.article-card p:last-child {
    margin-bottom: 0;
}

.search-panel {
    display: grid;
    gap: 18px;
}

.search-result-note {
    color: var(--muted);
    line-height: 1.7;
}

.site-footer {
    margin-top: 86px;
    background: linear-gradient(135deg, #fdf2f8, #eff6ff, #ecfdf5);
    border-top: 1px solid rgba(236, 72, 153, 0.1);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 22px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

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

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

.footer-links a:hover {
    color: var(--pink);
}

@keyframes fadeRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatSymbol {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(22px, -20px, 0) rotate(10deg); }
}

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

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

    .hero-art {
        min-height: 420px;
    }
}

@media (max-width: 800px) {
    .site-nav,
    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

    .hero-stage {
        padding-top: 46px;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 22px;
    }

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

    .rank-item .primary-btn {
        grid-column: 3;
        justify-self: start;
    }

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

@media (max-width: 560px) {
    .header-inner {
        padding: 0 16px;
    }

    .brand-name {
        font-size: 18px;
    }

    .hero {
        min-height: auto;
    }

    .hero-stage {
        min-height: auto;
        padding: 40px 16px 70px;
    }

    .hero-slide {
        gap: 28px;
    }

    .hero-art {
        min-height: 350px;
    }

    .hero-poster-card {
        inset: 0 0 38px 0;
        border-radius: 28px;
        transform: rotate(0deg);
    }

    .hero-mini {
        left: 14px;
        right: 14px;
        border-radius: 22px;
    }

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

    .section,
    .page-hero,
    .player-section,
    .article-section,
    .related-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-hero-inner,
    .article-card {
        padding: 26px;
        border-radius: 24px;
    }

    .detail-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .player-start span {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
