:root {
    --color-emerald: #10b981;
    --color-emerald-dark: #059669;
    --color-teal: #0f766e;
    --color-rose: #e11d48;
    --color-amber: #f59e0b;
    --color-blue: #2563eb;
    --color-violet: #7c3aed;
    --color-sky: #0284c7;
    --color-orange: #ea580c;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-soft: #f8fafc;
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 10px 24px rgba(15, 23, 42, 0.12);
    --radius-lg: 18px;
    --radius-md: 12px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: #f3f4f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-emerald-dark);
}

.logo-mark {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.28);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    background: var(--color-emerald);
    border-radius: 99px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-emerald-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: #f3f4f6;
    border-radius: 10px;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #111827;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--color-border);
    background: #ffffff;
    padding: 10px 20px 18px;
}

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

.mobile-nav-link {
    padding: 10px 14px;
    border-radius: 10px;
    color: #374151;
    font-weight: 600;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--color-emerald-dark);
    background: #ecfdf5;
}

.hero-slider {
    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;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.24), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-copy {
    max-width: 680px;
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-emerald);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker::before,
.section-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15);
}

.hero-copy h1 {
    margin: 16px 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.hero-meta span {
    padding: 6px 12px;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.hero-actions,
.category-overview-head,
.detail-meta,
.filter-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

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

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

.btn-primary {
    color: #ffffff;
    background: var(--color-emerald);
    box-shadow: 0 12px 22px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover {
    background: var(--color-emerald-dark);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    border-radius: 50%;
    cursor: pointer;
    font-size: 34px;
    transform: translateY(-50%);
    transition: background 0.2s ease;
    backdrop-filter: blur(10px);
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--color-emerald);
}

.content-section {
    padding: 54px 0;
}

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

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--color-muted);
}

.section-more {
    color: var(--color-emerald-dark);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

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

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

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

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

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.year-badge {
    top: 10px;
    right: 10px;
}

.rank-badge {
    top: 10px;
    left: 10px;
    background: rgba(16, 185, 129, 0.9);
}

.poster-hover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: #ffffff;
    background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.88) 100%);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.movie-card:hover .poster-hover {
    opacity: 1;
    transform: translateY(0);
}

.poster-hover p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 13px;
}

.poster-hover span {
    align-self: flex-end;
    padding: 4px 8px;
    background: rgba(16, 185, 129, 0.9);
    border-radius: 8px;
    font-size: 12px;
}

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

.movie-card-body h3 {
    display: -webkit-box;
    min-height: 24px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #111827;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 16px;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--color-emerald-dark);
}

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--color-muted);
    font-size: 12px;
}

.category-recommend {
    padding: 40px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
    border-radius: 26px;
}

.category-strip + .category-strip {
    margin-top: 34px;
}

.category-strip-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.category-strip-title span {
    width: 5px;
    height: 28px;
    background: var(--color-emerald);
    border-radius: 99px;
}

.category-strip-title h3 {
    margin: 0;
    font-size: 20px;
}

.category-strip-title a {
    margin-left: auto;
    color: var(--color-emerald-dark);
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.ranking-panel,
.side-card,
.watch-tips,
.detail-info-card,
.player-card,
.filter-panel,
.static-copy article {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

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

.ranking-panel-head span {
    color: var(--color-rose);
    font-weight: 900;
}

.ranking-panel-head h2 {
    margin: 4px 0 18px;
    font-size: 26px;
}

.ranking-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 34px 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.ranking-list a:hover {
    background: #f9fafb;
}

.ranking-number {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #ffffff;
    background: var(--color-emerald);
    border-radius: 50%;
    font-weight: 900;
}

.ranking-list img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.ranking-info {
    min-width: 0;
}

.ranking-info strong,
.side-related-item strong {
    display: block;
    overflow: hidden;
    color: #111827;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-info em,
.side-related-item em {
    display: block;
    color: var(--color-muted);
    font-size: 12px;
    font-style: normal;
}

.site-footer {
    margin-top: 34px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0;
}

.footer-logo {
    color: #ffffff;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--color-emerald);
    font-size: 18px;
}

.site-footer p {
    color: #d1d5db;
}

.footer-links,
.feature-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a:hover {
    color: var(--color-emerald);
}

.feature-list li::before {
    content: "• ";
    color: var(--color-emerald);
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #064e3b, #0f766e 48%, #111827);
}

.compact-hero {
    padding: 72px 0;
}

.compact-hero h1,
.category-hero h1 {
    margin: 12px 0 12px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
}

.compact-hero p,
.category-hero p {
    max-width: 760px;
    margin: 0;
    color: #d1fae5;
    font-size: 18px;
}

.category-hero {
    padding: 56px 0;
}

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

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

.category-overview-list {
    display: grid;
    gap: 28px;
    padding: 50px 0;
}

.category-overview-card {
    padding: 28px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.category-overview-head {
    justify-content: space-between;
    margin-bottom: 24px;
}

.category-overview-head span {
    color: var(--color-emerald-dark);
    font-weight: 800;
}

.category-overview-head h2 {
    margin: 4px 0 6px;
    font-size: 30px;
}

.category-overview-head p {
    margin: 0;
    color: var(--color-muted);
}

.accent-emerald {
    --accent-color: var(--color-emerald);
}

.accent-teal {
    --accent-color: var(--color-teal);
}

.accent-rose {
    --accent-color: var(--color-rose);
}

.accent-amber {
    --accent-color: var(--color-amber);
}

.accent-blue {
    --accent-color: var(--color-blue);
}

.accent-violet {
    --accent-color: var(--color-violet);
}

.accent-sky {
    --accent-color: var(--color-sky);
}

.accent-orange {
    --accent-color: var(--color-orange);
}

.category-overview-card[class*="accent-"] {
    border-top: 5px solid var(--accent-color);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 26px;
    padding: 18px;
}

.filter-search input,
.filter-selects select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    outline: none;
}

.filter-search input {
    padding: 0 16px;
}

.filter-selects select {
    min-width: 132px;
    padding: 0 12px;
}

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

.filter-count {
    margin: 0;
    color: var(--color-muted);
    white-space: nowrap;
}

.empty-state {
    margin-top: 22px;
    padding: 30px;
    color: var(--color-muted);
    background: #ffffff;
    border-radius: var(--radius-md);
    text-align: center;
}

.detail-top {
    padding: 34px 0 0;
}

.detail-page .breadcrumb {
    color: #6b7280;
}

.detail-page .breadcrumb a:hover {
    color: var(--color-emerald-dark);
}

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

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    padding-left: 5px;
    background: var(--color-emerald);
    border-radius: 50%;
    box-shadow: 0 16px 34px rgba(16, 185, 129, 0.38);
    font-size: 32px;
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 4;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    border-radius: 8px;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.player-status.is-hidden {
    display: none;
}

.detail-info-card {
    padding: 28px;
}

.detail-info-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.detail-meta {
    margin-bottom: 22px;
}

.detail-meta span {
    padding: 6px 12px;
    color: #047857;
    background: #ecfdf5;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

.detail-block + .detail-block {
    margin-top: 24px;
}

.detail-block h2,
.side-card h2,
.watch-tips h2,
.static-copy h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.detail-block p {
    margin: 0;
    color: #374151;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list span {
    padding: 7px 12px;
    color: #374151;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 14px;
}

.review-block {
    padding: 22px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
    border-radius: 14px;
}

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

.side-card,
.watch-tips {
    padding: 22px;
}

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

.side-related-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.side-related-item:hover {
    background: #f9fafb;
}

.side-related-item img {
    width: 78px;
    height: 104px;
    object-fit: cover;
    border-radius: 10px;
}

.watch-tips {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
}

.watch-tips ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.related-section {
    padding-top: 40px;
}

.static-copy {
    padding: 44px 0;
}

.static-copy article {
    padding: 32px;
}

.static-copy p {
    color: #374151;
}

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

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

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

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

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

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

    .mobile-menu-button {
        display: block;
    }

    .hero-slider {
        height: 520px;
    }

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

    .hero-arrow {
        display: none;
    }

    .section-heading,
    .category-overview-head {
        display: grid;
        align-items: start;
    }

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

    .category-recommend,
    .category-overview-card,
    .detail-info-card,
    .static-copy article {
        padding: 20px;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-top {
        padding-top: 24px;
    }
}

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

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

    .hero-slider {
        height: 500px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .movie-card-body {
        padding: 10px;
    }

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

    .poster-hover {
        display: none;
    }

    .compact-hero,
    .category-hero {
        padding: 46px 0;
    }
}
