:root {
    --site-green-900: #064e3b;
    --site-green-800: #065f46;
    --site-green-700: #047857;
    --site-green-600: #059669;
    --site-green-100: #d1fae5;
    --site-green-50: #ecfdf5;
    --site-gray-950: #0f172a;
    --site-gray-900: #111827;
    --site-gray-700: #374151;
    --site-gray-500: #6b7280;
    --site-gray-100: #f3f4f6;
    --site-white: #ffffff;
    --site-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
    --site-radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f8fafc;
    color: var(--site-gray-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--site-green-800), var(--site-green-700), var(--site-green-900));
    color: var(--site-white);
    box-shadow: 0 12px 32px rgba(6, 95, 70, 0.24);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.site-logo__icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(6, 78, 59, 0.46);
    border-radius: 999px;
    padding: 4px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.header-search input {
    width: 230px;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    padding: 9px 12px;
}

.header-search input::placeholder {
    color: rgba(209, 250, 229, 0.72);
}

.header-search button,
.menu-toggle,
.mobile-search button,
.big-search button,
.search-console button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    background: #ffffff;
    color: var(--site-green-800);
    font-weight: 800;
}

.header-search button {
    width: 38px;
    height: 38px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    font-size: 18px;
}

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

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

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-search input {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 12px 14px;
    outline: 0;
}

.mobile-search button {
    padding: 0 18px;
}

.mobile-link {
    display: block;
    padding: 11px 0;
    color: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-link.muted {
    display: inline-flex;
    margin: 8px 8px 0 0;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--site-gray-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 48px;
    padding: 110px max(32px, calc((100vw - 1180px) / 2)) 86px;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(1.08);
    transform: scale(1.08);
    opacity: 0.44;
}

.hero-slide__shade,
.detail-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 78, 59, 0.98), rgba(6, 95, 70, 0.82), rgba(17, 24, 39, 0.58));
}

.hero-slide__content,
.hero-poster,
.hero-dots {
    position: relative;
    z-index: 2;
}

.hero-eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: #a7f3d0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-slide h1,
.page-hero h1,
.detail-hero h1 {
    margin: 0;
    color: white;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    max-width: 820px;
}

.hero-slide h2 {
    margin: 18px 0 12px;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 900;
}

.hero-slide p,
.page-hero p,
.detail-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.85;
}

.hero-tags,
.detail-tags,
.movie-card__tags,
.quick-cats,
.filter-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-tags a,
.movie-card__tags span,
.quick-cats a,
.filter-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags a {
    color: #d1fae5;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

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

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

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

.btn-primary {
    background: #10b981;
    color: white;
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.32);
}

.btn-glass {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
    color: #d1fae5;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(209, 250, 229, 0.28);
}

.btn-full {
    width: 100%;
    margin-top: 18px;
}

.hero-poster {
    display: block;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--site-shadow);
    transform: rotate(2deg);
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster span,
.detail-poster span,
.movie-card__play {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.92);
    color: white;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.38);
}

.hero-poster span {
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    font-size: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
    width: 34px;
    background: #34d399;
}

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

.section-green {
    background: linear-gradient(135deg, #ecfdf5, #ffffff 55%, #d1fae5);
}

.section-search-panel {
    padding: 34px 0;
    background: white;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.big-search,
.search-console,
.filter-bar {
    border-radius: var(--site-radius);
    background: white;
    padding: 22px;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
}

.big-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.big-search label,
.search-console label,
.filter-bar label {
    font-weight: 900;
    color: var(--site-green-800);
}

.big-search input,
.search-console input,
.search-console select,
.filter-bar input {
    min-height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0 16px;
    outline: 0;
    color: var(--site-gray-900);
}

.big-search input:focus,
.search-console input:focus,
.search-console select:focus,
.filter-bar input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.big-search button,
.search-console button {
    min-height: 48px;
    padding: 0 20px;
    background: var(--site-green-700);
    color: white;
}

.quick-cats {
    margin-top: 18px;
}

.quick-cats a,
.filter-chip {
    background: var(--site-green-50);
    color: var(--site-green-800);
}

.filter-chip {
    border: 0;
    cursor: pointer;
}

.filter-chip.is-active {
    background: var(--site-green-700);
    color: white;
}

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

.section-heading h2,
.ranking-panel__head h2 {
    margin: 0;
    color: var(--site-gray-900);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
}

.section-heading .section-kicker,
.ranking-panel__head .section-kicker {
    color: var(--site-green-700);
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: white;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.movie-card__poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--site-green-50);
}

.movie-card__poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.movie-card__play {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #facc15;
    color: #713f12;
    font-weight: 900;
}

.movie-card__body {
    padding: 16px;
}

.movie-card__meta {
    margin-bottom: 8px;
    color: var(--site-green-700);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card p {
    margin: 0 0 12px;
    min-height: 3.6em;
    color: var(--site-gray-500);
    font-size: 14px;
    line-height: 1.8;
}

.movie-card__tags span {
    background: #f3f4f6;
    color: var(--site-gray-700);
    padding: 5px 10px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.split-layout--wide {
    grid-template-columns: minmax(0, 1fr) 320px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    border-radius: 24px;
    background: var(--site-green-900);
    color: white;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
}

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

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

.category-tile span {
    position: absolute;
    inset: auto 16px 16px;
    z-index: 1;
}

.category-tile strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.category-tile small {
    color: rgba(255, 255, 255, 0.76);
}

.ranking-panel,
.info-card,
.player-card,
.detail-copy,
.category-overview-card {
    border-radius: var(--site-radius);
    background: white;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
}

.ranking-panel {
    padding: 24px;
}

.ranking-panel--sticky {
    position: sticky;
    top: 96px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: auto 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    background: var(--site-green-50);
}

.ranking-item img {
    width: 56px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-item strong,
.ranking-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-item small {
    margin-top: 3px;
    color: var(--site-gray-500);
}

.ranking-number {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--site-green-700);
    color: white;
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 0%, rgba(52, 211, 153, 0.36), transparent 38%), linear-gradient(120deg, #064e3b, #111827);
    color: white;
    padding: 90px 0;
}

.page-hero--compact {
    padding: 78px 0;
}

.page-hero--category {
    padding: 88px 0;
}

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

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

.category-overview-card__cover {
    overflow: hidden;
    border-radius: 20px;
}

.category-overview-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.category-overview-card h2 {
    margin: 4px 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-overview-card p {
    color: var(--site-gray-500);
    line-height: 1.75;
}

.category-overview-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.category-overview-card__links a {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--site-green-50);
    color: var(--site-green-800);
    font-size: 13px;
    font-weight: 700;
}

.filter-bar {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
}

.search-console {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

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

.search-status {
    margin-bottom: 22px;
    color: var(--site-gray-500);
    font-weight: 700;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    background: var(--site-gray-950);
}

.detail-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.08);
    transform: scale(1.08);
    opacity: 0.42;
}

.detail-hero__inner {
    position: relative;
    z-index: 2;
    padding: 54px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 28px;
}

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

.detail-headline {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--site-shadow);
}

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

.detail-poster span {
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
}

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

.player-card {
    overflow: hidden;
    padding: 12px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: black;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: black;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.54), rgba(17, 24, 39, 0.32));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-button {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.96);
    color: white;
    font-size: 34px;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.42);
}

.detail-copy {
    margin-top: 24px;
    padding: 28px;
}

.detail-copy h2,
.info-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
}

.detail-copy p {
    margin: 0 0 24px;
    color: var(--site-gray-700);
    line-height: 2;
    font-size: 16px;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 96px;
}

.info-card {
    padding: 22px;
}

.info-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
}

.info-card dt {
    color: var(--site-gray-500);
    font-weight: 800;
}

.info-card dd {
    margin: 0;
    color: var(--site-gray-900);
}

.ranking-list--sidebar .ranking-item {
    grid-template-columns: 52px minmax(0, 1fr);
}

.ranking-list--sidebar .ranking-item .ranking-number {
    display: none;
}

.prose-block {
    border-radius: var(--site-radius);
    background: white;
    padding: 34px;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
}

.prose-block h2 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 900;
}

.prose-block p {
    color: var(--site-gray-700);
    line-height: 1.9;
}

.site-footer {
    background: linear-gradient(90deg, #111827, #064e3b);
    color: rgba(255, 255, 255, 0.78);
    padding: 42px 0;
}

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

.footer-logo {
    display: inline-block;
    margin-bottom: 12px;
    color: white;
    font-size: 22px;
    font-weight: 900;
}

.footer-links strong {
    display: block;
    margin-bottom: 12px;
    color: white;
}

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

.footer-links a {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

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

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

    .ranking-panel--sticky,
    .detail-sidebar {
        position: static;
    }
}

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

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

    .hero-carousel {
        min-height: 790px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 86px 20px 80px;
    }

    .hero-poster {
        width: min(280px, 70vw);
        margin: 0 auto;
    }

    .big-search,
    .search-console__row,
    .footer-inner,
    .detail-headline,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        width: min(260px, 72vw);
    }
}

@media (max-width: 620px) {
    .site-section {
        padding: 48px 0;
    }

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

    .movie-card__body {
        padding: 12px;
    }

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-card p {
        font-size: 13px;
    }

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

    .ranking-item {
        grid-template-columns: auto 48px minmax(0, 1fr);
    }

    .ranking-item img {
        width: 48px;
        height: 64px;
    }
}
