:root {
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-700: #44403c;
    --stone-900: #1c1917;
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-300: #6ee7b7;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --amber-300: #fcd34d;
    --shadow: 0 18px 45px rgba(28, 25, 23, 0.12);
    --soft-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--stone-50);
    color: var(--stone-900);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-800));
    box-shadow: 0 12px 30px rgba(6, 95, 70, 0.18);
}

.nav-shell {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo,
.footer-logo {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

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

.main-nav a,
.mobile-nav a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--emerald-100);
}

.main-nav a:hover {
    transform: translateY(-1px);
}

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

.nav-search input,
.mobile-search input {
    width: 230px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    outline: none;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(236, 253, 245, 0.8);
}

.nav-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.play-layer span,
.filter-chips button,
.section-more {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.nav-search button,
.mobile-search button,
.primary-btn {
    color: var(--emerald-800);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.22);
}

.nav-search button,
.mobile-search button {
    padding: 10px 16px;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.mobile-search input {
    width: 100%;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000000;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18)), linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 56%);
}

.hero-content {
    position: absolute;
    inset: auto 0 0 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 24px 62px;
    color: #ffffff;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.section-heading p,
.eyebrow {
    margin: 0 0 10px;
    color: var(--emerald-300);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.hero h2 {
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

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

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

.hero-meta {
    margin-top: 18px;
}

.hero-meta span,
.detail-meta span,
.category-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

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

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

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    right: 24px;
    bottom: 32px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 38px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

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

.hero-strip {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    top: 104px;
    z-index: 4;
    width: 300px;
    display: grid;
    gap: 12px;
}

.hero-mini {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
}

.hero-mini img {
    width: 70px;
    height: 92px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-mini strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hero-mini em {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
    font-size: 13px;
}

.page-shell,
.content-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px;
}

.content-shell.narrow {
    max-width: 980px;
}

.section-block {
    margin-top: 28px;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.section-more {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    color: var(--emerald-800);
    background: var(--emerald-50);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(231, 229, 228, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.32);
    box-shadow: var(--shadow);
}

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

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

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

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

.poster-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(6, 95, 70, 0.85);
    backdrop-filter: blur(8px);
}

.poster-type {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: rgba(245, 158, 11, 0.9);
}

.card-body {
    padding: 14px 14px 16px;
}

.card-body h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--emerald-700);
}

.card-meta {
    margin: 8px 0 0;
    color: var(--stone-500);
    font-size: 13px;
}

.card-line {
    min-height: 42px;
    margin: 8px 0 0;
    color: var(--stone-700);
    font-size: 13px;
}

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

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--emerald-800);
    background: var(--emerald-50);
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 218px;
    padding: 24px;
    border-radius: 26px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(110, 231, 183, 0.36), transparent 30%), linear-gradient(135deg, var(--emerald-700), var(--emerald-800));
    box-shadow: var(--soft-shadow);
}

.category-card h2,
.category-card h3 {
    margin: 0;
    font-size: 26px;
}

.category-card p {
    margin: 12px 0 20px;
    color: rgba(255, 255, 255, 0.82);
}

.category-card a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--emerald-800);
    background: #ffffff;
    font-weight: 900;
}

.compact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.compact-card {
    display: grid;
    grid-template-columns: 46px 58px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--stone-200);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.4);
}

.compact-card span {
    color: var(--emerald-700);
    font-weight: 900;
    text-align: center;
}

.compact-card img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 14px;
    background: #0f172a;
}

.compact-card strong,
.compact-card em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compact-card em {
    margin-top: 4px;
    color: var(--stone-500);
    font-style: normal;
    font-size: 13px;
}

.page-title {
    padding: 58px 24px;
    color: #ffffff;
    background: radial-gradient(circle at 70% 20%, rgba(110, 231, 183, 0.28), transparent 28%), linear-gradient(135deg, #064e3b, #111827);
}

.page-title > div {
    max-width: 1280px;
    margin: 0 auto;
}

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

.filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--stone-200);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.filter-search input {
    width: 100%;
    border: 1px solid var(--stone-200);
    border-radius: 18px;
    padding: 14px 16px;
    outline: none;
    background: var(--stone-50);
}

.filter-search input:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chips button {
    padding: 9px 14px;
    color: var(--stone-700);
    background: var(--stone-100);
}

.filter-chips button.is-active {
    color: #ffffff;
    background: var(--emerald-700);
}

.movie-card[hidden] {
    display: none;
}

.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.32), transparent 28%), linear-gradient(135deg, #0f172a, #064e3b 72%);
}

.detail-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
    background: #111827;
}

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

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

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

.detail-title p {
    max-width: 820px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.detail-meta {
    margin-top: 20px;
}

.player-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 44px 24px 20px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.56));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 34px;
    background: rgba(16, 185, 129, 0.92);
    box-shadow: 0 22px 42px rgba(16, 185, 129, 0.28);
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 46px;
}

.detail-panel {
    padding: 26px;
    border: 1px solid var(--stone-200);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-panel p {
    margin: 0 0 18px;
    color: var(--stone-700);
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.info-list div {
    padding: 14px;
    border-radius: 18px;
    background: var(--stone-50);
}

.info-list b {
    display: block;
    color: var(--stone-500);
    font-size: 13px;
}

.info-list span {
    display: block;
    margin-top: 4px;
    font-weight: 800;
}

.side-panel {
    display: grid;
    gap: 14px;
    align-content: start;
}

.site-footer {
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.78);
    background: #0f172a;
}

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

.footer-inner p {
    margin: 0;
}

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

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

@media (max-width: 1080px) {
    .hero-strip {
        display: none;
    }

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

    .side-panel {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    .nav-toggle {
        display: block;
    }

    .hero {
        height: 540px;
    }

    .hero-content {
        padding-bottom: 48px;
    }

    .hero-dots {
        left: 24px;
        right: auto;
        bottom: 18px;
    }

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

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

    .detail-cover {
        max-width: 280px;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        height: 66px;
        padding: 0 16px;
    }

    .mobile-nav,
    .page-shell,
    .content-shell,
    .detail-content,
    .player-section,
    .detail-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-logo,
    .footer-logo {
        font-size: 20px;
    }

    .hero {
        height: 520px;
    }

    .hero h1,
    .hero h2 {
        font-size: 36px;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-line {
        display: none;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

    .player-wrap {
        border-radius: 18px;
    }

    .play-layer span {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
