:root {
    --site-bg: #f8fafc;
    --site-text: #111827;
    --site-muted: #6b7280;
    --site-line: #e5e7eb;
    --site-card: #ffffff;
    --site-soft: #ecfdf5;
    --site-green: #059669;
    --site-green-dark: #047857;
    --site-teal: #0d9488;
    --site-orange: #f97316;
    --site-rose: #e11d48;
    --site-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
    --site-radius: 24px;
}

html {
    scroll-behavior: smooth;
}

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

img {
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--site-green), var(--site-teal));
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--site-green);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ecfdf5;
    color: var(--site-green);
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    font-weight: 700;
    color: #374151;
}

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

.main-shell {
    min-height: calc(100vh - 72px);
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.70) 42%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 70vh;
    margin: 0 auto;
    padding: 96px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    color: #a7f3d0;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
    max-width: 760px;
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero p {
    max-width: 720px;
    margin: 0 0 28px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-meta,
.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta {
    margin-bottom: 32px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #f9fafb;
    font-size: 13px;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
    color: #ffffff;
    background: var(--site-green);
    box-shadow: 0 16px 36px rgba(5, 150, 105, 0.32);
}

.btn-primary:hover {
    background: var(--site-green-dark);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

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

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

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

.section {
    padding: 74px 24px;
}

.section-soft {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 55%, #ecfeff 100%);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.section-kicker {
    margin: 0 0 9px;
    color: var(--site-green);
    font-size: 14px;
    font-weight: 900;
}

.section-desc {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--site-muted);
    line-height: 1.8;
    font-size: 16px;
}

.more-link {
    flex: 0 0 auto;
    color: var(--site-green);
    font-weight: 900;
}

.search-panel {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    margin: 28px 0 32px;
    border: 1px solid var(--site-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.site-search {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--site-line);
    border-radius: 16px;
    color: #111827;
    outline: none;
    font-size: 16px;
}

.site-search:focus {
    border-color: var(--site-green);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    background: var(--site-card);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(5, 150, 105, 0.28);
    box-shadow: var(--site-shadow);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #064e3b);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.92);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 15px;
}

.card-title {
    display: -webkit-box;
    min-height: 47px;
    margin: 0 0 9px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #111827;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 900;
}

.movie-card:hover .card-title {
    color: var(--site-green);
}

.card-summary {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 13px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.card-chip {
    padding: 4px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: var(--site-green);
    font-size: 12px;
    font-weight: 850;
}

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

.feature-card {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: 28px;
    color: #ffffff;
    box-shadow: var(--site-shadow);
}

.feature-card img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    transition: transform 700ms ease;
}

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

.feature-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 26px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 100%);
}

.feature-content h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 950;
}

.feature-content p {
    margin: 0;
    color: #e5e7eb;
    line-height: 1.7;
}

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

.category-card {
    min-height: 170px;
    padding: 24px;
    border: 1px solid rgba(5, 150, 105, 0.12);
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff, #ecfdf5);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

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

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

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

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

.rank-item {
    display: grid;
    grid-template-columns: 70px 88px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--site-line);
    border-radius: 22px;
    background: #ffffff;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.rank-no {
    color: var(--site-orange);
    font-size: 28px;
    font-weight: 950;
    text-align: center;
}

.rank-thumb {
    width: 88px;
    height: 118px;
    overflow: hidden;
    border-radius: 16px;
    background: #064e3b;
}

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

.rank-main h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 950;
}

.rank-main p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.7;
}

.rank-score {
    color: var(--site-green);
    font-weight: 950;
}

.page-hero {
    padding: 72px 24px 46px;
    background: linear-gradient(135deg, #064e3b, #0f766e 55%, #0e7490);
    color: #ffffff;
}

.page-hero .container {
    display: grid;
    gap: 14px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.1;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: #d1fae5;
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 750;
}

.breadcrumb a {
    color: var(--site-green);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    gap: 34px;
    align-items: start;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.site-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(5, 150, 105, 0.25), rgba(2, 6, 23, 0.55));
    cursor: pointer;
}

.player-wrap.is-playing .player-overlay {
    display: none;
}

.play-circle {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--site-green);
    font-size: 42px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
}

.detail-panel {
    padding: 30px;
    border: 1px solid var(--site-line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

.detail-panel h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.detail-panel p {
    color: #4b5563;
    line-height: 1.85;
}

.detail-tag {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.detail-text {
    margin-top: 34px;
    padding: 34px;
    border: 1px solid var(--site-line);
    border-radius: 28px;
    background: #ffffff;
}

.detail-text h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 950;
}

.detail-text p {
    margin: 0 0 24px;
    color: #374151;
    font-size: 17px;
    line-height: 1.95;
}

.site-footer {
    border-top: 1px solid var(--site-line);
    background: #ffffff;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #6b7280;
    font-size: 14px;
}

.footer-inner strong {
    color: #111827;
}

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

@media (max-width: 1180px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

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

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

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

    .rank-item {
        grid-template-columns: 46px 76px 1fr;
    }

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

@media (max-width: 680px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

    .brand {
        font-size: 22px;
    }

    .section {
        padding: 52px 16px;
    }

    .page-hero {
        padding: 52px 16px 36px;
    }

    .hero-content {
        padding: 78px 16px;
    }

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

    .card-body {
        padding: 12px;
    }

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

    .search-panel {
        padding: 10px;
    }

    .detail-panel,
    .detail-text {
        padding: 22px;
        border-radius: 22px;
    }

    .play-circle {
        width: 78px;
        height: 78px;
        font-size: 34px;
    }
}

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

    .rank-item {
        grid-template-columns: 42px 68px 1fr;
        gap: 12px;
    }

    .rank-thumb {
        width: 68px;
        height: 92px;
    }
}
