:root {
    --bg: #f7faf8;
    --surface: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --green: #16a34a;
    --green-dark: #15803d;
    --green-soft: #dcfce7;
    --teal: #0f766e;
    --orange: #f97316;
    --yellow: #facc15;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.22);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78));
    backdrop-filter: blur(18px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.96);
}

.header-inner {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--green), var(--teal));
    border-radius: 13px;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.28);
    transition: transform 0.2s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-2deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

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

.brand-text small {
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #374151;
    font-weight: 650;
}

.desktop-nav a {
    transition: color 0.2s ease;
}

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

.site-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.site-search-form input,
.filter-input,
.large-search input {
    border: 0;
    outline: 0;
    min-width: 210px;
    background: transparent;
    color: var(--ink);
}

.site-search-form button,
.large-search button {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    color: #ffffff;
    background: var(--green);
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: #f3f4f6;
    border-radius: 12px;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #111827;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.mobile-nav.open {
    display: grid;
    gap: 12px;
}

.hero {
    min-height: 720px;
    padding-top: 78px;
    background: #111827;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    min-height: 642px;
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.32), transparent 34%), linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.82));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 642px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 360px;
    align-items: center;
    gap: 52px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(187, 247, 208, 0.28);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-copy h1 {
    max-width: 820px;
    margin: 22px 0 14px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    color: #fef3c7;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
}

.hero-copy p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: 18px;
}

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

.tag,
.movie-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    color: #166534;
    background: var(--green-soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags .tag {
    color: #ecfdf5;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    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(--green), var(--teal));
    box-shadow: 0 14px 32px rgba(22, 163, 74, 0.32);
}

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

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    color: #ffffff;
    background: rgba(22, 163, 74, 0.92);
    border-radius: 999px;
    transform: translate(-50%, -50%);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

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

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 30px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.stats-strip {
    margin-top: -34px;
    position: relative;
    z-index: 6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 22px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.stats-grid div {
    padding: 18px;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    border: 1px solid #dcfce7;
    border-radius: 18px;
}

.stats-grid strong,
.stats-grid span {
    display: block;
}

.stats-grid strong {
    color: var(--green-dark);
    font-size: 20px;
}

.stats-grid span {
    color: var(--muted);
    margin-top: 4px;
}

.section-block {
    padding: 72px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.story-card h2,
.side-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.category-card p,
.movie-info p,
.story-card p,
.side-panel,
.site-footer p {
    color: var(--muted);
}

.section-link {
    color: var(--green-dark);
    font-weight: 800;
}

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

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

.movie-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card.is-hidden {
    display: none;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(22, 163, 74, 0.34);
}

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

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

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

.cover-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #ffffff;
    background: rgba(22, 163, 74, 0.92);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .cover-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    color: #111827;
    background: var(--yellow);
    border-radius: 999px;
    font-weight: 900;
}

.movie-info {
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.movie-info h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-info h2 a:hover {
    color: var(--green-dark);
}

.movie-info p {
    min-height: 52px;
    margin: 0 0 14px;
    font-size: 14px;
}

.category-panel {
    background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 22px;
    border-radius: 24px;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    transition: transform 0.45s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card span {
    display: inline-block;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
}

.category-card p {
    color: #e5e7eb;
    margin: 0;
}

.dark-section {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #064e3b);
}

.dark-section .section-heading h2,
.dark-section .section-heading p,
.dark-section .section-link {
    color: #ffffff;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 44px 68px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(4px);
}

.ranking-number {
    color: var(--yellow);
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.ranking-row img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-title {
    overflow: hidden;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-meta {
    color: #bbf7d0;
    font-size: 13px;
}

.page-main {
    padding-top: 78px;
}

.page-hero {
    padding: 86px 0 58px;
    color: #ffffff;
    background: radial-gradient(circle at 18% 20%, rgba(34, 197, 94, 0.36), transparent 32%), linear-gradient(135deg, #111827, #065f46);
}

.page-hero h1 {
    color: #ffffff;
    margin: 18px 0 16px;
}

.page-hero p {
    max-width: 760px;
    color: #d1fae5;
    font-size: 18px;
}

.page-search-box,
.large-search {
    display: flex;
    width: min(720px, 100%);
    gap: 12px;
    margin-top: 28px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
}

.page-search-box input,
.large-search input {
    flex: 1;
    min-width: 0;
    color: #ffffff;
    padding: 11px 16px;
}

.page-search-box input::placeholder,
.large-search input::placeholder {
    color: rgba(255, 255, 255, 0.74);
}

.category-list-page {
    padding: 64px 0;
}

.category-section {
    margin-bottom: 64px;
}

.compact-heading {
    align-items: center;
}

.detail-hero {
    padding: 98px 0 60px;
    color: #ffffff;
    background: radial-gradient(circle at 24% 12%, rgba(34, 197, 94, 0.32), transparent 30%), linear-gradient(135deg, #111827, #052e2b);
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #bbf7d0;
    font-size: 14px;
    font-weight: 700;
}

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

.detail-copy p {
    max-width: 820px;
    color: #e5e7eb;
    font-size: 18px;
}

.detail-meta {
    margin: 24px 0 14px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 24px;
    box-shadow: var(--shadow-strong);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
    cursor: pointer;
}

.player-button span {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    background: rgba(22, 163, 74, 0.94);
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    font-size: 34px;
}

.player-shell.is-started .player-button {
    display: none;
}

.story-card,
.side-panel {
    margin-top: 22px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

.side-panel {
    margin-top: 0;
    position: sticky;
    top: 102px;
}

.side-panel dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px 16px;
    margin: 18px 0 0;
}

.side-panel dt {
    color: #374151;
    font-weight: 800;
}

.side-panel dd {
    margin: 0;
}

.side-panel a {
    color: var(--green-dark);
    font-weight: 800;
}

.related-section {
    background: #ffffff;
}

.site-footer {
    padding: 56px 0;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}

.site-footer h2 {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 12px;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d1fae5;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 14px;
}

@media (max-width: 980px) {
    .desktop-nav,
    .site-search-form {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero-content,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 48px 0 110px;
    }

    .hero-poster {
        max-width: 320px;
        transform: none;
    }

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

    .side-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        height: 68px;
    }

    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero,
    .page-main {
        padding-top: 68px;
    }

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

    .hero-copy p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

    .hero-actions,
    .page-search-box,
    .large-search,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .ranking-list,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 36px 58px minmax(0, 1fr);
    }

    .ranking-meta {
        display: none;
    }

    .detail-poster {
        max-width: 260px;
    }

    .section-block {
        padding: 52px 0;
    }
}
