:root {
    --pink: #ec4899;
    --rose: #f43f5e;
    --orange: #fb923c;
    --green: #10b981;
    --blue: #0ea5e9;
    --yellow: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #fdf2f8;
    --card: #ffffff;
    --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 35%, #eff6ff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
    box-shadow: 0 16px 40px rgba(236, 72, 153, 0.28);
}

.nav-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.brand-mark,
.footer-logo span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-links a,
.mobile-nav a {
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.nav-links a:hover,
.mobile-nav a:hover,
.nav-links a.active,
.mobile-nav a.active {
    background: #ffffff;
    color: var(--pink);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.18);
}

.nav-search {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    padding: 6px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.nav-search input,
.mobile-nav input,
.hero-search input {
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    min-width: 220px;
    padding: 9px 12px;
}

.nav-search input::placeholder,
.mobile-nav input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.nav-search button,
.mobile-nav button,
.hero-search button {
    border: 0;
    border-radius: 999px;
    color: var(--pink);
    background: #ffffff;
    padding: 9px 16px;
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    padding: 9px 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 16px;
}

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

.mobile-nav form {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 8px;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
}

.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 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    transform: scale(1.04);
}

.hero-overlay,
.detail-backdrop div {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.92), rgba(244, 63, 94, 0.72), rgba(251, 146, 60, 0.68));
}

.hero-content {
    position: absolute;
    inset: 0;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff7cc;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-kicker span {
    background: rgba(255, 255, 255, 0.18);
    padding: 7px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.hero-content h1 {
    max-width: 900px;
    margin: 18px 0;
    font-size: clamp(42px, 8vw, 76px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.rank-meta span {
    color: var(--pink);
    background: #fff1f2;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
}

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

.primary-btn,
.ghost-btn,
.more-link,
.overview-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    color: var(--pink);
    background: #ffffff;
    box-shadow: 0 22px 36px rgba(17, 24, 39, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.more-link:hover,
.overview-more:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
}

.ghost-btn.bright {
    color: var(--pink);
    border-color: #ffffff;
    background: #ffffff;
}

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

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-dot.active {
    width: 54px;
    background: #ffffff;
}

.feature-strip {
    max-width: 1240px;
    margin: -36px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-strip a {
    color: #ffffff;
    border-radius: 24px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.92), rgba(244, 63, 94, 0.92));
    box-shadow: var(--shadow);
}

.feature-strip strong,
.feature-strip span {
    display: block;
}

.feature-strip strong {
    font-size: 20px;
}

.feature-strip span {
    color: rgba(255, 255, 255, 0.82);
    margin-top: 5px;
}

.section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 20px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.section-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 16px 30px rgba(236, 72, 153, 0.25);
    font-size: 22px;
}

.section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.more-link,
.overview-more {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
}

.more-link.green {
    background: linear-gradient(135deg, var(--green), #14b8a6);
}

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

.category-card,
.overview-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    border-radius: 28px;
    padding: 24px;
    color: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.overview-card:hover,
.movie-card:hover,
.rank-row:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.18);
}

.category-icon {
    display: block;
    font-size: 38px;
    margin-bottom: 10px;
}

.category-card strong,
.category-card small,
.overview-title,
.overview-card p {
    display: block;
    position: relative;
    z-index: 2;
}

.category-card strong,
.overview-title {
    font-size: 20px;
    font-weight: 950;
}

.category-card small,
.overview-card p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.84);
}

.gradient-pink-orange { background: linear-gradient(135deg, #ec4899, #fb923c); }
.gradient-blue-cyan { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.gradient-green-teal { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.gradient-yellow-orange { background: linear-gradient(135deg, #eab308, #f97316); }
.gradient-purple-blue { background: linear-gradient(135deg, #8b5cf6, #2563eb); }
.gradient-rose-fuchsia { background: linear-gradient(135deg, #f43f5e, #d946ef); }
.gradient-slate-indigo { background: linear-gradient(135deg, #334155, #4f46e5); }
.gradient-emerald-lime { background: linear-gradient(135deg, #059669, #84cc16); }
.gradient-amber-red { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.gradient-cyan-sky { background: linear-gradient(135deg, #06b6d4, #38bdf8); }
.gradient-violet-pink { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.gradient-gray-zinc { background: linear-gradient(135deg, #52525b, #18181b); }

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

.list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.movie-card {
    overflow: hidden;
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.duration,
.rank-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(6px);
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.movie-info {
    padding: 18px;
}

.movie-title,
.rank-title {
    display: block;
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
    line-height: 1.32;
}

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

.movie-meta,
.movie-desc {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.movie-desc {
    min-height: 44px;
}

.tag-row {
    margin-top: 14px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 150px 1fr;
}

.movie-card-horizontal .poster-wrap {
    aspect-ratio: 1 / 1.15;
}

.movie-card-large .poster-wrap {
    aspect-ratio: 16 / 12;
}

.page-main,
.detail-main {
    min-height: 70vh;
}

.page-hero {
    min-height: 360px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    text-align: center;
}

.page-hero > div {
    max-width: 920px;
}

.page-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(40px, 7vw, 68px);
    line-height: 1;
    font-weight: 950;
}

.page-hero p {
    margin: 0 auto;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.soft-hero { background: linear-gradient(135deg, #ec4899, #fb7185, #fb923c); }
.category-hero { background: linear-gradient(135deg, #3b82f6, #06b6d4, #14b8a6); }
.ranking-hero { background: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899); }
.search-hero { background: linear-gradient(135deg, #7c3aed, #2563eb, #06b6d4); }

.compact-actions {
    justify-content: center;
}

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

.mini-links {
    position: relative;
    z-index: 2;
    margin: 16px 0;
    display: grid;
    gap: 6px;
}

.mini-links a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.overview-more {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.ranking-page-list {
    display: grid;
    gap: 16px;
}

.rank-row {
    display: grid;
    grid-template-columns: 70px 96px 1fr 86px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--yellow), var(--rose));
    font-size: 22px;
    font-weight: 950;
}

.rank-poster {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #fdf2f8;
}

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

.rank-info p {
    margin: 6px 0 10px;
    color: var(--muted);
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rank-score {
    color: var(--pink);
    font-size: 28px;
    font-weight: 950;
    text-align: center;
}

.hero-search {
    display: inline-flex;
    gap: 8px;
    margin-top: 28px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.hero-search input {
    min-width: 320px;
}

.search-status {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 18px;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    color: #ffffff;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
}

.detail-layout {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 34px;
    background: #fff1f2;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.3);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 18px;
}

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 74px);
    line-height: 1;
    font-weight: 950;
}

.detail-line {
    max-width: 850px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 28px;
    max-width: 720px;
}

.detail-meta span {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 12px 14px;
    backdrop-filter: blur(8px);
}

.detail-meta b {
    color: #fff7cc;
}

.player-section {
    padding-top: 50px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #030712;
    box-shadow: 0 35px 90px rgba(3, 7, 18, 0.35);
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    position: relative;
    z-index: 1;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.18), rgba(3, 7, 18, 0.76));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
    pointer-events: none;
}

.play-orb {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    background: #ffffff;
    font-size: 36px;
    padding-left: 5px;
    box-shadow: 0 22px 45px rgba(255, 255, 255, 0.22);
    transition: transform 0.25s ease;
}

.player-cover:hover .play-orb {
    transform: scale(1.08);
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    border-radius: 999px;
    padding: 8px 12px;
    margin: 0;
    display: none;
}

.player-message.visible {
    display: block;
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.content-card {
    border-radius: 28px;
    background: #ffffff;
    padding: 30px;
    box-shadow: var(--shadow);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
    margin-top: 40px;
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 20px 34px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 34px;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 20px 32px;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .nav-links,
    .nav-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .feature-strip,
    .category-grid,
    .movie-grid,
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 720px) {
    .brand {
        font-size: 20px;
    }

    .hero-carousel {
        height: 640px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 42px;
    }

    .hero-actions,
    .section-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .feature-strip,
    .category-grid,
    .movie-grid,
    .overview-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal,
    .rank-row,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal .poster-wrap {
        aspect-ratio: 16 / 10;
    }

    .rank-number {
        width: 46px;
        height: 46px;
    }

    .rank-score {
        text-align: left;
    }

    .detail-layout {
        padding-top: 50px;
    }

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

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

    .hero-search {
        width: 100%;
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search input {
        min-width: 0;
        width: 100%;
    }
}
