:root {
    --color-lotus-50: #f4f9f7;
    --color-lotus-100: #dceee7;
    --color-lotus-200: #b9ddcf;
    --color-lotus-500: #498874;
    --color-lotus-600: #396d5d;
    --color-lotus-700: #2f574c;
    --color-mist-50: #f8fafb;
    --color-mist-100: #f0f4f7;
    --color-mist-200: #e1e9ef;
    --color-mist-400: #a8bccf;
    --color-mist-500: #8099b3;
    --color-mist-600: #5f7a95;
    --color-mist-700: #4a5f78;
    --color-mist-800: #3d4f64;
    --color-mist-900: #354354;
    --shadow-soft: 0 20px 55px rgba(45, 75, 90, 0.14);
    --shadow-card: 0 16px 40px rgba(32, 58, 72, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-mist-900);
    background: linear-gradient(180deg, var(--color-mist-50), #ffffff 38%, var(--color-lotus-50));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(225, 233, 239, 0.78);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(100% - 32px, var(--max-width));
    min-height: 74px;
    margin: 0 auto;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--color-mist-900);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-lotus-500), var(--color-mist-700));
    box-shadow: 0 12px 26px rgba(73, 136, 116, 0.3);
}

.brand-text {
    white-space: nowrap;
}

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

.nav-link,
.mobile-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--color-mist-700);
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--color-lotus-700);
    background: var(--color-lotus-100);
}

.header-search {
    position: relative;
    width: 240px;
}

.global-search-input,
.page-filter-input,
.filter-select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--color-mist-200);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--color-mist-800);
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.global-search-input:focus,
.page-filter-input:focus,
.filter-select:focus {
    border-color: var(--color-lotus-500);
    box-shadow: 0 0 0 4px rgba(73, 136, 116, 0.12);
    background: #ffffff;
}

.global-search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(360px, 88vw);
    max-height: 420px;
    overflow: auto;
    border: 1px solid rgba(225, 233, 239, 0.9);
    border-radius: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}

.global-search-results.is-open {
    display: grid;
    gap: 8px;
}

.search-result-link {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--color-mist-700);
}

.search-result-link:hover {
    background: var(--color-mist-100);
}

.search-result-link strong {
    color: var(--color-mist-900);
}

.search-result-link span {
    font-size: 13px;
    color: var(--color-mist-500);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--color-mist-100);
}

.mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--color-mist-800);
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid var(--color-mist-200);
    border-radius: 22px;
    background: #ffffff;
}

.mobile-search-wrap {
    position: relative;
    margin-top: 10px;
}

main {
    width: 100%;
}

.hero-section {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--color-mist-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(73, 136, 116, 0.38), transparent 30%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.52) 50%, rgba(0, 0, 0, 0.28));
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: end;
    gap: 42px;
    width: min(100% - 32px, var(--max-width));
    min-height: 70vh;
    margin: 0 auto;
    padding: 130px 0 70px;
    color: #ffffff;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    color: var(--color-lotus-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.75;
}

.hero-tags,
.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--color-lotus-700);
    background: var(--color-lotus-100);
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

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

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

.primary-button {
    padding: 0 24px;
    color: #ffffff;
    background: var(--color-lotus-500);
    box-shadow: 0 16px 34px rgba(73, 136, 116, 0.34);
}

.primary-button:hover {
    transform: translateY(-2px);
    background: var(--color-lotus-600);
    box-shadow: 0 22px 42px rgba(73, 136, 116, 0.4);
}

.ghost-button {
    min-height: 46px;
    padding: 0 20px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.text-link {
    min-height: 40px;
    padding: 0 16px;
    color: var(--color-lotus-700);
    background: var(--color-lotus-100);
}

.text-link:hover {
    color: #ffffff;
    background: var(--color-lotus-500);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

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

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

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

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

.section-block,
.category-large-grid,
.breadcrumb,
.detail-layout,
.detail-info {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
}

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

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

.section-heading h2,
.page-hero h1,
.detail-title-row h1,
.story-block h2 {
    margin: 0;
    color: var(--color-mist-900);
    letter-spacing: -0.03em;
}

.section-heading h2 {
    font-size: clamp(26px, 4vw, 42px);
}

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

.category-tile,
.category-card-large,
.movie-card,
.rank-item,
.story-block,
.detail-side-card,
.detail-info,
.filter-panel,
.page-hero {
    border: 1px solid rgba(225, 233, 239, 0.9);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-card);
}

.category-tile {
    display: grid;
    gap: 12px;
    min-height: 178px;
    padding: 22px;
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover {
    transform: translateY(-4px);
    border-color: rgba(73, 136, 116, 0.45);
    box-shadow: 0 24px 55px rgba(32, 58, 72, 0.16);
}

.category-tile span {
    color: var(--color-lotus-700);
    font-weight: 900;
}

.category-tile strong {
    color: var(--color-mist-900);
    line-height: 1.45;
}

.category-tile small {
    color: var(--color-mist-600);
    line-height: 1.7;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-mist-100), var(--color-lotus-100));
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.movie-score,
.movie-duration {
    position: absolute;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(10px);
}

.movie-score {
    top: 10px;
    left: 10px;
}

.movie-duration {
    right: 10px;
    bottom: 10px;
}

.movie-card-body {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.movie-card-body h3 {
    margin: 0;
    color: var(--color-mist-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body p {
    margin: 0;
    color: var(--color-mist-600);
    font-size: 14px;
    line-height: 1.7;
}

.movie-meta-line,
.rank-meta,
.detail-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--color-mist-500);
    font-size: 13px;
}

.rank-section {
    padding-top: 34px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 86px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-lg);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-lotus-500), var(--color-mist-700));
}

.rank-poster {
    overflow: hidden;
    border-radius: 14px;
}

.rank-poster img {
    width: 86px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.rank-content h3 {
    margin: 0 0 8px;
    color: var(--color-mist-900);
    font-size: 18px;
}

.rank-content p {
    margin: 0 0 10px;
    color: var(--color-mist-600);
    line-height: 1.65;
}

.page-hero {
    display: grid;
    align-items: end;
    min-height: 330px;
    margin-top: 26px;
    padding: 58px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 88% 20%, rgba(73, 136, 116, 0.26), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 247, 0.9));
}

.page-hero h1 {
    font-size: clamp(36px, 7vw, 68px);
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--color-mist-600);
    font-size: 18px;
    line-height: 1.8;
}

.category-large-grid {
    display: grid;
    gap: 20px;
    padding: 46px 0 70px;
}

.category-card-large {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    padding: 24px;
    border-radius: var(--radius-xl);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.category-card-copy h2 {
    margin: 0 0 14px;
    color: var(--color-mist-900);
    font-size: 32px;
}

.category-card-copy p {
    margin: 0 0 24px;
    color: var(--color-mist-600);
    line-height: 1.8;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: var(--color-mist-50);
}

.mini-card img {
    width: 62px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.mini-card strong,
.mini-card small {
    display: block;
}

.mini-card strong {
    color: var(--color-mist-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-card small {
    margin-top: 6px;
    color: var(--color-mist-500);
    font-size: 12px;
    line-height: 1.5;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, 190px);
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 24px;
}

.empty-state {
    display: none;
    margin: 24px 0 0;
    padding: 20px;
    border-radius: 18px;
    color: var(--color-mist-600);
    background: var(--color-mist-100);
    text-align: center;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 24px 0 16px;
    color: var(--color-mist-500);
    font-size: 14px;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: var(--shadow-soft);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    width: 100%;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.24));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    color: var(--color-lotus-700);
    font-size: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.play-layer strong {
    max-width: min(680px, 88%);
    font-size: clamp(24px, 4vw, 44px);
    line-height: 1.25;
    text-align: center;
}

.detail-side-card {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-xl);
}

.detail-side-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    object-fit: cover;
}

.full-button {
    width: 100%;
}

.small-button {
    min-height: 40px;
    padding: 0 18px;
}

.detail-info {
    margin-top: 24px;
    padding: 30px;
    border-radius: var(--radius-xl);
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.detail-title-row h1 {
    font-size: clamp(32px, 6vw, 58px);
    line-height: 1.08;
}

.detail-rating {
    display: grid;
    place-items: center;
    min-width: 98px;
    min-height: 98px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-lotus-500), var(--color-mist-700));
}

.detail-rating strong {
    font-size: 32px;
    line-height: 1;
}

.detail-rating span {
    font-size: 12px;
}

.detail-meta-grid {
    gap: 10px;
    margin-bottom: 18px;
    font-size: 15px;
}

.detail-meta-grid span {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--color-mist-100);
}

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

.story-block {
    margin-top: 18px;
    padding: 24px;
    border-radius: var(--radius-lg);
}

.story-block h2 {
    margin-bottom: 12px;
    font-size: 24px;
}

.story-block p {
    margin: 0;
    color: var(--color-mist-700);
    font-size: 17px;
    line-height: 1.9;
}

.related-section {
    padding-top: 34px;
}

.site-footer {
    margin-top: 48px;
    color: rgba(255, 255, 255, 0.76);
    background: linear-gradient(135deg, var(--color-mist-900), #1f2c38);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 40px 0;
}

.footer-brand {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 20px;
}

.site-footer p {
    max-width: 620px;
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 10px;
    max-width: 520px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.22);
}

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

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

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

    .detail-side-card {
        display: none;
    }
}

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

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

    .mobile-nav.is-open {
        display: grid;
        gap: 8px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 110px;
    }

    .hero-poster {
        display: none;
    }

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

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

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

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

    .footer-links {
        justify-content: start;
    }
}

@media (max-width: 620px) {
    .header-inner {
        min-height: 66px;
    }

    .brand-text {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-section,
    .hero-content {
        min-height: 76vh;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

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

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

    .movie-grid,
    .category-tile-grid,
    .compact-grid,
    .home-rank-list,
    .filter-panel,
    .category-card-preview {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 44px 74px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .rank-poster img {
        width: 74px;
    }

    .page-hero {
        min-height: 260px;
        padding: 34px 24px;
    }

    .player-shell,
    .movie-video {
        min-height: 280px;
    }

    .detail-info {
        padding: 22px;
    }

    .detail-title-row {
        display: grid;
    }

    .detail-rating {
        min-width: 86px;
        min-height: 86px;
    }
}
