* {
    box-sizing: border-box;
}

:root {
    --green-950: #052e16;
    --green-900: #064e3b;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-500: #22c55e;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;
    --yellow: #fde047;
    --orange: #f97316;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

html {
    scroll-behavior: smooth;
}

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

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

img,
video {
    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-800), var(--green-600), #0d9488);
    box-shadow: 0 12px 30px rgba(6, 78, 59, 0.24);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--green-700);
    background: #ffffff;
    box-shadow: inset 0 -4px 0 rgba(34, 197, 94, 0.18);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-links a,
.mobile-panel a {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-panel a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.nav-search {
    width: 285px;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.nav-search input {
    width: 100%;
    min-width: 0;
    color: #ffffff;
    border: 0;
    outline: 0;
    padding: 8px 10px 8px 14px;
    background: transparent;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.nav-search button {
    border: 0;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--green-700);
    background: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    padding: 9px 12px;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-panel.is-open {
    display: grid;
    gap: 6px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: var(--green-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.55fr);
    align-items: center;
    gap: 46px;
    padding: 80px max(32px, calc((100vw - 1200px) / 2)) 96px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.08);
    transform: scale(1.1);
    opacity: 0.42;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(253, 224, 71, 0.28), transparent 28%),
        linear-gradient(90deg, rgba(5, 46, 22, 0.96) 0%, rgba(6, 78, 59, 0.84) 48%, rgba(6, 95, 70, 0.46) 100%);
}

.hero-content,
.hero-cover {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #bbf7d0;
    font-weight: 700;
}

.hero h1 {
    max-width: 780px;
    margin: 0 0 20px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.8;
}

.hero-cover {
    justify-self: center;
    width: min(360px, 86vw);
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-cover:hover img {
    transform: scale(1.05);
}

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

.primary-btn,
.ghost-btn,
.soft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.2s ease;
}

.primary-btn {
    color: var(--green-700);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.primary-btn:hover {
    transform: translateY(-2px) scale(1.02);
    color: var(--green-800);
}

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

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.soft-btn {
    color: var(--green-700);
    background: var(--green-50);
}

.soft-btn:hover {
    background: var(--green-100);
}

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

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

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

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 72px 0;
}

.section.compact {
    padding: 48px 0;
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--green-700);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.9);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
}

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

.movie-card:hover .movie-poster img {
    transform: scale(1.06);
}

.movie-poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
}

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--green-700);
    background: rgba(255, 255, 255, 0.94);
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.rank-mark {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 38px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--green-900);
    background: var(--yellow);
    font-weight: 900;
    text-align: center;
}

.movie-info {
    padding: 16px;
}

.movie-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    color: var(--green-700);
    font-size: 13px;
    font-weight: 800;
}

.movie-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-info h3 a:hover {
    color: var(--green-700);
}

.movie-info p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--green-700);
    background: var(--green-50);
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 22% 20%, rgba(253, 224, 71, 0.22), transparent 26%),
        linear-gradient(125deg, var(--green-900), var(--green-700), #0d9488);
    padding: 78px 0;
}

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #bbf7d0;
    font-weight: 800;
}

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

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

.category-card {
    display: grid;
    gap: 16px;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: 0.22s ease;
}

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

.category-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background: var(--green-800);
}

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

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

.category-card h3 {
    margin: 5px 0 8px;
    font-size: 22px;
}

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

.filter-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.filter-box input,
.filter-box select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    background: var(--soft);
}

.filter-box input:focus,
.filter-box select:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.no-result {
    display: none;
    padding: 36px;
    text-align: center;
    border-radius: 24px;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
}

.no-result.is-visible {
    display: block;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--green-700);
}

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    background: var(--green-700);
}

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

.rank-item h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

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

.rank-heat {
    color: var(--orange);
    font-weight: 900;
    white-space: nowrap;
}

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

.player-card,
.detail-card,
.side-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.48);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.big-play {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--green-700);
    background: rgba(255, 255, 255, 0.94);
    font-size: 30px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.detail-card {
    padding: 28px;
    margin-top: 22px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-card p {
    margin: 0 0 18px;
    color: #374151;
    line-height: 1.9;
}

.meta-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.meta-table div {
    padding: 12px 14px;
    border-radius: 16px;
    color: #374151;
    background: var(--soft);
}

.meta-table strong {
    display: block;
    margin-bottom: 4px;
    color: var(--green-700);
}

.side-card {
    padding: 18px;
}

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

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

.side-movie img {
    width: 72px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: var(--green-700);
}

.side-movie h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.35;
}

.side-movie p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.site-footer {
    color: #ffffff;
    background: var(--green-950);
    margin-top: 72px;
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

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

.copyright {
    grid-column: 1 / -1;
    font-size: 14px;
}

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: 760px;
        padding-top: 56px;
    }

    .hero-cover {
        width: min(290px, 76vw);
        transform: none;
    }

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

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

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

    .hero-slide {
        gap: 28px;
        padding: 42px 16px 88px;
    }

    .section {
        padding: 52px 0;
    }

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

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

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

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

    .rank-heat {
        grid-column: 3;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-shell {
        width: min(100% - 20px, 1200px);
    }

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

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

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

    .meta-table {
        grid-template-columns: 1fr;
    }
}
