:root {
    --mint: #98d8c8;
    --mint-strong: #7bc8b4;
    --mint-dark: #5ba896;
    --mint-soft: #f0f9f7;
    --ink: #1f2937;
    --muted: #667085;
    --line: #e5eef0;
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(31, 41, 55, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, var(--mint-soft) 0%, #ffffff 42%, var(--mint-soft) 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--mint) 0%, var(--mint-strong) 100%);
    box-shadow: 0 10px 30px rgba(91, 168, 150, 0.24);
}

.nav-shell {
    width: min(1200px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--mint-dark);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #ffffff;
    font-weight: 700;
}

.nav-links a {
    opacity: 0.96;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    border-radius: 14px;
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(120deg, var(--mint) 0%, var(--mint-strong) 48%, var(--mint-dark) 100%);
}

.hero-slider,
.hero-slide {
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s 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.06);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.28), transparent 34%),
        linear-gradient(90deg, rgba(26, 90, 78, 0.88), rgba(26, 90, 78, 0.48), rgba(26, 90, 78, 0.2));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    padding: 96px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.hero-content h1,
.hero-content h2 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 2vw, 22px);
}

.hero-title-line {
    font-weight: 800;
}

.eyebrow,
.section-heading span,
.page-hero span,
.category-preview-head span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 12px;
    color: var(--mint-dark);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

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

.primary-button {
    color: var(--mint-dark);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.22);
}

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

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

.small-button {
    min-height: 38px;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--mint), var(--mint-strong));
    box-shadow: none;
}

.hero-poster {
    position: absolute;
    right: max(42px, calc((100vw - 1200px) / 2));
    bottom: 64px;
    z-index: 3;
    width: min(30vw, 340px);
    min-width: 240px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.25);
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(12, 60, 52, 0.4);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span,
.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    color: var(--mint-dark);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
}

.hero-poster span {
    width: 72px;
    height: 72px;
    font-size: 26px;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.section-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.search-panel {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
    align-items: center;
    gap: 24px;
    margin-top: -54px;
    padding: 30px;
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.search-panel h2 {
    margin: 0 0 6px;
    font-size: 30px;
}

.search-panel p {
    margin: 0;
    color: var(--muted);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    background: #f7fbfa;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.search-box input {
    width: 100%;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
}

.page-search {
    max-width: 520px;
    margin-top: 26px;
    background: rgba(255, 255, 255, 0.92);
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.compact-heading h2 {
    font-size: 28px;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    padding: 22px;
    color: #ffffff;
    background: var(--mint-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 34px rgba(91, 168, 150, 0.18);
}

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.04), rgba(20, 82, 73, 0.78));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
}

.category-tile span {
    display: block;
    margin-top: 92px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(229, 238, 240, 0.92);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 58px rgba(31, 41, 55, 0.14);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--mint-soft);
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.55));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
    opacity: 1;
}

.poster-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.poster-type {
    left: 12px;
    top: 12px;
    background: linear-gradient(90deg, var(--mint), var(--mint-strong));
}

.rank-badge {
    right: 12px;
    top: 12px;
    background: rgba(31, 41, 55, 0.78);
}

.play-icon {
    z-index: 3;
    width: 58px;
    height: 58px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
    padding: 18px;
}

.card-category {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 9px;
    color: var(--mint-dark);
    background: rgba(152, 216, 200, 0.18);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h2 {
    display: -webkit-box;
    min-height: 54px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #73808c;
    font-size: 13px;
}

.card-meta span {
    padding: 3px 8px;
    background: #f3f7f8;
    border-radius: 999px;
}

.movie-card-compact {
    flex-direction: row;
    min-height: 152px;
}

.movie-card-compact .poster-wrap {
    width: 42%;
    min-width: 132px;
    aspect-ratio: auto;
}

.movie-card-compact .card-body {
    flex: 1;
}

.movie-card-compact h2 {
    min-height: auto;
    font-size: 17px;
}

.movie-card-compact p {
    min-height: 42px;
}

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

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.center-action .primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--mint), var(--mint-strong));
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.25), transparent 26%),
        linear-gradient(90deg, var(--mint), var(--mint-strong));
}

.page-hero .section-shell {
    padding: 78px 0;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 60px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.preview-stack {
    display: grid;
    gap: 34px;
}

.category-preview {
    padding: 30px;
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
}

.category-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.category-preview-head h2 {
    margin: 0;
    font-size: 26px;
}

.category-preview-head a {
    align-self: center;
    color: var(--mint-dark);
    font-weight: 900;
}

.empty-state {
    display: none;
    margin-top: 28px;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border-radius: var(--radius-lg);
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
    display: inline-flex;
    justify-content: center;
    color: var(--mint-dark);
    font-size: 28px;
    font-weight: 900;
}

.rank-row img {
    width: 86px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-main {
    display: grid;
    gap: 4px;
}

.rank-main strong {
    font-size: 18px;
}

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

.rank-side {
    color: var(--muted);
    font-weight: 700;
}

.detail-hero {
    padding: 36px 0 72px;
}

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

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

.breadcrumb a {
    color: var(--mint-dark);
    font-weight: 800;
}

.player-card,
.detail-card,
.detail-sidebar {
    background: #ffffff;
    border: 1px solid rgba(229, 238, 240, 0.94);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

.video-shell {
    position: relative;
    background: #020617;
}

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

.video-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.3)),
        rgba(0, 0, 0, 0.16);
    border: 0;
    cursor: pointer;
}

.video-start span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    color: var(--mint-dark);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.video-start.is-hidden {
    display: none;
}

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

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

.detail-title-row h1 {
    margin: 14px 0 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
}

.chip-line,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-line span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: var(--mint-dark);
    background: rgba(152, 216, 200, 0.18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-weight: 800;
}

.detail-card section {
    margin-top: 24px;
}

.detail-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.detail-card p {
    margin: 0;
    color: #44515f;
    font-size: 17px;
}

.detail-sidebar {
    position: sticky;
    top: 92px;
    overflow: hidden;
    padding: 18px;
}

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

.detail-sidebar h2 {
    margin: 18px 0 8px;
    font-size: 24px;
}

.detail-sidebar p {
    margin: 0 0 18px;
    color: var(--muted);
}

.side-links {
    display: grid;
    gap: 10px;
}

.side-links a {
    padding: 10px 12px;
    color: var(--mint-dark);
    background: rgba(152, 216, 200, 0.14);
    border-radius: 12px;
    font-weight: 800;
}

.site-footer {
    color: #d9e6e4;
    background: linear-gradient(180deg, #1f2937, #101820);
}

.footer-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}

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

.footer-brand p {
    max-width: 420px;
    margin: 0;
    color: #aebfbd;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #aebfbd;
}

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

.footer-copy {
    padding: 22px 16px;
    text-align: center;
    color: #9baca9;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
    .hero-poster {
        opacity: 0.35;
        right: 22px;
    }

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

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

    .detail-sidebar {
        position: static;
    }

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

@media (max-width: 760px) {
    .nav-shell {
        height: auto;
        min-height: 64px;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .brand {
        font-size: 20px;
    }

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

    .nav-links {
        display: none;
        width: 100%;
        padding: 12px;
        background: rgba(255, 255, 255, 0.16);
        border-radius: 18px;
    }

    .nav-links.is-open {
        display: grid;
        gap: 12px;
    }

    .hero,
    .hero-slider,
    .hero-slide,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding: 72px 0 92px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 40px;
    }

    .hero-poster {
        display: none;
    }

    .hero-control {
        top: auto;
        bottom: 70px;
        transform: none;
    }

    .search-panel {
        grid-template-columns: 1fr;
        margin-top: -38px;
        padding: 22px;
    }

    .section-shell {
        padding: 44px 0;
    }

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

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

    .movie-card-compact .poster-wrap {
        width: 100%;
        aspect-ratio: 16 / 10;
    }

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

    .rank-side {
        grid-column: 3;
    }

    .detail-card,
    .category-preview {
        padding: 20px;
    }

    .detail-title-row,
    .category-preview-head {
        flex-direction: column;
    }

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