:root {
    --green-950: #052e16;
    --green-900: #14532d;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;
    --yellow: #fde68a;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--green-50), #ffffff 340px);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--green-700), var(--green-950));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(6, 78, 59, 0.28);
}

.nav-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-icon {
    font-size: 28px;
}

.brand-text {
    font-size: 21px;
    letter-spacing: 0.02em;
}

.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
}

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

.nav-links a:hover,
.mobile-menu a:hover {
    color: var(--green-100);
    opacity: 1;
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    background: rgba(5, 46, 22, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    overflow: hidden;
}

.nav-search input,
.mobile-search input {
    width: 210px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 10px 14px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: #bbf7d0;
}

.nav-search button,
.mobile-search button {
    border: 0;
    color: var(--green-950);
    background: #bbf7d0;
    padding: 10px 16px;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-size: 26px;
}

.mobile-menu {
    display: none;
    padding: 16px 22px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 46, 22, 0.98);
}

.mobile-menu.is-open {
    display: grid;
    gap: 14px;
}

.mobile-search {
    width: 100%;
}

.mobile-search input {
    flex: 1;
    width: auto;
}

.hero-carousel {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background: var(--green-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 46, 22, 0.98), rgba(21, 128, 61, 0.78) 52%, rgba(5, 46, 22, 0.78)),
        radial-gradient(circle at 72% 20%, rgba(253, 230, 138, 0.22), transparent 32%);
}

.hero-glow {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    filter: blur(46px);
    opacity: 0.42;
}

.hero-glow-one {
    width: 240px;
    height: 240px;
    top: 46px;
    left: 6%;
    background: rgba(255, 255, 255, 0.5);
}

.hero-glow-two {
    width: 320px;
    height: 320px;
    right: 8%;
    bottom: 20px;
    background: rgba(253, 230, 138, 0.55);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    min-height: 540px;
    margin: 0 auto;
    padding: 70px 22px 86px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    align-items: center;
    gap: 54px;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 12px;
    color: #bbf7d0;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    max-width: 880px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    max-width: 720px;
    margin: 24px 0 0;
    color: #dcfce7;
    font-size: clamp(17px, 2.2vw, 24px);
    line-height: 1.75;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--green-900);
    background: #dcfce7;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-more,
.play-trigger,
.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
    color: var(--green-950);
    background: #ffffff;
    padding: 0 24px;
    box-shadow: 0 18px 38px rgba(255, 255, 255, 0.18);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.1);
    padding: 0 22px;
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.play-trigger:hover,
.filter-button:hover {
    transform: translateY(-2px);
}

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

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: #ffffff;
    background: rgba(5, 46, 22, 0.78);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.hero-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    padding: 0;
}

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

.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 22px 70px;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 22px;
}

.content-section.alt {
    max-width: none;
    background: #f9fafb;
}

.content-section.alt > .section-heading,
.content-section.alt > .movie-grid,
.content-section.alt > .rank-grid,
.content-section.alt > .category-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.section-heading p:not(.eyebrow) {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-more,
.filter-button {
    color: var(--green-800);
    background: var(--green-100);
    padding: 0 18px;
}

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

.movie-card {
    min-width: 0;
}

.card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card-link:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.2);
}

.card-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--green-100), #ffffff);
}

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

.card-link:hover .card-poster img {
    transform: scale(1.09);
}

.card-badge,
.card-play {
    position: absolute;
    border-radius: 999px;
    color: #ffffff;
    background: var(--green-700);
    box-shadow: 0 10px 20px rgba(5, 46, 22, 0.18);
    font-weight: 800;
}

.card-badge {
    top: 12px;
    left: 12px;
    padding: 6px 11px;
    font-size: 12px;
}

.card-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(5, 46, 22, 0.82);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    color: #111827;
}

.card-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 12px;
}

.tag-row span {
    padding: 5px 9px;
    font-size: 11px;
}

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

.category-tile {
    min-height: 180px;
    border-radius: 24px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--green-700), var(--green-950));
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.category-tile::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -50px;
    bottom: -50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-tile p {
    margin: 0 0 18px;
    color: #dcfce7;
    line-height: 1.7;
}

.category-tile span {
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 120px 1fr;
    gap: 16px;
    align-items: center;
    border-radius: 20px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--green-600), var(--green-900));
    font-size: 22px;
    font-weight: 900;
}

.rank-item img {
    width: 120px;
    height: 82px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--green-100);
}

.rank-item h3 {
    margin: 0 0 8px;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.breadcrumb {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

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

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

.player-panel,
.detail-panel,
.sidebar-panel {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.player-wrap {
    position: relative;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-trigger {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 154px;
    color: var(--green-950);
    border: 0;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.play-trigger:hover {
    transform: translate(-50%, -52%);
}

.player-note {
    padding: 14px 18px;
    color: #4b5563;
    background: #f9fafb;
    font-size: 14px;
}

.detail-panel {
    margin-top: 24px;
    padding: 26px;
}

.detail-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--muted);
}

.detail-intro {
    color: var(--green-900);
    background: var(--green-50);
    border-left: 5px solid var(--green-600);
    border-radius: 16px;
    padding: 18px;
    line-height: 1.9;
    font-size: 17px;
}

.detail-panel h2,
.sidebar-panel h2 {
    margin: 26px 0 12px;
    font-size: 24px;
}

.detail-panel p {
    color: #374151;
    line-height: 2;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sidebar-panel {
    padding: 20px;
}

.side-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.side-card:last-child {
    border-bottom: 0;
}

.side-card img {
    width: 92px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--green-100);
}

.side-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.side-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-bottom: 26px;
    border-radius: 24px;
    padding: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.filter-panel input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    padding: 12px 18px;
}

.filter-button {
    border: 0;
}

.search-empty {
    border-radius: 20px;
    padding: 28px;
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.pagination-note {
    margin: 28px 0 0;
    color: var(--muted);
    text-align: center;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(90deg, #111827, #1f2937);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 22px 26px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-inner h2 {
    margin: 0 0 10px;
    color: #ffffff;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 14px 18px;
}

.footer-links a:hover {
    color: #ffffff;
}

.copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px 34px;
    color: #9ca3af;
    font-size: 14px;
}

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

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

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

    .hero-poster {
        display: none;
    }

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

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

@media (max-width: 760px) {
    .brand-text {
        font-size: 18px;
    }

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

    .hero-content {
        padding-top: 56px;
    }

    .section-heading,
    .footer-inner,
    .filter-panel {
        display: block;
    }

    .section-more,
    .filter-button {
        margin-top: 16px;
    }

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

    .rank-item {
        grid-template-columns: 52px 96px 1fr;
    }

    .rank-item img {
        width: 96px;
        height: 70px;
    }

    .filter-panel input {
        margin-bottom: 12px;
    }
}
