:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #102018;
    --muted: #647067;
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --green-100: #d1fae5;
    --line: rgba(6, 95, 70, 0.14);
    --shadow: 0 22px 60px rgba(2, 44, 34, 0.12);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f0fdf4 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(6, 95, 70, 0.96), rgba(4, 120, 87, 0.96), rgba(15, 118, 110, 0.96));
    box-shadow: 0 10px 35px rgba(6, 78, 59, 0.22);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1220px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: linear-gradient(135deg, #34d399, #ecfdf5);
    color: #064e3b;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 10px 28px rgba(16, 185, 129, 0.28);
}

.brand-mark.small {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.brand-name {
    font-size: 1.25rem;
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 999px;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #064e3b;
    background: rgba(236, 253, 245, 0.92);
    transform: translateY(-1px);
}

.nav-link.compact {
    font-size: 0.94rem;
    opacity: 0.92;
}

.nav-toggle {
    display: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 8px 12px;
    font-size: 1.2rem;
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.45), transparent 35%), linear-gradient(125deg, #052e27, #064e3b 55%, #0f766e);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
    transform: scale(1.03);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 24, 20, 0.9), rgba(6, 78, 59, 0.72) 45%, rgba(6, 95, 70, 0.18)), linear-gradient(0deg, rgba(3, 7, 18, 0.7), transparent 55%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1220px;
    margin: 0 auto;
    padding: 118px 22px 90px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 380px;
    align-items: center;
    gap: 52px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(167, 243, 208, 0.34);
    border-radius: 999px;
    background: rgba(6, 95, 70, 0.35);
    color: #a7f3d0;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero h1 {
    max-width: 790px;
    margin: 0 0 20px;
    font-size: clamp(2.35rem, 5.2vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.hero p {
    max-width: 740px;
    margin: 0 0 28px;
    font-size: clamp(1rem, 1.7vw, 1.32rem);
    line-height: 1.9;
    color: rgba(236, 253, 245, 0.9);
}

.hero-actions,
.filter-row,
.card-tags,
.meta-list,
.breadcrumbs,
.pagination-like,
.player-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 900;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #052e27;
    box-shadow: 0 16px 38px rgba(16, 185, 129, 0.32);
}

.btn-soft {
    color: #ecfdf5;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.hero-poster {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    min-height: 500px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(6, 78, 59, 0.35);
}

.hero-poster img {
    height: 500px;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 44, 34, 0.88), transparent 54%);
}

.hero-poster-meta {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 3;
}

.hero-poster-meta strong {
    display: block;
    font-size: 1.28rem;
    margin-bottom: 8px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    width: 28px;
    border-radius: 999px;
    background: #34d399;
}

.quick-search {
    max-width: 1220px;
    margin: -38px auto 34px;
    padding: 0 22px;
    position: relative;
    z-index: 10;
}

.quick-search-card {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.search-input,
.filter-select {
    width: 100%;
    border: 1px solid rgba(6, 95, 70, 0.18);
    background: #ffffff;
    border-radius: 999px;
    padding: 13px 18px;
    color: var(--text);
    outline: none;
    font-size: 1rem;
}

.search-input:focus,
.filter-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.page-hero,
.content-section,
.detail-layout,
.category-overview,
.search-panel {
    max-width: 1220px;
    margin: 0 auto;
    padding: 36px 22px;
}

.page-hero {
    padding-top: 58px;
}

.page-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: clamp(28px, 5vw, 58px);
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(52, 211, 153, 0.34), transparent 35%), linear-gradient(125deg, #052e27, #065f46, #0f766e);
    box-shadow: var(--shadow);
}

.page-hero-card h1,
.detail-title h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.06;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.page-hero-card p,
.detail-title p {
    max-width: 760px;
    margin: 0;
    color: rgba(236, 253, 245, 0.86);
    line-height: 1.85;
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(1.58rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
    font-weight: 950;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.section-more {
    color: var(--green-700);
    font-weight: 900;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(6, 78, 59, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 28px 60px rgba(6, 78, 59, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: linear-gradient(145deg, #064e3b, #0f766e);
}

.poster-link img {
    height: 100%;
    transition: transform 0.32s ease, opacity 0.22s ease;
}

.movie-card:hover img {
    transform: scale(1.05);
    opacity: 0.92;
}

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #052e27;
    background: rgba(236, 253, 245, 0.94);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #052e27;
    font-weight: 950;
    background: linear-gradient(135deg, #bbf7d0, #34d399);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

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

.movie-card h3 {
    margin: 0 0 9px;
    font-size: 1.04rem;
    line-height: 1.34;
    font-weight: 900;
}

.movie-card p {
    min-height: 3.25em;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.card-tags span,
.meta-list span,
.breadcrumbs a,
.breadcrumbs span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.card-tags span {
    padding: 5px 9px;
    color: var(--green-800);
    background: var(--green-100);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #789086;
    font-size: 0.82rem;
    font-weight: 700;
}

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

.category-card {
    display: block;
    min-height: 210px;
    padding: 26px;
    border-radius: 28px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(187, 247, 208, 0.34), transparent 35%), linear-gradient(135deg, #064e3b, #047857);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.category-card h2 {
    margin: 0 0 12px;
    font-size: 1.55rem;
    font-weight: 950;
}

.category-card p {
    margin: 0 0 24px;
    color: rgba(236, 253, 245, 0.86);
    line-height: 1.75;
}

.category-card strong {
    display: inline-flex;
    color: #064e3b;
    background: rgba(236, 253, 245, 0.9);
    border-radius: 999px;
    padding: 8px 13px;
}

.search-panel {
    padding-top: 8px;
}

.filter-row {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
    margin-bottom: 26px;
}

.filter-row .search-input {
    flex: 1 1 320px;
}

.filter-row .filter-select {
    flex: 0 1 180px;
}

.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.36), transparent 36%), linear-gradient(125deg, #052e27, #064e3b 50%, #0f766e);
}

.detail-title {
    max-width: 1220px;
    margin: 0 auto;
    padding: 42px 22px 34px;
}

.breadcrumbs {
    margin-bottom: 24px;
    color: rgba(236, 253, 245, 0.78);
}

.breadcrumbs a,
.breadcrumbs span {
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.1);
}

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

.detail-main,
.detail-side,
.text-panel {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.player-box {
    position: relative;
    background: #021713;
}

.player-box video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #021713;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    z-index: 2;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 23, 19, 0.86), rgba(2, 23, 19, 0.38));
}

.play-trigger {
    position: relative;
    z-index: 3;
    width: 86px;
    height: 86px;
    border: none;
    border-radius: 50%;
    color: #052e27;
    background: linear-gradient(135deg, #ecfdf5, #34d399);
    font-size: 2.1rem;
    cursor: pointer;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
}

.player-box.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.text-panel {
    margin-top: 24px;
    padding: 28px;
}

.text-panel h2,
.detail-side h2 {
    margin: 0 0 14px;
    font-size: 1.5rem;
    font-weight: 950;
}

.text-panel p {
    margin: 0 0 16px;
    color: #3a4d43;
    line-height: 1.9;
}

.detail-side {
    padding: 22px;
}

.side-poster {
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 3 / 4.1;
    background: linear-gradient(135deg, #064e3b, #0f766e);
    margin-bottom: 18px;
}

.side-poster img {
    height: 100%;
}

.meta-list {
    gap: 10px;
}

.meta-list span {
    padding: 8px 11px;
    color: var(--green-800);
    background: #ecfdf5;
    border: 1px solid var(--line);
}

.related-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.related-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(6, 95, 70, 0.1);
}

.related-item img {
    height: 96px;
    border-radius: 13px;
}

.related-item strong {
    display: block;
    margin-bottom: 6px;
    line-height: 1.35;
}

.related-item span {
    color: var(--muted);
    font-size: 0.85rem;
}

.pagination-like {
    justify-content: center;
    padding: 18px 0 46px;
}

.pagination-like a {
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--line);
    font-weight: 900;
    color: var(--green-800);
}

.site-footer {
    margin-top: 54px;
    color: #cbd5cf;
    background: linear-gradient(180deg, #12211b, #061711);
}

.footer-grid {
    max-width: 1220px;
    margin: 0 auto;
    padding: 48px 22px;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-grid h3 {
    color: #ffffff;
    margin: 0 0 14px;
}

.footer-grid p {
    margin: 12px 0 0;
    line-height: 1.8;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-grid a:hover {
    color: #6ee7b7;
}

.footer-bottom {
    max-width: 1220px;
    margin: 0 auto;
    padding: 18px 22px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3a0;
}

.hide-card {
    display: none;
}

@media (max-width: 1024px) {
    .site-nav {
        position: absolute;
        top: 68px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: rgba(6, 78, 59, 0.98);
        box-shadow: var(--shadow);
    }

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

    .nav-toggle {
        display: inline-flex;
    }

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

    .hero-poster {
        min-height: 360px;
    }

    .hero-poster img {
        height: 360px;
    }

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

@media (max-width: 760px) {
    .nav-shell {
        padding: 0 16px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .hero {
        min-height: 720px;
    }

    .hero-inner {
        padding-top: 88px;
        gap: 28px;
    }

    .quick-search-card {
        grid-template-columns: 1fr;
    }

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

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

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

    .movie-card p {
        min-height: auto;
    }

    .detail-title,
    .page-hero,
    .content-section,
    .detail-layout,
    .category-overview,
    .search-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .text-panel,
    .detail-side {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .category-overview {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 300px;
        height: 300px;
    }

    .play-trigger {
        width: 70px;
        height: 70px;
        font-size: 1.7rem;
    }
}
