:root {
    --bg: #f3fbf8;
    --paper: #ffffff;
    --paper-soft: rgba(255, 255, 255, 0.88);
    --text: #12332c;
    --muted: #5c756f;
    --line: rgba(17, 94, 89, 0.13);
    --emerald: #059669;
    --teal: #0d9488;
    --cyan: #0891b2;
    --deep: #052e2b;
    --shadow: 0 18px 42px rgba(12, 74, 70, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 34rem),
        var(--bg);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #059669, #0d9488, #0891b2);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.25);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--emerald);
    background: #ffffff;
    border-radius: 999px;
    font-size: 18px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.brand-text {
    display: grid;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.03em;
}

.brand-text small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.desktop-nav a {
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #ffffff;
    border-color: #ffffff;
}

.top-search,
.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.top-search input,
.hero-search input {
    width: 210px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 8px 10px;
}

.top-search input::placeholder,
.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.top-search button,
.hero-search button {
    border: 0;
    border-radius: 999px;
    color: var(--emerald);
    background: #ffffff;
    padding: 8px 16px;
    font-weight: 700;
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
}

.mobile-nav.open {
    display: grid;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(5, 150, 105, 0.98), rgba(13, 148, 136, 0.94) 44%, rgba(8, 145, 178, 0.96)),
        #0f766e;
}

.hero-bg-glow {
    position: absolute;
    inset: auto -10% -35% 45%;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(18px);
}

.hero-slider {
    position: relative;
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 32px;
}

.hero-slide {
    min-height: 465px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: center;
    gap: 56px;
    opacity: 1;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-slide.is-hidden {
    position: absolute;
    inset: 72px 0 auto 0;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

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

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dcfce7;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.eyebrow {
    color: var(--teal);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 16px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.hero-tags {
    margin: 24px 0;
}

.hero-tags span,
.tag-line span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 11px;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
}

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

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

.primary-button {
    color: var(--emerald);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    height: 520px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08)),
        linear-gradient(135deg, #115e59, #0891b2);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    border-radius: 18px;
    padding: 14px 16px;
    color: #ffffff;
    background: rgba(4, 47, 46, 0.72);
    backdrop-filter: blur(14px);
}

.hero-bottom {
    position: relative;
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 46px;
    display: grid;
    grid-template-columns: minmax(300px, 520px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.hero-search {
    background: rgba(255, 255, 255, 0.16);
}

.hero-search input {
    width: 100%;
}

.hero-shortcuts,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-shortcuts a,
.footer-links a {
    border-radius: 999px;
    padding: 9px 13px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
}

.section-block {
    width: min(1320px, calc(100% - 32px));
    margin: 42px auto;
}

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

.section-heading h2,
.panel-heading h2,
.detail-article h2 {
    margin: 5px 0 0;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.2;
}

.section-heading > a,
.panel-link {
    color: var(--teal);
    font-weight: 800;
}

.filter-row {
    display: flex;
    gap: 10px;
    margin: 0 0 22px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-chip {
    border: 1px solid var(--line);
    color: var(--muted);
    background: #ffffff;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(90deg, var(--emerald), var(--cyan));
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 184, 166, 0.42);
    box-shadow: var(--shadow);
}

.poster-link,
.poster-shell {
    display: block;
}

.poster-shell {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(5, 150, 105, 0.45), rgba(8, 145, 178, 0.32)),
        #115e59;
}

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

.cover-img.is-hidden {
    display: none;
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 4px 9px;
    color: #ffffff;
    background: rgba(4, 47, 46, 0.76);
    font-size: 12px;
    font-weight: 800;
}

.card-content {
    padding: 14px;
}

.card-content h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.32;
}

.card-content h3 a:hover {
    color: var(--teal);
}

.card-meta,
.card-desc {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-line span {
    color: var(--teal);
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.16);
}

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

.rank-panel,
.rank-card,
.category-card,
.page-hero,
.detail-article,
.player-section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-soft);
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.08);
}

.rank-panel {
    position: sticky;
    top: 98px;
    padding: 24px;
}

.rank-panel ol,
.rank-list-large {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.rank-index {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    font-weight: 900;
}

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

.rank-title:hover {
    color: var(--teal);
}

.rank-meta {
    grid-column: 2;
    color: var(--muted);
    font-size: 13px;
}

.panel-link {
    width: 100%;
    margin-top: 18px;
    background: rgba(20, 184, 166, 0.12);
}

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

.category-card a {
    display: block;
    min-height: 210px;
    padding: 22px;
    border-radius: inherit;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.2), transparent 9rem),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.2), transparent 8rem),
        #ffffff;
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.category-samples {
    display: grid;
    gap: 7px;
    margin-top: 20px;
}

.category-samples a {
    min-height: auto;
    padding: 0;
    color: var(--teal);
    background: transparent;
    font-weight: 800;
}

.page-hero {
    width: min(1320px, calc(100% - 32px));
    margin: 36px auto 30px;
    padding: 42px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(5, 150, 105, 0.96), rgba(8, 145, 178, 0.94)),
        #0f766e;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.86);
}

.page-search {
    max-width: 560px;
    margin-top: 24px;
}

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

.ranking-page {
    margin-top: 22px;
}

.rank-list-large {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rank-card {
    padding: 0 18px 16px;
}

.rank-card p {
    margin: 12px 0 0 54px;
    color: var(--muted);
    font-size: 14px;
}

.detail-hero {
    width: min(1320px, calc(100% - 32px));
    margin: 36px auto;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(5, 150, 105, 0.42), rgba(8, 145, 178, 0.32)),
        #115e59;
    box-shadow: var(--shadow);
}

.detail-copy {
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 34px;
    padding: 42px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 18rem),
        linear-gradient(135deg, #059669, #0d9488 48%, #0891b2);
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.detail-line {
    font-size: 18px;
}

.detail-meta {
    margin: 22px 0 0;
}

.detail-tags span,
.detail-meta span {
    color: #ffffff;
}

.player-section {
    width: min(1320px, calc(100% - 32px));
    margin: 36px auto;
    padding: 24px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(4, 47, 46, 0.34), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.play-overlay span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--emerald);
    background: #ffffff;
    font-size: 32px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.play-overlay strong {
    font-size: 18px;
}

.play-overlay.is-hidden {
    display: none;
}

.detail-article {
    width: min(980px, calc(100% - 32px));
    padding: 34px;
}

.detail-article p {
    color: var(--muted);
    font-size: 17px;
}

.detail-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}

.detail-nav-links a {
    color: var(--teal);
    font-weight: 800;
}

.site-footer {
    margin-top: 58px;
    color: rgba(255, 255, 255, 0.86);
    background: #042f2e;
}

.footer-inner {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: flex;
    justify-content: space-between;
    gap: 26px;
}

.footer-inner p {
    max-width: 620px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.68);
}

.footer-links {
    justify-content: flex-end;
}

.is-filtered-out {
    display: none;
}

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

    .menu-button {
        display: block;
    }

    .top-search {
        margin-left: auto;
    }

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

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

    .hero-slide {
        grid-template-columns: 1fr 310px;
    }
}

@media (max-width: 900px) {
    .header-inner {
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .top-search {
        order: 3;
        width: 100%;
    }

    .top-search input {
        width: 100%;
    }

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

    .hero-slider {
        padding-top: 42px;
    }

    .hero-slide,
    .detail-hero,
    .split-layout,
    .hero-bottom {
        grid-template-columns: 1fr;
    }

    .hero-slide.is-hidden {
        inset: 42px 0 auto 0;
    }

    .hero-poster {
        height: 420px;
    }

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

    .rank-panel {
        position: static;
    }

    .detail-cover {
        max-width: 320px;
        margin: 0 auto;
    }

    .footer-inner {
        display: grid;
    }

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

@media (max-width: 560px) {
    .brand-text small {
        display: none;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

    .hero-poster {
        height: 330px;
    }

    .page-hero,
    .detail-copy,
    .detail-article,
    .player-section {
        padding: 22px;
        border-radius: 22px;
    }

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

    .rank-card p {
        margin-left: 0;
    }

    .detail-nav-links {
        display: grid;
    }
}
