* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f7f3ff;
    color: #1f1430;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.96), rgba(126, 34, 206, 0.96), rgba(147, 51, 234, 0.96));
    box-shadow: 0 14px 40px rgba(76, 29, 149, 0.24);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 25%, #fff 0 12%, #c084fc 13% 36%, #7c3aed 37% 68%, #4c1d95 69% 100%);
    box-shadow: 0 8px 22px rgba(255, 255, 255, 0.24);
    flex: 0 0 auto;
}

.brand-text {
    font-size: 20px;
    white-space: nowrap;
}

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

.desktop-nav > a,
.nav-dropdown > a {
    color: rgba(255, 255, 255, 0.88);
    padding: 10px 13px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > a:hover,
.desktop-nav .is-active,
.nav-dropdown .is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 210px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    color: #4c1d95;
    box-shadow: 0 24px 70px rgba(76, 29, 149, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;
}

.dropdown-panel a {
    padding: 9px 10px;
    border-radius: 12px;
}

.dropdown-panel a:hover {
    background: #f3e8ff;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    padding: 4px;
    width: 250px;
}

.header-search input,
.mobile-menu input,
.wide-search input,
.filter-panel input,
.filter-panel select {
    border: 0;
    outline: 0;
    background: transparent;
    color: #2e1065;
}

.header-search input {
    min-width: 0;
    flex: 1;
    padding: 8px 10px 8px 14px;
}

.header-search button,
.mobile-menu button,
.wide-search button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-menu a {
    color: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu form {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    padding: 5px;
    border-radius: 999px;
}

.mobile-menu input {
    flex: 1;
    padding: 10px 14px;
}

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

.hero {
    background: #2e1065;
}

.hero-stage {
    position: relative;
    min-height: min(76vh, 720px);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-image: linear-gradient(90deg, rgba(24, 10, 55, 0.92), rgba(67, 20, 120, 0.68), rgba(24, 10, 55, 0.32)), var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.65s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: #fff;
    padding: 90px 0 80px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    color: #ede9fe;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 14px;
    margin-bottom: 16px;
    backdrop-filter: blur(12px);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    max-width: 840px;
    margin: 0;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-info p {
    max-width: 720px;
    color: #efe7ff;
    font-size: clamp(18px, 2.3vw, 24px);
    margin: 22px 0 0;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 6px 11px;
    font-size: 13px;
}

.tag-row span {
    background: #f3e8ff;
    color: #6d28d9;
}

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

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

.primary-button {
    background: #fff;
    color: #5b21b6;
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.22);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-glow {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(36px);
    pointer-events: none;
}

.hero-glow-one {
    right: 10%;
    bottom: 15%;
    width: 220px;
    height: 220px;
}

.hero-glow-two {
    left: 30%;
    top: 28%;
    width: 140px;
    height: 140px;
}

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

.hero-dot {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

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

.main-search-band {
    margin-top: -34px;
    position: relative;
    z-index: 8;
}

.main-search-band .container {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 70px rgba(76, 29, 149, 0.18);
    padding: 18px;
    backdrop-filter: blur(18px);
}

.wide-search {
    display: flex;
    gap: 12px;
}

.wide-search input {
    flex: 1;
    min-height: 54px;
    border-radius: 999px;
    background: #f4efff;
    padding: 0 20px;
}

.wide-search button {
    min-width: 120px;
    font-weight: 800;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-links a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #5b21b6;
    background: #f3e8ff;
}

.content-section {
    padding: 58px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.12;
    color: #24113d;
}

.section-heading .section-kicker {
    color: #7e22ce;
    background: #f3e8ff;
    border-color: #eadcff;
}

.section-heading > a {
    color: #6d28d9;
    font-weight: 800;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(76, 29, 149, 0.13);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 70px rgba(76, 29, 149, 0.22);
}

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

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

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

.poster-play {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%) translateY(12px);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #5b21b6;
    padding: 8px 14px;
    font-weight: 800;
    opacity: 0;
    transition: 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.3);
}

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

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #7e22ce;
    font-size: 12px;
    margin-bottom: 9px;
}

.movie-meta-row span {
    border-radius: 999px;
    background: #f5f0ff;
    padding: 3px 8px;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: #24113d;
    line-height: 1.28;
    font-size: 18px;
}

.movie-card h3 a:hover {
    color: #7e22ce;
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 14px;
    color: #6b5b7d;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-band {
    padding: 60px 0;
    background: linear-gradient(135deg, #2e1065, #6d28d9 52%, #9333ea);
}

.ranking-band .section-heading h2,
.ranking-band .section-heading > a {
    color: #fff;
}

.ranking-band .section-kicker {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.2);
}

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

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

.category-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 178px;
    border-radius: 26px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 18px 46px rgba(76, 29, 149, 0.13);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 70px rgba(76, 29, 149, 0.2);
}

.category-card-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    height: 140px;
}

.category-card-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.category-card-images img:nth-child(2) {
    transform: translateY(12px);
}

.category-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #24113d;
}

.category-card p {
    margin: 0 0 12px;
    color: #6b5b7d;
    font-size: 14px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background-color: #3b0764;
    background-image: linear-gradient(90deg, rgba(24, 10, 55, 0.92), rgba(88, 28, 135, 0.72)), var(--hero-image);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.page-hero .container {
    padding: 76px 0 70px;
    position: relative;
    z-index: 2;
}

.compact-hero .container {
    padding: 68px 0 58px;
}

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

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

.filter-panel {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(76, 29, 149, 0.1);
    padding: 18px;
    margin-bottom: 26px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 16px;
}

.filter-row label {
    display: grid;
    gap: 8px;
    color: #5b21b6;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    background: #f6f0ff;
    padding: 0 14px;
}

.filter-empty {
    display: none;
    margin-top: 16px;
    color: #7e22ce;
    font-weight: 800;
}

.filter-empty.is-visible {
    display: block;
}

.detail-hero-inner {
    padding: 58px 0;
    position: relative;
    z-index: 2;
}

.detail-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.player-section {
    padding: 54px 0 26px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #08030f;
    box-shadow: 0 26px 80px rgba(46, 16, 101, 0.28);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.play-trigger {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(147, 51, 234, 0.2), rgba(0, 0, 0, 0.48));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.2s ease;
}

.player-shell.is-playing .play-trigger {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #fff;
    position: relative;
    box-shadow: 0 18px 42px rgba(255, 255, 255, 0.24);
}

.play-icon::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 22px;
    border-left: 24px solid #6d28d9;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
}

.detail-content {
    display: grid;
    gap: 22px;
    padding: 24px 0 18px;
}

.article-panel {
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(76, 29, 149, 0.1);
    padding: 28px;
}

.article-panel h2 {
    margin: 0 0 14px;
    color: #24113d;
    font-size: 26px;
}

.article-panel p {
    color: #594a6b;
    margin: 0 0 12px;
}

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

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

.info-grid div {
    border-radius: 18px;
    background: #f6f0ff;
    padding: 14px;
}

.info-grid dt {
    color: #7e22ce;
    font-size: 13px;
    font-weight: 800;
}

.info-grid dd {
    margin: 6px 0 0;
    color: #24113d;
}

.search-results:empty::before {
    content: "请输入关键词检索影片";
    display: block;
    border-radius: 24px;
    background: #fff;
    padding: 30px;
    color: #6b5b7d;
    box-shadow: 0 18px 46px rgba(76, 29, 149, 0.1);
}

.search-results .movie-grid {
    margin-top: 18px;
}

.site-footer {
    background: linear-gradient(180deg, #4c1d95, #2e1065);
    color: #fff;
    margin-top: 40px;
}

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

.footer-inner p {
    color: #ddd6fe;
    margin: 16px 0 0;
}

.footer-inner h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

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

.footer-links a {
    color: #ddd6fe;
}

.footer-links a:hover {
    color: #fff;
}

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

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

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

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-search {
        margin-left: auto;
    }
}

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

    .brand-text {
        font-size: 17px;
    }

    .header-search {
        display: none;
    }

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

    .hero-content {
        padding: 72px 0 84px;
    }

    .wide-search,
    .filter-row,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .wide-search {
        display: grid;
    }

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

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

    .category-card-images {
        height: 120px;
    }

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

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

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

@media (max-width: 520px) {
    .movie-grid,
    .featured-grid,
    .ranking-list,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .movie-card p {
        min-height: auto;
    }
}
