:root {
    --pink: #ec4899;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --orange: #f97316;
    --yellow: #f59e0b;
    --dark: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(180deg, #fff7fb 0%, #f8fbff 38%, #ffffff 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.22);
}

.top-nav {
    width: min(1180px, calc(100% - 32px));
    min-height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    font-size: 22px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--white);
    font-size: 15px;
    font-weight: 650;
}

.nav-links a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.current {
    color: #fde68a;
    border-color: #fde68a;
    transform: translateY(-1px);
}

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: 70px 0;
    background: linear-gradient(110deg, #fce7f3 0%, #ede9fe 44%, #dbeafe 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.66;
}

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

.hero::after {
    width: 340px;
    height: 340px;
    right: -110px;
    bottom: -150px;
    background: rgba(59, 130, 246, 0.24);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 46px;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.12);
    font-weight: 750;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: transparent;
    background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-lead {
    max-width: 660px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

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

.button-primary,
.button-ghost,
.section-link,
.play-main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary,
.play-main-button {
    min-height: 48px;
    padding: 0 22px;
    color: var(--white);
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: 0 18px 35px rgba(168, 85, 247, 0.32);
}

.button-primary:hover,
.play-main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(168, 85, 247, 0.38);
}

.button-ghost {
    min-height: 48px;
    padding: 0 22px;
    color: #6d28d9;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.button-ghost:hover {
    transform: translateY(-2px);
    background: var(--white);
}

.hero-search {
    margin-top: 28px;
    max-width: 620px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.hero-search input,
.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
    background: var(--white);
}

.hero-search button,
.search-panel button {
    border: 0;
    border-radius: 16px;
    padding: 0 20px;
    color: var(--white);
    font-weight: 800;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    cursor: pointer;
}

.hero-chips,
.tag-row,
.info-tags,
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-chips {
    margin-top: 24px;
}

.hero-chips a,
.tag-row span,
.info-tags span,
.category-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #7e22ce;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(168, 85, 247, 0.16);
    font-size: 13px;
    font-weight: 700;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 30px 70px rgba(31, 41, 55, 0.26);
    opacity: 0;
    transform: translateX(32px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-slide-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 88px 28px 26px;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.52), transparent);
}

.hero-slide-content h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.hero-slide-content p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

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

.hero-dots button {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.28);
    cursor: pointer;
}

.hero-dots button.active {
    width: 30px;
    background: linear-gradient(90deg, var(--pink), var(--purple));
}

main {
    display: block;
}

.section {
    padding: 56px 0 0;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: transparent;
    background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
}

.section-heading h2 {
    font-size: 32px;
}

.section-heading p,
.page-title p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-link {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    color: #7c3aed;
    background: #f5f3ff;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(31, 41, 55, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(31, 41, 55, 0.16);
}

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.55));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #db2777;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 16px;
}

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

.card-body h3 a:hover {
    color: #db2777;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
}

.card-meta span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #f3f4f6;
}

.card-body p {
    min-height: 45px;
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 84px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.1);
}

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

.rank-item img {
    width: 84px;
    height: 112px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

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

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

.page-hero {
    padding: 58px 0 34px;
    background: linear-gradient(110deg, #fce7f3, #ede9fe, #dbeafe);
}

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

.page-title h1,
.detail-title h1 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.12;
}

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

.category-card {
    padding: 24px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

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

.category-card a {
    color: #7c3aed;
    font-weight: 800;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 150px 150px auto;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.result-line {
    margin: 0 0 18px;
    color: var(--muted);
}

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

.breadcrumb a:hover {
    color: var(--white);
}

.detail-hero {
    padding: 42px 0 52px;
    color: var(--white);
    background: linear-gradient(180deg, #111827, #1f2937);
}

.detail-head {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 30px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

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

.detail-title h1 {
    margin-bottom: 16px;
}

.detail-title p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.85;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding-top: 38px;
}

.content-card,
.sidebar-card {
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.content-card {
    padding: 24px;
}

.content-card h2,
.sidebar-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
    color: #111827;
}

.content-card p {
    margin: 0 0 18px;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.46), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.player-start.hidden {
    display: none;
}

.player-start span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #db2777;
    background: rgba(255, 255, 255, 0.94);
    font-size: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.player-status {
    min-height: 24px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.sidebar-card {
    padding: 18px;
    margin-bottom: 22px;
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-item {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
}

.side-item img {
    width: 68px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.side-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.side-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.prev-next a {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--line);
    color: #4c1d95;
    font-weight: 800;
}

.site-footer {
    margin-top: 70px;
    color: var(--white);
    background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.site-footer p,
.site-footer li {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.75;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    columns: 2;
    list-style: none;
}

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

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border-radius: 20px;
        background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 11px 8px;
    }

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

    .hero-stage {
        min-height: 440px;
    }

    .hero-slide img {
        height: 440px;
    }

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

    .category-grid,
    .ranking-list,
    .search-panel {
        grid-template-columns: 1fr 1fr;
    }

    .detail-poster {
        width: 230px;
    }
}

@media (max-width: 680px) {
    .top-nav,
    .page-shell,
    .hero-inner,
    .page-title,
    .detail-head,
    .footer-grid {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        font-size: 20px;
    }

    .hero {
        padding: 42px 0 56px;
    }

    .hero-search,
    .search-panel,
    .prev-next {
        grid-template-columns: 1fr;
    }

    .hero-search button,
    .search-panel button {
        min-height: 46px;
    }

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

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

    .rank-item {
        grid-template-columns: 42px 72px 1fr;
        gap: 10px;
    }

    .rank-item img {
        width: 72px;
        height: 96px;
    }

    .card-body {
        padding: 13px;
    }

    .card-body h3 {
        font-size: 15px;
    }

    .card-body p {
        display: none;
    }

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

    .detail-poster {
        width: 190px;
    }
}
