:root {
    --site-primary: #267f56;
    --site-primary-soft: #edf8f1;
    --site-accent: #cf6913;
    --site-ink: #2d2d2d;
    --site-muted: #6d6a64;
    --site-paper: #fafaf9;
    --site-card: #ffffff;
    --site-shadow: 0 24px 60px rgba(22, 35, 28, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--site-paper);
    color: var(--site-ink);
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(38, 127, 86, 0.18), transparent 36rem),
        linear-gradient(180deg, #ffffff 0%, #fafaf9 46%, #f7f3eb 100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(250, 250, 249, 0.86);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #174f36;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 22px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #267f56, #cf6913);
    box-shadow: 0 12px 24px rgba(38, 127, 86, 0.26);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 10px 14px;
    color: #3d3d3d;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #ffffff;
    background: var(--site-primary);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    border: 0;
    background: #ffffff;
    color: var(--site-primary);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 540px;
    max-height: 820px;
    overflow: hidden;
    background: #1e2d26;
}

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

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

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

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18)),
        radial-gradient(circle at 74% 28%, rgba(207, 105, 19, 0.36), transparent 22rem),
        radial-gradient(circle at 18% 72%, rgba(38, 127, 86, 0.45), transparent 22rem);
}

.hero-content {
    position: relative;
    height: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.6fr);
    gap: 46px;
    align-items: center;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 14px;
    color: #e8fff1;
}

.hero-title {
    margin: 18px 0 18px;
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.hero-text {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), #39a56f);
    box-shadow: 0 16px 28px rgba(38, 127, 86, 0.32);
}

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

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--site-shadow);
    aspect-ratio: 4 / 5;
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(1.2deg);
}

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

.hero-poster-info {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    border-radius: 20px;
    padding: 16px;
    color: #ffffff;
    background: rgba(12, 18, 15, 0.72);
    backdrop-filter: blur(12px);
}

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

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

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

.page-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 20px 72px;
}

.section-block {
    margin: 54px 0;
}

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

.section-title {
    margin: 0;
    color: #1f332a;
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 800;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--site-muted);
    line-height: 1.8;
}

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(38, 127, 86, 0.12);
    border-radius: 24px;
    background: var(--site-card);
    box-shadow: 0 14px 38px rgba(42, 54, 48, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(38, 127, 86, 0.34);
    box-shadow: 0 24px 58px rgba(42, 54, 48, 0.15);
}

.movie-cover {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, #1f332a, #267f56);
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.32s ease;
}

.movie-card:hover .movie-cover img {
    transform: scale(1.045);
}

.movie-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(38, 127, 86, 0.9);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
}

.movie-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 17px;
}

.movie-title {
    margin: 0;
    color: #1f332a;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 12px;
    color: #5b625d;
    font-size: 13px;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f0f7f3;
}

.movie-summary {
    flex: 1;
    color: #66635e;
    font-size: 14px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-link {
    margin-top: 14px;
    color: var(--site-primary);
    font-weight: 800;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-chip,
.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #20553d;
    background: #edf8f1;
    font-weight: 700;
    font-size: 13px;
}

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

.category-card {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 8rem),
        linear-gradient(135deg, #267f56, #174f36);
    box-shadow: 0 18px 40px rgba(38, 127, 86, 0.22);
    transition: transform 0.2s ease;
}

.category-card:nth-child(even) {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.24), transparent 8rem),
        linear-gradient(135deg, #cf6913, #7d4114);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 76% 24%, rgba(207, 105, 19, 0.42), transparent 22rem),
        linear-gradient(135deg, #173528, #267f56 56%, #1e2d26);
}

.page-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 20px 76px;
}

.page-hero h1 {
    margin: 0 0 16px;
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 800;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(42, 54, 48, 0.09);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(38, 127, 86, 0.16);
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    color: #243d31;
    background: #fafaf9;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--site-primary);
    box-shadow: 0 0 0 3px rgba(38, 127, 86, 0.14);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(38, 127, 86, 0.12);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(42, 54, 48, 0.07);
}

.rank-num {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #267f56, #cf6913);
    font-weight: 900;
}

.rank-cover {
    width: 86px;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    overflow: hidden;
    background: #e6efe9;
}

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

.rank-title {
    margin: 0 0 7px;
    font-size: 17px;
    color: #203b2f;
    font-weight: 900;
}

.rank-meta {
    color: #6e716c;
    font-size: 13px;
    line-height: 1.7;
}

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

.detail-card,
.side-card {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(42, 54, 48, 0.1);
    overflow: hidden;
}

.detail-content {
    padding: 26px;
}

.breadcrumb {
    margin-bottom: 18px;
    color: #66706a;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--site-primary);
    font-weight: 700;
}

.detail-title {
    margin: 0 0 14px;
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: clamp(32px, 4.4vw, 54px);
    line-height: 1.12;
    color: #1f332a;
    font-weight: 900;
}

.detail-lead {
    margin: 0 0 20px;
    color: #5f655f;
    line-height: 1.85;
    font-size: 17px;
}

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

.info-box {
    padding: 14px;
    border-radius: 16px;
    background: #f1f8f4;
}

.info-box b {
    display: block;
    margin-bottom: 5px;
    color: #1e4f37;
}

.info-box span {
    color: #5f655f;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 26px 26px 0 0;
    background: #111b16;
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18)),
        radial-gradient(circle, rgba(38, 127, 86, 0.32), transparent 18rem);
}

.play-button {
    position: relative;
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(38, 127, 86, 0.92);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
    cursor: pointer;
    font-size: 30px;
}

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

.article-block {
    margin-top: 26px;
}

.article-block h2 {
    margin: 0 0 14px;
    color: #1f332a;
    font-size: 24px;
    font-weight: 900;
}

.article-block p {
    color: #4f5751;
    line-height: 1.95;
    font-size: 16px;
}

.side-card {
    padding: 18px;
}

.side-title {
    margin: 0 0 16px;
    color: #1f332a;
    font-size: 20px;
    font-weight: 900;
}

.side-movie {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(38, 127, 86, 0.1);
}

.side-movie:first-of-type {
    border-top: 0;
}

.side-movie img {
    width: 74px;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    object-fit: cover;
    background: #e7efe9;
}

.side-movie strong {
    display: block;
    color: #1f332a;
    line-height: 1.35;
}

.side-movie span {
    display: block;
    margin-top: 5px;
    color: #6e716c;
    font-size: 13px;
    line-height: 1.55;
}

.site-footer {
    margin-top: 40px;
    color: #d8eade;
    background: #263c31;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 26px;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
}

.footer-inner p,
.footer-inner a {
    color: #d8eade;
    line-height: 1.8;
}

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

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 20px;
    text-align: center;
    color: #a9c9b7;
}

.hidden-by-filter {
    display: none !important;
}

@media (max-width: 980px) {
    .hero-content,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 760px;
        height: auto;
    }

    .hero-slide {
        position: relative;
        min-height: 760px;
        display: none;
    }

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

    .hero-content {
        padding-top: 86px;
        padding-bottom: 96px;
    }

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

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 720px) {
    .nav-wrap {
        min-height: 64px;
    }

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

    .nav-links {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 22px 54px rgba(0, 0, 0, 0.14);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        border-radius: 14px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-poster {
        transform: none;
    }

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

    .movie-grid,
    .category-card-grid,
    .rank-list,
    .filter-panel,
    .info-grid {
        grid-template-columns: 1fr;
    }

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