:root {
    --green-950: #052e16;
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;
    --yellow: #facc15;
    --text: #17201b;
    --muted: #66736b;
    --line: #e3ebe5;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(6, 78, 59, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--green-700), var(--green-900));
    box-shadow: 0 14px 35px rgba(5, 46, 22, 0.2);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brand-icon {
    font-size: 28px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

.brand-name {
    font-size: 22px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    font-size: 15px;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #bbf7d0;
}

.top-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 245px;
}

.top-search input {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0 44px 0 18px;
    color: #ffffff;
    background: rgba(6, 78, 59, 0.72);
    outline: none;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(220, 252, 231, 0.78);
}

.top-search button {
    position: absolute;
    right: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    color: #bbf7d0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav nav {
    display: grid;
    gap: 10px;
    padding-top: 12px;
}

.mobile-search {
    display: flex;
    gap: 10px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 10px 14px;
    color: #ffffff;
    background: rgba(6, 78, 59, 0.72);
    outline: none;
}

.mobile-search button,
.btn,
.search-large button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.mobile-search button {
    padding: 10px 18px;
    color: var(--green-900);
    background: #ffffff;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, var(--green-900), var(--green-700) 52%, #14532d);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-slide {
    display: none;
    width: 100%;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 56px;
    align-items: center;
    animation: fadeIn 0.5s ease both;
}

.hero-slide.is-active {
    display: grid;
}

.hero-copy h1 {
    margin: 12px 0 20px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bbf7d0;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #064e3b;
    background: rgba(220, 252, 231, 0.92);
    font-size: 13px;
    font-weight: 800;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-light {
    color: var(--green-900);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.22);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-solid {
    color: #ffffff;
    background: linear-gradient(90deg, var(--green-700), var(--green-900));
    box-shadow: var(--shadow);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.16);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

.hero-poster img,
.poster-frame img,
.detail-poster img,
.ranking-poster img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster:hover {
    transform: rotate(0deg) scale(1.02);
    transition: transform 0.25s ease;
}

.poster-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: rgba(255, 255, 255, 0.86);
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.4), transparent 34%), linear-gradient(135deg, var(--green-700), var(--green-950));
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

img.image-missing {
    opacity: 0;
}

.hero-controls {
    position: absolute;
    left: 0;
    bottom: 66px;
    display: flex;
    gap: 10px;
}

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

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

.hero-glow {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.35;
    animation: pulse 4s ease-in-out infinite;
}

.hero-glow-a {
    top: 45px;
    left: 7%;
    width: 180px;
    height: 180px;
    background: #ffffff;
}

.hero-glow-b {
    right: 8%;
    bottom: 50px;
    width: 260px;
    height: 260px;
    background: var(--yellow);
    animation-delay: 1s;
}

.hero-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 3;
    height: 78px;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

.hero-wave path {
    fill: var(--green-50);
}

.category-strip {
    background: var(--green-50);
}

.category-strip-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
}

.category-strip-inner span {
    flex: 0 0 auto;
    color: var(--green-800);
    font-weight: 900;
}

.category-strip-inner a {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    color: var(--green-800);
    background: #ffffff;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(6, 95, 70, 0.08);
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 56px 0;
}

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

.section-head h2,
.page-hero h1,
.article-section h2,
.detail-copy h1 {
    margin: 0;
    color: var(--text);
    line-height: 1.18;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 38px);
}

.simple-head {
    align-items: center;
}

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

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

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

.card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 12px 30px rgba(6, 78, 59, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card-link:hover {
    border-color: #86efac;
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--green-900);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.card-meta {
    color: var(--green-700);
    font-size: 13px;
    font-weight: 900;
}

.card-body h3 {
    margin: 0;
    color: var(--text);
    font-size: 19px;
    line-height: 1.35;
}

.card-body p,
.page-hero p,
.rank-panel p,
.wide-cta p,
.article-section p,
.detail-line,
.footer-inner p,
.category-card p {
    color: var(--muted);
}

.card-body p {
    margin: 0;
    font-size: 14px;
}

.tag-row {
    margin-top: auto;
}

.tag-row span {
    color: var(--green-800);
    background: var(--green-100);
    font-size: 12px;
}

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

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

.compact-card .poster-frame {
    aspect-ratio: 16 / 11;
}

.compact-card .card-body h3 {
    font-size: 17px;
}

.rank-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 38px;
    align-items: center;
    padding: 34px;
    border-radius: 30px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.25), transparent 30%), linear-gradient(120deg, var(--green-800), var(--green-950));
    box-shadow: var(--shadow);
}

.rank-panel h2,
.wide-cta h2 {
    margin: 8px 0 14px;
    color: #ffffff;
    font-size: clamp(30px, 5vw, 44px);
}

.rank-panel p,
.wide-cta p {
    color: #dcfce7;
}

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

.rank-mini {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.rank-mini span {
    color: var(--yellow);
    font-weight: 900;
}

.rank-mini strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-mini em {
    color: #bbf7d0;
    font-size: 13px;
    font-style: normal;
}

.wide-cta {
    margin: 34px 0 70px;
    padding: 54px 30px;
    border-radius: 34px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(90deg, var(--green-700), var(--green-950));
    box-shadow: var(--shadow);
}

.wide-cta p {
    max-width: 760px;
    margin: 0 auto 24px;
}

.page-hero {
    margin: 34px 0 18px;
    padding: 42px;
    border-radius: 32px;
    background: radial-gradient(circle at 90% 10%, rgba(250, 204, 21, 0.22), transparent 30%), linear-gradient(120deg, #ffffff, var(--green-50));
    box-shadow: 0 16px 45px rgba(6, 78, 59, 0.1);
}

.page-hero h1 {
    margin-top: 8px;
    font-size: clamp(34px, 5vw, 52px);
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 17px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.filter-panel {
    padding: 28px 0 64px;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(6, 78, 59, 0.08);
}

.filter-row label {
    display: grid;
    gap: 8px;
    color: var(--green-800);
    font-weight: 900;
}

.filter-row input,
.filter-row select,
.search-large input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    outline: none;
    background: #ffffff;
}

.filter-row input:focus,
.filter-row select:focus,
.search-large input:focus {
    border-color: #86efac;
    box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.22);
}

.category-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 28px 0 70px;
}

.category-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(6, 78, 59, 0.08);
}

.category-card > a {
    display: block;
    padding: 28px;
}

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

.category-card h2 {
    margin: 8px 0 10px;
    font-size: 28px;
}

.category-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 18px 20px;
}

.category-card-grid .card-body p,
.category-card-grid .tag-row,
.category-card-grid .card-meta {
    display: none;
}

.category-card-grid .card-body {
    padding: 12px;
}

.category-card-grid .card-body h3 {
    font-size: 14px;
}

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-item a {
    display: grid;
    grid-template-columns: 70px 142px 1fr;
    gap: 20px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(6, 78, 59, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.ranking-number {
    color: var(--green-700);
    font-size: 30px;
    font-weight: 900;
}

.ranking-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background: var(--green-900);
}

.ranking-copy h2 {
    margin: 0 0 8px;
    font-size: 23px;
}

.ranking-copy p {
    margin: 0 0 8px;
    color: var(--muted);
}

.search-panel {
    padding: 18px 0 8px;
}

.search-large {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(6, 78, 59, 0.08);
}

.search-large input {
    border-radius: 999px;
    padding: 14px 18px;
}

.search-large button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--green-700), var(--green-900));
}

.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at 82% 16%, rgba(250, 204, 21, 0.24), transparent 28%), linear-gradient(120deg, var(--green-900), var(--green-700));
}

.detail-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 480px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 46px;
    align-items: center;
    padding: 48px 0;
}

.detail-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    background: var(--green-900);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.detail-copy .crumbs {
    color: #dcfce7;
}

.detail-copy .crumbs a {
    color: #ffffff;
}

.detail-copy h1 {
    margin-top: 18px;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 64px);
}

.detail-line {
    max-width: 760px;
    color: #dcfce7;
    font-size: 20px;
}

.detail-meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 12px;
    margin: 26px 0;
    padding: 0;
    list-style: none;
}

.detail-meta-list li {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.detail-meta-list span {
    display: block;
    color: #bbf7d0;
    font-size: 13px;
    font-weight: 900;
}

.detail-meta-list strong {
    color: #ffffff;
}

.detail-tags span {
    color: var(--green-900);
    background: #ffffff;
}

.detail-shell {
    margin-top: 12px;
}

.player-section {
    padding-bottom: 30px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(5, 46, 22, 0.18), rgba(0, 0, 0, 0.6));
    cursor: pointer;
}

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

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    color: var(--green-900);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    font-size: 30px;
}

.article-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 0 42px;
}

.article-section h2 {
    margin: 28px 0 12px;
    font-size: 28px;
}

.article-section p {
    margin: 0;
    font-size: 18px;
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 34px;
}

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.28;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.42;
    }
}

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

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

    .hero-slide {
        grid-template-columns: 1fr 270px;
        gap: 26px;
    }

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

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

@media (max-width: 820px) {
    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 56px 0 96px;
    }

    .hero-slide,
    .two-column,
    .rank-panel,
    .category-overview,
    .footer-inner,
    .detail-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-controls {
        bottom: 38px;
    }

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

    .filter-row,
    .search-large,
    .ranking-item a,
    .detail-meta-list {
        grid-template-columns: 1fr;
    }

    .ranking-poster {
        width: 100%;
    }

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

@media (max-width: 540px) {
    .nav-wrap,
    .mobile-nav,
    .page-shell,
    .hero-inner,
    .category-strip-inner,
    .detail-inner,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand-name {
        font-size: 19px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .hero-actions,
    .category-strip-inner {
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

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

    .section {
        padding: 38px 0;
    }

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

    .page-hero {
        padding: 28px;
    }

    .player-shell {
        border-radius: 18px;
    }
}
