
:root {
    --bg: #f8faf7;
    --surface: #ffffff;
    --surface-soft: #f1f8f1;
    --ink: #1f2933;
    --muted: #64748b;
    --line: #dbe7d5;
    --green-900: #0f2f1d;
    --green-800: #14532d;
    --green-700: #166534;
    --red-600: #dc2626;
    --orange-500: #f97316;
    --amber-300: #fcd34d;
    --shadow: 0 20px 60px rgba(15, 47, 29, 0.16);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 36rem),
        radial-gradient(circle at top right, rgba(22, 101, 52, 0.12), transparent 34rem),
        var(--bg);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(219, 231, 213, 0.7);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.26);
}

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

.brand-text strong {
    font-size: 20px;
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
    background: linear-gradient(90deg, var(--red-600), var(--orange-500));
    transition: transform 0.2s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--surface-soft);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--green-800);
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.mobile-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.mobile-menu a:hover {
    background: var(--surface-soft);
}

.hero-carousel,
.page-hero,
.detail-hero,
.breadcrumb,
.content-section,
.filter-panel,
.detail-content,
.player-section {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.hero-carousel {
    margin-top: 26px;
}

.hero-shell {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border-radius: 36px;
    background: var(--green-900);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 44px;
    padding: 72px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.2);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 47, 29, 0.92), rgba(15, 47, 29, 0.62), rgba(127, 29, 29, 0.62)),
        radial-gradient(circle at 30% 20%, rgba(252, 211, 77, 0.24), transparent 28rem);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 12px;
    border: 1px solid rgba(252, 211, 77, 0.36);
    border-radius: 999px;
    color: #fff5d6;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 800;
}

.hero-content h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content h2 {
    margin: 0 0 18px;
    color: var(--amber-300);
    font-size: clamp(24px, 3vw, 38px);
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #e8f5e9;
    font-size: 17px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

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

.primary-btn,
.ghost-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;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.26);
}

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

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

.hero-poster {
    overflow: hidden;
    min-height: 500px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 14px;
    border-radius: 18px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    text-align: center;
    font-weight: 900;
}

.hero-dots {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.hero-dot {
    min-height: 56px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--green-900);
    background: #fff;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-dot span {
    margin-right: 6px;
    color: var(--red-600);
}

.hero-dot.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--green-800), var(--red-600));
}

.content-section,
.filter-panel,
.detail-content,
.player-section {
    margin-top: 56px;
}

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

.section-heading span {
    color: var(--red-600);
    font-size: 13px;
    font-weight: 900;
}

.section-heading h2 {
    margin: 8px 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
    color: var(--green-900);
}

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

.section-heading > a {
    flex: 0 0 auto;
    padding: 12px 18px;
    border-radius: 999px;
    color: var(--red-600);
    background: #fff;
    border: 1px solid rgba(220, 38, 38, 0.2);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(219, 231, 213, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 34px rgba(15, 47, 29, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(15, 47, 29, 0.16);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at 32% 20%, rgba(249, 115, 22, 0.24), transparent 12rem),
        linear-gradient(145deg, var(--green-800), var(--green-900));
}

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

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

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

.rank-badge,
.score-badge {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
    font-size: 12px;
    font-style: normal;
}

.score-badge {
    top: auto;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 47, 29, 0.72);
    backdrop-filter: blur(10px);
}

.movie-info {
    padding: 16px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-info h3 {
    margin: 0 0 8px;
    color: var(--green-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-info p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.movie-info .tag-row span,
.detail-tags span {
    color: var(--green-800);
    background: var(--surface-soft);
}

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

.category-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 47, 29, 0.08);
}

.category-visual {
    height: 140px;
    background:
        radial-gradient(circle at top, rgba(249, 115, 22, 0.25), transparent 12rem),
        linear-gradient(135deg, var(--green-800), var(--green-900));
}

.category-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card div:last-child {
    padding: 18px;
}

.category-card span {
    color: var(--red-600);
    font-size: 12px;
    font-weight: 900;
}

.category-card h3 {
    margin: 8px 0;
    color: var(--green-900);
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.page-hero,
.detail-hero {
    margin-top: 26px;
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(252, 211, 77, 0.24), transparent 24rem),
        linear-gradient(135deg, var(--green-900), var(--green-800) 55%, #7f1d1d);
    box-shadow: var(--shadow);
}

.compact-hero {
    padding: 64px;
}

.compact-hero h1,
.detail-main h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.compact-hero p,
.detail-line {
    max-width: 760px;
    margin: 0;
    color: #e8f5e9;
    line-height: 1.8;
    font-size: 17px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    gap: 18px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 34px rgba(15, 47, 29, 0.08);
}

.filter-panel strong {
    color: var(--green-900);
    font-size: 22px;
}

.filter-panel p {
    margin: 6px 0 0;
    color: var(--muted);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.search-box span {
    color: var(--red-600);
    font-weight: 900;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    font: inherit;
}

.quick-filters {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-filters button {
    border: 0;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--green-800);
    background: var(--surface-soft);
    font-weight: 900;
    cursor: pointer;
}

.filter-count {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--green-800);
    font-weight: 900;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 42px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    background:
        radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.2), transparent 12rem),
        linear-gradient(145deg, var(--green-800), var(--green-900));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 9px 12px;
    border-radius: 999px;
    color: #ecfdf5;
    background: rgba(255, 255, 255, 0.12);
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-box video {
    width: 100%;
    min-height: 480px;
    background: #020617;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 0;
    padding: 16px 24px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

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

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

.detail-content article {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 47, 29, 0.08);
}

.detail-content h2 {
    margin: 0 0 12px;
    color: var(--green-900);
}

.detail-content p {
    margin: 0;
    color: #3f4b58;
    line-height: 1.9;
}

.site-footer {
    margin-top: 70px;
    padding: 52px 0 24px;
    color: #e8f5e9;
    background: linear-gradient(135deg, var(--green-900), var(--green-800));
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 34px;
}

.footer-grid h3,
.footer-brand strong {
    color: var(--amber-300);
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: #dbeafe;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid li + li {
    margin-top: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
}

.back-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 46px;
    }

    .hero-poster {
        display: none;
    }
}

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

    .nav-toggle {
        display: block;
    }

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

    .hero-shell {
        min-height: 620px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 28px;
    }

    .hero-dots {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .movie-grid,
    .category-grid,
    .detail-content,
    .footer-grid,
    .filter-panel,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .compact-hero,
    .detail-hero {
        padding: 28px;
        border-radius: 24px;
    }

    .detail-poster {
        max-width: 320px;
        width: 100%;
        margin: 0 auto;
    }

    .player-box video {
        min-height: 260px;
    }
}
