:root {
    color-scheme: light;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --teal-700: #0f766e;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-700: #44403c;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 16px 35px rgba(15, 23, 42, 0.14);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--stone-50);
    color: var(--stone-700);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, var(--emerald-800), var(--teal-700));
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(6, 95, 70, 0.26);
}

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

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

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.18);
    font-size: 14px;
}

.brand-text {
    font-size: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #d1fae5;
    transform: translateY(-1px);
}

.header-search,
.mobile-search,
.big-search,
.search-console {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input {
    width: 210px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 10px 14px;
    outline: none;
}

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

.header-search button,
.mobile-search button,
.big-search button,
.search-console button {
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: var(--emerald-800);
    font-weight: 800;
    padding: 10px 16px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 16px 24px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-slider {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.hero-image,
.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.52) 46%, rgba(0, 0, 0, 0.18));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 78px;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 48px));
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 10px;
    color: #a7f3d0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--emerald-700);
}

.hero-content h1,
.hero-content h2 {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    color: #ffffff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.hero-summary {
    max-width: 780px;
    margin: 0 0 22px;
    font-size: clamp(17px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.88);
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(5, 150, 105, 0.72);
    border: 1px solid rgba(167, 243, 208, 0.36);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 700;
}

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

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

.primary-btn {
    background: linear-gradient(90deg, var(--emerald-600), var(--teal-700));
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(5, 150, 105, 0.28);
}

.primary-btn.inline {
    width: fit-content;
}

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

.primary-btn:hover,
.ghost-btn:hover,
.category-tile:hover,
.movie-card:hover,
.rank-item:hover,
.category-card-large:hover {
    transform: translateY(-3px);
}

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

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

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

.home-search-band,
.section-wrap,
.split-wrap {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.home-search-band {
    margin-top: -42px;
    position: relative;
    z-index: 10;
    padding: 26px;
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(231, 229, 228, 0.9);
}

.home-search-band h2,
.section-head h2,
.feature-panel h2,
.story-card h2,
.footer-column h2 {
    margin: 0;
    color: var(--slate-900);
}

.home-search-band p,
.feature-panel p,
.category-desc,
.card-line,
.story-card p {
    color: var(--stone-500);
}

.big-search input,
.search-console input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--stone-200);
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
    background: var(--stone-50);
}

.big-search button,
.search-console button {
    min-height: 52px;
    padding: 0 22px;
    background: linear-gradient(90deg, var(--emerald-700), var(--teal-700));
    color: #ffffff;
    white-space: nowrap;
}

.section-wrap,
.split-wrap {
    padding: 58px 0 0;
}

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

.section-head a {
    color: var(--emerald-700);
    font-weight: 800;
}

.section-head.light h2,
.section-head.light a {
    color: #ffffff;
}

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

.category-tile {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.62), transparent 38%), linear-gradient(135deg, var(--emerald-800), var(--slate-800));
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-name {
    font-size: 20px;
    font-weight: 900;
}

.category-desc,
.category-sample {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

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

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

.movie-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(231, 229, 228, 0.76);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow-card);
}

.card-link,
.card-cover,
.card-body {
    display: block;
}

.card-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--emerald-900), var(--slate-900));
    overflow: hidden;
}

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

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

.card-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(6, 95, 70, 0.82);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-body strong {
    display: block;
    color: var(--slate-900);
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 7px;
}

.card-meta,
.card-line {
    display: block;
    font-size: 13px;
}

.card-meta {
    color: var(--emerald-700);
    font-weight: 700;
    margin-bottom: 8px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: var(--emerald-700);
    font-size: 12px;
    font-weight: 700;
}

.tag-row.large span {
    padding: 6px 12px;
    font-size: 13px;
}

.split-wrap {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: 24px;
    align-items: stretch;
}

.feature-panel {
    border-radius: var(--radius-xl);
    padding: 34px;
    min-height: 100%;
    color: var(--stone-700);
    background: linear-gradient(160deg, #ffffff, #ecfdf5);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(209, 250, 229, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.ranking-section,
.rank-hero {
    width: 100%;
    max-width: none;
    padding: 56px max(20px, calc((100% - 1200px) / 2));
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.28), transparent 34%), linear-gradient(135deg, var(--slate-900), #020617);
    color: #ffffff;
}

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

.rank-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-page-list .rank-item,
.rank-list-full .rank-item {
    background: #ffffff;
    color: var(--stone-700);
    border-color: var(--stone-200);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rank-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--emerald-600), var(--teal-700));
    color: #ffffff;
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--slate-900);
}

.rank-copy strong,
.rank-copy em {
    display: block;
}

.rank-copy strong {
    color: inherit;
    font-style: normal;
    font-weight: 900;
}

.rank-copy em {
    color: currentColor;
    opacity: 0.72;
    font-size: 13px;
    font-style: normal;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald-900), var(--slate-900));
}

.page-hero {
    padding: 82px max(20px, calc((100% - 1200px) / 2));
}

.compact-hero {
    min-height: 290px;
    display: flex;
    align-items: center;
}

.page-hero h1,
.detail-copy h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.category-card-large {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--stone-200);
    transition: transform 0.2s ease;
}

.category-card-large a {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 210px;
}

.cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: var(--slate-900);
}

.cover-stack img {
    width: 100%;
    height: 105px;
    object-fit: cover;
}

.category-copy {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.category-copy strong {
    font-size: 26px;
    color: var(--slate-900);
}

.category-copy em,
.category-copy b {
    font-style: normal;
    color: var(--stone-500);
}

.filter-panel {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--stone-200);
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 14px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.filter-field label {
    color: var(--emerald-700);
    font-size: 13px;
    font-weight: 900;
}

.filter-field input,
.filter-field select {
    width: 100%;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    min-height: 44px;
    padding: 0 12px;
    background: var(--stone-50);
    outline: none;
}

.is-hidden {
    display: none !important;
}

.detail-hero {
    min-height: 560px;
}

.detail-bg,
.detail-bg-shade {
    position: absolute;
    inset: 0;
}

.detail-bg {
    filter: blur(2px) saturate(1.05);
    transform: scale(1.03);
}

.detail-bg-shade {
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72), rgba(6, 78, 59, 0.62));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 56px;
}

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

.breadcrumb a {
    color: #a7f3d0;
    font-weight: 800;
}

.detail-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 38px;
    align-items: center;
}

.detail-poster {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.38);
    background: var(--slate-900);
}

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

.detail-lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.player-section {
    width: min(1200px, calc(100% - 40px));
    margin: -72px auto 0;
    position: relative;
    z-index: 6;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.22));
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
}

.play-overlay.is-hidden,
.player-shell.is-playing .play-overlay {
    display: none;
}

.play-circle {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--emerald-600), var(--teal-700));
    box-shadow: 0 18px 40px rgba(5, 150, 105, 0.38);
    font-size: 30px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.story-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--stone-200);
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

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

.search-page {
    min-height: 520px;
}

.search-console {
    margin-bottom: 24px;
}

.site-footer {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
    color: rgba(255, 255, 255, 0.74);
}

.footer-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 32px;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 12px;
}

.footer-column h2 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 16px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-column a:hover {
    color: #a7f3d0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 18px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    body.nav-open .mobile-nav {
        display: flex;
    }

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

    .home-search-band,
    .split-wrap,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

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

    .hero-slider {
        height: 560px;
    }

    .hero-content {
        width: calc(100% - 32px);
        bottom: 66px;
    }

    .hero-actions,
    .big-search,
    .search-console {
        flex-direction: column;
        align-items: stretch;
    }

    .category-grid,
    .movie-grid,
    .movie-grid.small,
    .mini-grid,
    .rank-grid,
    .rank-list-full,
    .category-large-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .category-card-large a,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .cover-stack img {
        height: 145px;
    }

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

    .player-section {
        margin-top: -34px;
    }

    .page-hero {
        padding: 64px 20px;
    }

    .section-wrap,
    .split-wrap {
        padding-top: 42px;
    }
}
