:root {
    --mint: #98d8c8;
    --mint-strong: #7bc8b4;
    --mint-deep: #5ba896;
    --paper: #ffffff;
    --soft: #f0f9f7;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(31, 41, 55, 0.1);
    --shadow: 0 24px 70px rgba(31, 41, 55, 0.12);
    --shadow-soft: 0 12px 36px rgba(31, 41, 55, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--soft) 0%, #ffffff 36%, #ffffff 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--mint), var(--mint-strong));
    box-shadow: 0 10px 32px rgba(91, 168, 150, 0.28);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--mint-deep);
    background: #ffffff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon,
.footer-brand:hover .brand-icon {
    transform: scale(1.08);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 700;
}

.desktop-nav a {
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    opacity: 1;
    transform: translateY(-1px);
}

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

.nav-search input,
.mobile-search input,
.page-filter input {
    min-width: 250px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 12px 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.nav-search button,
.mobile-search button,
.page-filter button,
.btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button {
    color: var(--mint-deep);
    background: #ffffff;
}

.nav-search button:hover,
.mobile-search button:hover,
.btn:hover {
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.mobile-panel {
    display: none;
    padding: 14px 16px 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

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

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.mobile-panel a:hover {
    background: rgba(152, 216, 200, 0.14);
}

.hero-section {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(115deg, var(--mint) 0%, var(--mint-strong) 45%, var(--mint-deep) 100%);
}

.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(56px);
}

.hero-glow-one {
    top: -110px;
    left: -80px;
}

.hero-glow-two {
    right: -90px;
    bottom: -120px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.72fr);
    align-items: center;
    gap: 46px;
    min-height: 620px;
    padding: 72px 0 110px;
}

.hero-copy h1 {
    margin: 0 0 24px;
    font-size: clamp(44px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.hero-copy h1 strong {
    font-size: 1.08em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.75;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--mint-deep);
    background: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 800;
}

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

.btn-light {
    color: var(--mint-deep);
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(31, 41, 55, 0.16);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--mint-strong), var(--mint-deep));
    box-shadow: 0 12px 30px rgba(91, 168, 150, 0.25);
}

.hero-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-mini-links a {
    border-radius: 999px;
    padding: 8px 13px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
}

.hero-showcase {
    position: relative;
    min-height: 475px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 260px 1fr;
    overflow: hidden;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #d7f5ee, #9ddccb);
}

.hero-card-body {
    padding: 26px;
    color: var(--ink);
}

.hero-card-body .eyebrow {
    margin-bottom: 10px;
    color: #ffffff;
    background: var(--mint-strong);
}

.hero-card-body h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.hero-card-body p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.hero-tags,
.detail-meta,
.movie-meta-line,
.movie-tags,
.detail-tags,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-tags span,
.movie-tags span,
.detail-tags span,
.movie-meta-line span,
.detail-meta span,
.filter-chips button {
    border: 0;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--mint-deep);
    background: rgba(152, 216, 200, 0.18);
    font-size: 13px;
    font-weight: 700;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: -30px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, 0.46);
}

.hero-dots button.is-active {
    width: 30px;
    border-radius: 999px;
    background: #ffffff;
}

.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    background: linear-gradient(0deg, var(--soft), transparent);
}

.featured-lift {
    position: relative;
    z-index: 3;
    margin-top: -84px;
}

.panel,
.content-card,
.player-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.feature-panel {
    padding: clamp(20px, 4vw, 34px);
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-title span {
    display: inline-grid;
    min-width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: var(--mint-deep);
    background: rgba(152, 216, 200, 0.22);
    font-weight: 900;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.04em;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    position: relative;
    display: grid;
    overflow: hidden;
    border-radius: 20px;
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(31, 41, 55, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(31, 41, 55, 0.16);
}

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e2fbf5, #9bdaca);
}

.movie-card-large .movie-cover {
    aspect-ratio: 16 / 7;
}

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

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 58%);
    opacity: 0.88;
}

.movie-type,
.movie-duration,
.movie-play {
    position: absolute;
    z-index: 2;
}

.movie-type {
    left: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: var(--mint-strong);
    font-size: 12px;
    font-weight: 800;
}

.movie-duration {
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    font-size: 12px;
    font-weight: 800;
}

.movie-play {
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    color: var(--mint-deep);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.movie-info h3 {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.35;
}

.movie-info p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-stats {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #87909c;
    font-size: 13px;
}

.movie-card-horizontal {
    grid-template-columns: 225px minmax(0, 1fr);
}

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

.movie-card-horizontal .movie-info {
    align-content: center;
}

.soft-section {
    background: linear-gradient(90deg, rgba(152, 216, 200, 0.11), rgba(123, 200, 180, 0.12));
}

.horizontal-list {
    display: grid;
    gap: 18px;
}

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

.category-card,
.category-overview {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px;
    min-height: 190px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--mint-strong), var(--mint-deep));
    box-shadow: var(--shadow-soft);
}

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

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

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

.category-card span,
.category-overview h2 {
    display: block;
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p,
.category-overview p {
    margin: 0;
    line-height: 1.7;
    opacity: 0.9;
}

.category-overview {
    color: var(--ink);
    background: #ffffff;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 18px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #e2fbf5, #9bdaca);
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 48px 80px minmax(0, 1fr) 58px;
    align-items: center;
    gap: 14px;
    border-radius: 18px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(31, 41, 55, 0.14);
}

.rank-index {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--mint-strong), var(--mint-deep));
    font-weight: 900;
}

.rank-row img {
    width: 80px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #e2fbf5, #9bdaca);
}

.rank-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.rank-main strong,
.rank-main em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.rank-score {
    color: #f59e0b;
    font-size: 20px;
    font-weight: 900;
    text-align: right;
}

.page-shell {
    padding-bottom: 30px;
}

.page-hero {
    margin-top: 36px;
    border-radius: 30px;
    padding: clamp(34px, 5vw, 64px);
    color: #ffffff;
    background: linear-gradient(120deg, var(--mint), var(--mint-deep));
    box-shadow: var(--shadow-soft);
}

.simple-hero h1,
.category-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 60px);
    letter-spacing: -0.06em;
}

.simple-hero p,
.category-hero p {
    max-width: 820px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.75;
}

.page-filter {
    align-items: stretch;
    max-width: 680px;
}

.page-filter input {
    flex: 1;
    min-width: 0;
}

.page-filter button {
    color: var(--mint-deep);
    background: #ffffff;
}

.filter-chips {
    margin-top: 18px;
}

.filter-chips button {
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.filter-chips button:hover,
.filter-chips button.is-active {
    background: rgba(255, 255, 255, 0.3);
}

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

.detail-page {
    background: linear-gradient(180deg, #ebfaf6 0%, #ffffff 34%);
}

.detail-hero {
    padding: 48px 0 40px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--mint), var(--mint-deep));
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #e2fbf5, #9bdaca);
}

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

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 850px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    line-height: 1.75;
}

.detail-meta span,
.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.detail-tags {
    margin-top: 16px;
}

.player-section {
    margin-top: -28px;
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #111827;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--mint-deep);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: grid;
    width: clamp(72px, 10vw, 112px);
    height: clamp(72px, 10vw, 112px);
    place-items: center;
    border-radius: 50%;
    padding-left: 6px;
    color: var(--mint-deep);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
    font-size: clamp(30px, 5vw, 48px);
}

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

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

.content-card {
    padding: clamp(22px, 3vw, 34px);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.content-card p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.site-footer p,
.site-footer a {
    display: block;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
}

.site-footer a:hover {
    color: var(--mint);
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 16px;
    color: rgba(255, 255, 255, 0.62);
    text-align: center;
}

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-inner,
    .detail-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        min-height: 510px;
    }

    .grid-three,
    .grid-four,
    .category-grid,
    .category-overview-grid,
    .compact-rank {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 680px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 20px;
    }

    .hero-section,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 44px 0 100px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .hero-showcase {
        min-height: 500px;
    }

    .hero-slide {
        grid-template-rows: 220px 1fr;
    }

    .featured-lift {
        margin-top: -58px;
    }

    .grid-three,
    .grid-four,
    .category-grid,
    .category-overview-grid,
    .compact-rank {
        grid-template-columns: 1fr;
    }

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

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

    .rank-row {
        grid-template-columns: 40px 68px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }

    .page-filter,
    .mobile-search {
        flex-direction: column;
        align-items: stretch;
    }

    .page-hero {
        padding: 30px 20px;
    }

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

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