:root {
    --site-pink: #f472b6;
    --site-purple: #a78bfa;
    --site-deep: #111827;
    --site-muted: #6b7280;
    --site-soft: #fdf2f8;
    --site-card: #ffffff;
    --site-line: #f3e8ff;
    --site-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

body {
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 36%, #faf7ff 100%);
    color: var(--site-deep);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(31, 41, 55, 0.12);
    backdrop-filter: blur(14px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--site-pink), var(--site-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-pink), var(--site-purple));
    border-radius: 999px;
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(244, 114, 182, 0.28);
}

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

.desktop-nav a,
.mobile-panel a {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover {
    color: #ec4899;
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.page-search {
    width: 260px;
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff7fb;
    color: #374151;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search:focus {
    border-color: var(--site-pink);
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.16);
}

.header-search button,
.mobile-search button,
.clear-filter,
.section-more,
.primary-btn,
.ghost-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-btn,
.section-more {
    color: #ffffff;
    background: linear-gradient(90deg, var(--site-pink), var(--site-purple));
    box-shadow: 0 10px 24px rgba(244, 114, 182, 0.24);
}

.header-search button:hover,
.mobile-search button:hover,
.primary-btn:hover,
.section-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(168, 85, 247, 0.28);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ec4899;
    background: #fdf2f8;
    font-size: 22px;
}

.mobile-panel {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
    display: grid;
    gap: 12px;
}

.mobile-panel[hidden] {
    display: none;
}

.page-main {
    padding-top: 68px;
}

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

.hero-carousel {
    position: relative;
    height: 620px;
    overflow: hidden;
    margin-bottom: 58px;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img,
.detail-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade,
.detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.62) 46%, rgba(17, 24, 39, 0.18) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 74px;
    width: min(1280px, 100%);
    transform: translateX(-50%);
    padding: 0 24px;
    color: #ffffff;
}

.eyebrow {
    margin-bottom: 10px;
    color: #ec4899;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero-summary {
    max-width: 740px;
    margin-bottom: 20px;
    font-size: clamp(17px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.9);
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.tag-row span {
    background: #fdf2f8;
    color: #db2777;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.content-section,
.category-strip {
    margin-bottom: 64px;
}

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

.section-heading h2,
.page-hero h1,
.detail-intro h1 {
    color: #1f2937;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 900;
}

.section-heading p,
.page-hero p,
.footer-inner p,
.category-overview-card p,
.category-card p {
    color: var(--site-muted);
}

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

.movie-card {
    min-width: 0;
    background: var(--site-card);
    border: 1px solid rgba(251, 207, 232, 0.72);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(244, 114, 182, 0.55);
    box-shadow: var(--site-shadow);
}

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

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

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

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

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

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

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 40px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #fb7185, #a855f7);
    border-radius: 999px;
    font-size: 15px;
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.28);
}

.movie-info {
    padding: 18px;
}

.movie-info h3 {
    margin-bottom: 9px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-info p {
    min-height: 44px;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #f9a8d4;
}

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 310px);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scrollbar-width: none;
}

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

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

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

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

.category-card,
.category-overview-card a {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(251, 207, 232, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card span,
.category-card p,
.category-overview-card h2,
.category-overview-card p,
.category-overview-card span {
    display: block;
    padding-left: 18px;
    padding-right: 18px;
}

.category-card span {
    padding-top: 16px;
    font-size: 20px;
    font-weight: 850;
    color: #1f2937;
}

.category-card p {
    padding-top: 6px;
    padding-bottom: 18px;
    font-size: 14px;
}

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

.page-hero {
    position: relative;
    margin-bottom: 42px;
    padding: 74px 0 66px;
    overflow: hidden;
}

.soft-hero {
    background: radial-gradient(circle at 12% 10%, rgba(244, 114, 182, 0.22), transparent 34%), linear-gradient(135deg, #fff7fb, #f5f3ff);
}

.ranking-hero {
    color: #ffffff;
    background: radial-gradient(circle at 14% 20%, rgba(244, 114, 182, 0.48), transparent 28%), linear-gradient(135deg, #111827, #312e81 58%, #831843);
}

.ranking-hero h1,
.ranking-hero p {
    color: #ffffff;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.breadcrumbs a:hover {
    color: #ec4899;
}

.filter-panel {
    margin-bottom: 26px;
    padding: 20px;
    border: 1px solid rgba(251, 207, 232, 0.8);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.filter-search {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.page-search {
    flex: 1;
    width: auto;
}

.clear-filter {
    color: #db2777;
    background: #fdf2f8;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 9px 14px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-weight: 750;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--site-pink), var(--site-purple));
    transform: translateY(-1px);
}

.category-list {
    margin-bottom: 64px;
}

.category-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 168px;
    overflow: hidden;
}

.category-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-overview-card h2 {
    padding-top: 18px;
    color: #1f2937;
    font-size: 22px;
    font-weight: 900;
}

.category-overview-card p {
    padding-top: 6px;
    padding-bottom: 10px;
}

.category-overview-card span {
    padding-bottom: 20px;
    color: #ec4899;
    font-weight: 800;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    filter: saturate(1.1);
}

.detail-head {
    position: relative;
    z-index: 2;
    padding-top: 64px;
    padding-bottom: 64px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

.detail-intro h1 {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 68px);
}

.detail-one-line {
    max-width: 820px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    line-height: 1.7;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 760;
    backdrop-filter: blur(10px);
}

.detail-content {
    margin-top: -52px;
    position: relative;
    z-index: 4;
}

.player-section,
.detail-copy,
.detail-side {
    border: 1px solid rgba(251, 207, 232, 0.78);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--site-shadow);
}

.player-section {
    padding: 22px;
    margin-bottom: 28px;
}

.player-section h2,
.detail-text-block h2,
.detail-side h2 {
    margin-bottom: 16px;
    color: #1f2937;
    font-size: 24px;
    font-weight: 900;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.24), rgba(0, 0, 0, 0.52));
    z-index: 2;
}

.player-cover span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ec4899;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    font-size: 38px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

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

.detail-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    margin-bottom: 58px;
}

.detail-copy,
.detail-side {
    padding: 26px;
}

.detail-text-block + .detail-text-block {
    margin-top: 26px;
}

.detail-text-block p {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

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

.detail-side dt {
    color: #9d174d;
    font-size: 13px;
    font-weight: 900;
}

.detail-side dd {
    color: #374151;
    font-weight: 700;
}

.site-footer {
    margin-top: 68px;
    padding: 38px 0;
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 28px;
}

.footer-inner p {
    margin-top: 12px;
    color: #d1d5db;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-content: start;
}

.footer-links a {
    color: #fce7f3;
    font-weight: 700;
}

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

.movie-item.hidden {
    display: none;
}

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

.fade-in {
    animation: fadeIn 0.55s ease both;
}

@media (max-width: 1180px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .header-search {
        display: none;
    }

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

@media (max-width: 900px) {
    .hero-carousel {
        height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .section-heading,
    .filter-search,
    .footer-inner {
        display: block;
    }

    .section-more,
    .clear-filter {
        margin-top: 14px;
    }

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

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

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

@media (max-width: 620px) {
    .header-inner {
        height: 62px;
        padding: 0 16px;
    }

    .site-logo {
        font-size: 20px;
    }

    .page-main {
        padding-top: 62px;
    }

    .main-container,
    .hero-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-carousel {
        height: 540px;
        margin-bottom: 38px;
    }

    .hero-content {
        bottom: 56px;
    }

    .hero-actions {
        display: grid;
    }

    .movie-grid,
    .large-grid,
    .category-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-scroll {
        grid-auto-columns: minmax(250px, 86vw);
    }

    .page-hero {
        padding: 50px 0 44px;
    }

    .detail-head {
        padding-top: 42px;
    }

    .detail-content {
        margin-top: -28px;
    }
}
