:root {
    --pink: #db2777;
    --pink-light: #fdf2f8;
    --purple: #9333ea;
    --purple-light: #faf5ff;
    --text: #111827;
    --muted: #6b7280;
    --line: #f9a8d4;
    --shadow: 0 20px 45px rgba(219, 39, 119, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #fce7f3;
    box-shadow: 0 8px 30px rgba(219, 39, 119, 0.08);
}

.header-inner {
    max-width: 1280px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-icon,
.footer-brand span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(219, 39, 119, 0.26);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.desktop-nav a,
.mobile-panel a {
    color: #374151;
    font-weight: 600;
    padding: 10px 13px;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--pink);
    background: #fdf2f8;
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #fbcfe8;
    background: #ffffff;
    border-radius: 999px;
    padding: 6px;
}

.header-search input,
.mobile-search input {
    width: 210px;
    border: 0;
    outline: none;
    padding: 7px 8px 7px 14px;
    background: transparent;
}

.header-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.play-overlay button {
    border: 0;
    cursor: pointer;
    font-weight: 700;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    padding: 10px 18px;
    box-shadow: 0 12px 24px rgba(219, 39, 119, 0.22);
}

.secondary-button {
    color: var(--pink);
    background: #ffffff;
    padding: 10px 18px;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.play-overlay button:hover {
    transform: translateY(-1px) scale(1.02);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: #fdf2f8;
    color: var(--pink);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 22px;
}

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

.mobile-panel a {
    display: block;
    margin-top: 6px;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 4s ease;
}

.hero-slide.is-active img {
    transform: scale(1);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(219, 39, 119, 0.92), rgba(147, 51, 234, 0.82) 46%, rgba(17, 24, 39, 0.55));
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    animation: fadeUp 0.8s ease both;
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -1px;
}

.hero p {
    max-width: 650px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.8;
}

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

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: transparent;
    opacity: 0.7;
}

.hero-dots button.is-active {
    width: 34px;
    background: #ffffff;
    opacity: 1;
}

.search-strip {
    margin-top: -42px;
    position: relative;
    z-index: 10;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    border: 1px solid #fce7f3;
}

.search-panel input,
.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid #fbcfe8;
    border-radius: 16px;
    padding: 13px 16px;
    outline: none;
    background: #ffffff;
    color: #374151;
}

.search-panel input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.12);
}

.section {
    padding: 72px 0;
}

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

.section-heading.center {
    display: block;
    text-align: center;
}

.section-heading h1,
.section-heading h2,
.page-title h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.section-heading p,
.page-title p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-heading.center p {
    margin: 0 auto;
}

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

.movie-card,
.category-card,
.info-card,
.detail-panel,
.player-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #fce7f3;
    box-shadow: 0 8px 25px rgba(17, 24, 39, 0.06);
}

.movie-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(219, 39, 119, 0.16);
}

.card-link {
    display: block;
    height: 100%;
}

.cover-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

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

.movie-card:hover .cover-wrap img,
.category-card:hover img,
.wide-card:hover img {
    transform: scale(1.08);
}

.cover-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.region-badge,
.type-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    color: #374151;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 18px;
}

.card-body h2,
.wide-body h2,
.category-card h2,
.detail-panel h2,
.info-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-meta,
.wide-meta,
.detail-meta {
    color: var(--pink);
    font-size: 13px;
    font-weight: 700;
}

.card-desc {
    min-height: 60px;
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span,
.meta-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #be185d;
    background: #fdf2f8;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

.horizontal-scroll {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 8px 2px 18px;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.wide-card {
    flex: 0 0 322px;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #fce7f3;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.wide-card a {
    display: block;
}

.wide-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.wide-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.wide-body {
    padding: 18px;
}

.wide-body p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 12px;
}

.wide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.category-card {
    position: relative;
    min-height: 260px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-card a {
    display: block;
    min-height: 260px;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.72));
}

.category-card-body {
    position: absolute;
    z-index: 2;
    inset: auto 0 0 0;
    color: #ffffff;
    padding: 22px;
}

.category-card-body p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
    margin: 0 0 14px;
}

.category-card-body span {
    display: inline-flex;
    font-weight: 800;
    color: #ffffff;
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rank-item a {
    display: grid;
    grid-template-columns: 40px 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #fce7f3;
}

.rank-item:last-child a {
    border-bottom: 0;
}

.rank-no {
    color: var(--pink);
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 56px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
    background: #fdf2f8;
}

.rank-title {
    min-width: 0;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-meta {
    color: var(--muted);
    font-size: 13px;
}

.info-card {
    padding: 24px;
}

.page-title {
    padding: 58px 0 28px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    margin: 8px 0 28px;
}

.hidden-card {
    display: none !important;
}

.empty-state {
    display: none;
    padding: 42px;
    text-align: center;
    color: var(--muted);
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #fce7f3;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--pink);
    font-weight: 700;
}

.detail-hero {
    padding: 48px 0 26px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

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

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
}

.detail-info .summary {
    margin: 18px 0;
    color: #374151;
    font-size: 18px;
    line-height: 1.9;
}

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

.player-section {
    padding: 24px 0 72px;
}

.player-card {
    padding: 18px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-overlay button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    padding: 15px 24px;
    font-size: 18px;
}

.detail-panel {
    padding: 28px;
    margin-top: 24px;
}

.detail-panel p {
    color: #374151;
    line-height: 2;
    margin: 0 0 18px;
}

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

.related-grid .movie-card .card-body h2 {
    font-size: 15px;
}

.related-grid .movie-card .card-desc {
    display: none;
}

.site-footer {
    margin-top: 42px;
    background: linear-gradient(135deg, #fdf2f8, #faf5ff);
    border-top: 1px solid #fce7f3;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 22px 28px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid li {
    margin: 8px 0;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px;
    border-top: 1px solid #fbcfe8;
    text-align: center;
}

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

@media (max-width: 1120px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .feature-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 360px;
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        min-height: 66px;
        padding: 0 16px;
    }

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

    .hero {
        height: 560px;
    }

    .hero p {
        font-size: 17px;
    }

    .search-panel,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 0;
    }

    .section-heading {
        display: block;
    }

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

    .card-body {
        padding: 14px;
    }

    .card-body h2 {
        font-size: 16px;
    }

    .card-desc {
        min-height: 44px;
        -webkit-line-clamp: 2;
    }

    .wide-card {
        flex-basis: 270px;
    }

    .detail-info .summary {
        font-size: 16px;
    }

    .detail-panel {
        padding: 20px;
    }

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

@media (max-width: 460px) {
    .movie-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .rank-item a {
        grid-template-columns: 34px 50px minmax(0, 1fr);
    }

    .rank-meta {
        display: none;
    }
}
