:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --orange: #f97316;
    --yellow: #facc15;
    --green: #10b981;
    --teal: #14b8a6;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: rgba(148, 163, 184, 0.22);
    --shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 34%, #f8fbff 100%);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.22);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #7c2d12;
    background: var(--yellow);
    box-shadow: 0 10px 18px rgba(250, 204, 21, 0.35);
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
    font-weight: 700;
}

.nav-links a {
    opacity: 0.95;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 99px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #fce7f3 0%, #ede9fe 48%, #dbeafe 100%);
    padding: 54px 0 64px;
}

.bubble-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.34;
}

.hero-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
    gap: 34px;
    align-items: center;
}

.hero-heading h1,
.page-hero h1 {
    margin: 10px 0 16px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
    color: transparent;
    background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-heading p,
.page-hero p {
    margin: 0;
    color: #4b5563;
    font-size: 18px;
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pink-dark);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-search,
.page-search {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    padding: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-search input,
.page-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 16px;
    color: #111827;
}

.hero-search button,
.page-search button,
.primary-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn.small {
    display: inline-flex;
    padding: 9px 16px;
    font-size: 14px;
}

.hero-search button:hover,
.page-search button:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(139, 92, 246, 0.3);
}

.ghost-btn {
    border-radius: 999px;
    padding: 12px 22px;
    color: #7c3aed;
    background: rgba(255, 255, 255, 0.76);
    font-weight: 900;
    border: 1px solid rgba(124, 58, 237, 0.14);
}

.hero-slider {
    position: relative;
    min-height: 478px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
    align-items: center;
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.42s ease, transform 0.42s ease;
}

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

.hero-copy {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-copy h2 {
    margin: 12px 0 10px;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.12;
}

.hero-copy p {
    margin: 0;
    color: #4b5563;
}

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

.hero-tags {
    margin: 18px 0 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: linear-gradient(90deg, #fce7f3, #ede9fe);
    color: #7c3aed;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

.tag-row.large span {
    font-size: 13px;
    padding: 8px 12px;
}

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

.hero-poster {
    position: relative;
    display: block;
    min-height: 460px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.24);
    transform: rotate(1deg);
    transition: transform 0.25s ease;
}

.hero-poster:hover {
    transform: rotate(0) scale(1.02);
}

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

.hero-poster-overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: grid;
    gap: 4px;
    padding: 32px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
}

.hero-poster-overlay strong {
    font-size: 24px;
}

.hero-controls {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-controls button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.55);
    font-size: 28px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.content-section,
.soft-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 62px 0 0;
}

.soft-section {
    width: 100%;
    padding: 64px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(90deg, #eff6ff, #f5f3ff);
}

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

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 950;
    color: transparent;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
}

.section-title a {
    color: #7c3aed;
    font-weight: 900;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f3f4f6;
}

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

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

.poster-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 46px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.12));
    opacity: 0;
    transition: opacity 0.22s ease;
}

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

.card-copy {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.card-copy strong {
    font-size: 17px;
    line-height: 1.35;
}

.card-copy em,
.rank-copy em {
    font-style: normal;
    color: var(--muted);
    font-size: 13px;
}

.card-desc {
    color: #4b5563;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile,
.category-panel {
    border-radius: 24px;
    padding: 24px;
    min-height: 160px;
    color: #111827;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease;
}

.category-tile:hover,
.category-panel:hover {
    transform: translateY(-4px);
}

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

.category-tile span,
.category-panel p {
    color: #4b5563;
}

.tone-pink { background: linear-gradient(135deg, #fce7f3, #ffffff); }
.tone-orange { background: linear-gradient(135deg, #ffedd5, #fff7ed); }
.tone-purple { background: linear-gradient(135deg, #ede9fe, #ffffff); }
.tone-blue { background: linear-gradient(135deg, #dbeafe, #ffffff); }
.tone-rose { background: linear-gradient(135deg, #ffe4e6, #fff1f2); }
.tone-indigo { background: linear-gradient(135deg, #e0e7ff, #ffffff); }
.tone-yellow { background: linear-gradient(135deg, #fef3c7, #ffffff); }
.tone-green { background: linear-gradient(135deg, #dcfce7, #ffffff); }
.tone-teal { background: linear-gradient(135deg, #ccfbf1, #ffffff); }
.tone-violet { background: linear-gradient(135deg, #f3e8ff, #ffffff); }

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto 0;
    padding: 46px;
    border-radius: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    margin-bottom: 12px;
    font-size: 14px;
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.filter-btn {
    border: 1px solid rgba(124, 58, 237, 0.16);
    background: rgba(255, 255, 255, 0.78);
    color: #6d28d9;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
}

.filter-btn.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
}

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

.category-panel {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 24px;
    align-items: center;
}

.category-panel h2 {
    margin: 6px 0 8px;
    font-size: 30px;
}

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

.mini-links a {
    padding: 10px 12px;
    border-radius: 14px;
    color: #4c1d95;
    background: rgba(255, 255, 255, 0.62);
    font-weight: 800;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 92px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.rank-no {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-size: 20px;
    font-weight: 950;
}

.rank-item img {
    width: 92px;
    height: 118px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-copy {
    display: grid;
    gap: 6px;
}

.rank-copy strong {
    font-size: 20px;
}

.rank-copy span {
    color: #4b5563;
}

.detail-hero {
    background: linear-gradient(90deg, #111827, #312e81 52%, #831843);
    color: #ffffff;
    padding: 38px 0 58px;
}

.detail-hero .breadcrumb,
.detail-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 34px;
    align-items: center;
}

.detail-hero > .breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 20px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.34);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
    cursor: pointer;
}

.play-cover span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    color: #7c2d12;
    background: #facc15;
    font-size: 36px;
    box-shadow: 0 18px 40px rgba(250, 204, 21, 0.34);
}

.play-cover strong {
    font-size: 22px;
}

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

.detail-copy h1 {
    margin: 14px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.detail-copy p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.text-card {
    border-radius: 24px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.text-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.text-card p {
    margin: 0;
    color: #374151;
}

.search-results {
    display: grid;
    gap: 16px;
}

.search-result {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.search-result img {
    width: 78px;
    height: 104px;
    object-fit: cover;
    border-radius: 14px;
}

.search-result strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.search-result span {
    color: #4b5563;
}

.muted {
    color: var(--muted);
    padding: 20px;
    border-radius: 18px;
    background: #ffffff;
}

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

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

.footer-grid h3 {
    margin: 0 0 12px;
    font-size: 24px;
    color: transparent;
    background: linear-gradient(90deg, #f472b6, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #94a3b8;
    padding: 18px;
    font-size: 14px;
}

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

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

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

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

    .nav-links a {
        padding: 12px 14px;
        border-radius: 14px;
    }

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

    .hero-slider {
        min-height: 840px;
    }

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

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

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

@media (max-width: 680px) {
    .hero-section {
        padding-top: 34px;
    }

    .hero-shell,
    .content-section,
    .compact-list,
    .page-hero,
    .footer-grid,
    .detail-layout,
    .detail-hero > .breadcrumb {
        width: min(100% - 24px, 1180px);
    }

    .page-hero {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .hero-search,
    .page-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search button,
    .page-search button {
        width: 100%;
    }

    .hero-slider {
        min-height: 760px;
    }

    .hero-copy {
        padding: 22px;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 380px;
    }

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

    .rank-item {
        grid-template-columns: 44px 76px 1fr;
        gap: 12px;
    }

    .rank-no {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .rank-item img {
        width: 76px;
        height: 100px;
    }

    .detail-copy h1 {
        font-size: 34px;
    }
}
