/* Site theme generated from the uploaded candy / gummy visual system. */
:root {
    --strawberry-50: #fff1f3;
    --strawberry-100: #ffe4e9;
    --strawberry-300: #ffa3b5;
    --strawberry-400: #ff6b8e;
    --strawberry-500: #ff3366;
    --strawberry-600: #ed1659;
    --candy-50: #fef1f9;
    --candy-100: #fee5f5;
    --candy-400: #ff6bc4;
    --candy-500: #ff33aa;
    --jelly-400: #2dd4bf;
    --gummy-400: #facc15;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #ffe4e9;
    --shadow-soft: 0 2px 15px -3px rgba(255, 51, 102, 0.3), 0 10px 20px -2px rgba(255, 51, 102, 0.15);
    --shadow-gummy: 0 8px 30px rgba(255, 51, 102, 0.25), inset 0 2px 10px rgba(255, 255, 255, 0.5);
    --shadow-float: 0 20px 60px -15px rgba(255, 51, 102, 0.4);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, var(--strawberry-50), var(--candy-50) 52%, #fef2f2);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.glass-effect {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.gummy-card {
    overflow: hidden;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gummy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}

.gummy-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 1.5rem;
    padding: 0.75rem 1.35rem;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gummy-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--strawberry-500), var(--strawberry-400), var(--strawberry-300));
    box-shadow: var(--shadow-gummy);
}

.ghost-button {
    color: var(--strawberry-600);
    background: #ffffff;
    border: 1px solid var(--strawberry-100);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--strawberry-500), var(--candy-500), var(--strawberry-300));
    box-shadow: var(--shadow-gummy);
}

.logo-text {
    font-size: 1.55rem;
    background: linear-gradient(135deg, var(--strawberry-600), var(--candy-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--strawberry-600);
    background: var(--strawberry-50);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: var(--strawberry-600);
}

.hero-carousel {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slides,
.hero-slide,
.hero-bg,
.hero-bg::after {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-bg::after {
    content: "";
    background:
        radial-gradient(circle at 70% 25%, rgba(255, 107, 196, 0.28), transparent 36%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.55) 48%, rgba(17, 24, 39, 0.2)),
        linear-gradient(0deg, rgba(255, 51, 102, 0.15), transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 118px;
    max-width: 720px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--strawberry-600);
    background: var(--strawberry-50);
    border: 1px solid var(--strawberry-100);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-kicker {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.24);
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

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

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--strawberry-600);
    background: var(--strawberry-50);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

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

.hero-search-card {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 54px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2rem;
    padding: 18px;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-gummy);
}

.hero-search label,
.filter-search label {
    display: block;
    margin-bottom: 8px;
    color: var(--strawberry-600);
    font-weight: 800;
}

.hero-search div {
    display: flex;
    gap: 10px;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    min-height: 48px;
    border: 1px solid var(--strawberry-100);
    border-radius: 1rem;
    padding: 0 14px;
    outline: none;
    color: var(--text);
    background: #ffffff;
}

.hero-search input {
    flex: 1;
}

.hero-search button {
    min-width: 110px;
    border: 0;
    border-radius: 1rem;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--strawberry-500), var(--candy-500));
}

.hero-category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 14px;
    padding-bottom: 4px;
}

.category-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--strawberry-600);
    background: var(--strawberry-50);
    font-weight: 700;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    right: max(16px, calc((100% - 1180px) / 2));
    bottom: 168px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

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

.section {
    padding: 72px 0;
}

.section-soft {
    background: rgba(255, 255, 255, 0.4);
}

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

.section-heading h2,
.page-hero h1,
.detail-main-copy h1,
.ranking-copy h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
}

.section-heading p,
.page-hero p,
.ranking-copy p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 170px;
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--strawberry-100), var(--candy-100));
}

.movie-card-horizontal .movie-cover {
    aspect-ratio: auto;
    min-height: 100%;
}

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

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

.movie-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 3rem;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.movie-duration,
.rank-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 4px 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    font-size: 0.78rem;
    font-weight: 800;
}

.rank-badge {
    right: auto;
    left: 12px;
    background: linear-gradient(135deg, var(--strawberry-500), var(--candy-500));
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--strawberry-600);
}

.movie-card-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 8px 0 12px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 0.86rem;
}

.movie-meta span,
.movie-meta a {
    border-radius: 999px;
    padding: 4px 8px;
    background: #f9fafb;
}

.movie-meta-strong {
    justify-content: space-between;
    margin: 10px 0;
    color: var(--strawberry-600);
    font-weight: 800;
}

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

.category-overview-card {
    position: relative;
    min-height: 220px;
    padding: 18px;
    color: #ffffff;
}

.category-overview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.category-overview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.22));
}

.category-overview-card span,
.category-overview-card h3,
.category-overview-card p {
    position: relative;
    z-index: 2;
}

.category-overview-card span {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 800;
}

.category-overview-card h3 {
    margin: 92px 0 8px;
    font-size: 1.55rem;
}

.category-overview-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: center;
}

.ranking-list {
    padding: 14px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 44px 64px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
}

.ranking-item:hover {
    background: var(--strawberry-50);
}

.ranking-item img {
    width: 64px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--strawberry-500), var(--candy-500));
    font-weight: 900;
}

.ranking-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
}

.ranking-score {
    color: var(--strawberry-600);
    font-weight: 900;
}

.page-hero {
    padding: 74px 0 56px;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 107, 196, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 241, 243, 0.7));
}

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

.breadcrumb a {
    color: var(--strawberry-600);
    font-weight: 800;
}

.breadcrumb-light {
    color: rgba(255, 255, 255, 0.78);
}

.breadcrumb-light a {
    color: #ffffff;
}

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

.category-detail-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

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

.category-thumb-stack img {
    width: 100%;
    height: 88px;
    border-radius: 18px;
    object-fit: cover;
}

.category-count {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--strawberry-600);
    background: var(--strawberry-50);
    font-weight: 800;
}

.category-detail-card h2 {
    margin: 14px 0 8px;
}

.category-detail-card p {
    color: var(--muted);
    line-height: 1.7;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(4, minmax(130px, 0.45fr)) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
}

.result-line {
    margin: 10px 0 24px;
    color: var(--muted);
    font-weight: 700;
}

.result-line strong {
    color: var(--strawberry-600);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-bg,
.detail-bg::after {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) saturate(1.1);
    transform: scale(1.04);
}

.detail-bg::after {
    content: "";
    background:
        radial-gradient(circle at 78% 10%, rgba(255, 107, 196, 0.26), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.7));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    padding: 74px 0;
}

.detail-hero-inner .breadcrumb {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 2rem;
    object-fit: cover;
    box-shadow: var(--shadow-gummy);
}

.detail-main-copy h1 {
    color: #ffffff;
}

.detail-main-copy p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    line-height: 1.85;
}

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

.detail-score-row span {
    border-radius: 999px;
    padding: 7px 11px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.detail-tags {
    margin-bottom: 26px;
}

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

.player-card {
    padding: 16px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #000000;
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.32), rgba(0, 0, 0, 0.32));
}

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

.player-overlay span {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    color: var(--strawberry-600);
    background: rgba(255, 255, 255, 0.92);
    font-size: 2rem;
}

.player-meta {
    padding: 16px 4px 4px;
}

.player-meta h2 {
    margin: 0 0 8px;
}

.player-meta p {
    margin: 6px 0;
    color: var(--muted);
}

.detail-side {
    padding: 24px;
}

.detail-side h2 {
    margin: 0 0 18px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.detail-side dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    font-weight: 700;
}

.prose-card {
    padding: 28px;
}

.prose-card h2 {
    margin: 0 0 12px;
    font-size: 1.8rem;
}

.prose-card p {
    margin: 0 0 28px;
    color: #374151;
    line-height: 1.95;
    white-space: pre-line;
}

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

.site-footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), #ffffff);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 30px;
    padding: 46px 0;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--strawberry-600);
}

.footer-grid p,
.footer-grid a {
    display: block;
    margin: 8px 0;
    color: var(--muted);
    line-height: 1.7;
}

.back-top {
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    color: #ffffff;
    background: var(--strawberry-500);
}

.footer-bottom {
    padding: 18px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--line);
}

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

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

    .featured-grid,
    .category-detail-grid,
    .ranking-page-list,
    .ranking-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .detail-hero-inner {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .site-nav-wrap {
        min-height: 66px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 1.5rem;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-soft);
    }

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

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

    .hero-content {
        padding-top: 88px;
    }

    .hero-search div,
    .section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-dots {
        right: 22px;
        bottom: 224px;
    }

    .movie-grid,
    .category-overview-grid,
    .featured-grid,
    .ranking-page-list {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal,
    .category-detail-card,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal .movie-cover {
        aspect-ratio: 16 / 10;
    }

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

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

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