:root {
    --green-900: #14532d;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-100: #fef3c7;
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --white: #ffffff;
    --shadow-soft: 0 18px 60px rgba(28, 25, 23, 0.12);
    --shadow-card: 0 12px 30px rgba(28, 25, 23, 0.10);
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--stone-900);
    background: linear-gradient(180deg, #fffdf7 0%, #f6f5ee 52%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(231, 229, 228, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.06);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--green-800));
    box-shadow: 0 10px 22px rgba(21, 128, 61, 0.25);
}

.brand-name {
    font-size: 21px;
    background: linear-gradient(90deg, var(--amber-700), var(--green-800));
    -webkit-background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--stone-700);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-800);
    background: rgba(22, 163, 74, 0.10);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--stone-100);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--stone-700);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    padding: 8px 16px 18px;
    border-top: 1px solid var(--stone-200);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--stone-700);
    font-weight: 700;
}

.mobile-nav a:hover {
    color: var(--green-800);
    background: rgba(22, 163, 74, 0.10);
}

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

.hero-shell {
    position: relative;
    width: min(1280px, calc(100% - 28px));
    margin: 22px auto 0;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: var(--shadow-soft);
    background: var(--stone-900);
}

.hero-stage {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
    align-items: center;
    gap: 42px;
    padding: 72px clamp(28px, 6vw, 78px) 96px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
    transform: scale(1.015);
    color: var(--white);
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(26px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.42;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(217, 119, 6, 0.38), transparent 34%), linear-gradient(110deg, rgba(12, 10, 9, 0.96), rgba(20, 83, 45, 0.70));
}

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

.eyebrow {
    margin: 0 0 10px;
    color: var(--amber-600);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
    margin: 0;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.12);
    color: var(--green-800);
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    box-shadow: 0 14px 28px rgba(22, 101, 52, 0.25);
}

.ghost-btn {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.text-link {
    color: var(--green-800);
    background: rgba(22, 163, 74, 0.10);
}

.hero-poster {
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

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

.hero-dots {
    position: absolute;
    left: clamp(24px, 6vw, 78px);
    right: clamp(24px, 6vw, 78px);
    bottom: 24px;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.hero-dot {
    min-height: 54px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    cursor: pointer;
    text-align: left;
}

.hero-dot span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 800;
}

.hero-dot.is-active {
    color: var(--white);
    border-color: rgba(245, 158, 11, 0.64);
    background: rgba(217, 119, 6, 0.26);
}

.intro-panel,
.section-block,
.page-main {
    margin-top: 48px;
}

.intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 26px;
    align-items: center;
    padding: 34px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-card);
}

.intro-panel h2,
.section-heading h2,
.page-hero h1,
.content-panel h2 {
    margin: 0;
    color: var(--stone-900);
    letter-spacing: -0.035em;
}

.intro-panel h2,
.section-heading h2,
.page-hero h1 {
    font-size: clamp(28px, 4vw, 46px);
}

.intro-panel p,
.section-heading p,
.page-hero p,
.content-panel p {
    color: var(--stone-600);
    line-height: 1.8;
}

.home-search {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: var(--stone-100);
}

.home-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0 14px;
    outline: 0;
    background: transparent;
}

.home-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    color: var(--white);
    background: var(--green-700);
    font-weight: 900;
    cursor: pointer;
}

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

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

.category-tile {
    display: grid;
    gap: 12px;
    min-height: 150px;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(135deg, var(--green-800), var(--amber-600));
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, var(--stone-900), var(--green-700));
}

.category-tile:hover,
.movie-card:hover,
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 50px rgba(28, 25, 23, 0.17);
}

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

.category-tile strong {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.7;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--stone-200);
}

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

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

.poster-mask {
    position: absolute;
    inset: auto 12px 12px;
    display: grid;
    place-items: center;
    min-height: 36px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(20, 83, 45, 0.92);
    font-size: 13px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--stone-500);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card h3 a:hover {
    color: var(--green-800);
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-section {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 245, 244, 0.85));
}

.latest-section {
    margin-bottom: 54px;
}

.site-footer {
    margin-top: 70px;
    padding: 48px 0 26px;
    color: var(--stone-300);
    background: linear-gradient(110deg, var(--stone-950), var(--stone-800));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 32px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer p {
    max-width: 520px;
    color: var(--stone-300);
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin: 9px 0;
    color: var(--stone-300);
}

.site-footer a:hover {
    color: #86efac;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: var(--stone-500);
    text-align: center;
}

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

.page-hero {
    padding: 44px;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left, rgba(217, 119, 6, 0.24), transparent 36%), linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 244, 0.86));
    box-shadow: var(--shadow-card);
}

.small-hero p,
.category-hero p {
    max-width: 780px;
}

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

.category-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    min-height: 220px;
    padding: 20px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-posters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.category-posters img {
    aspect-ratio: 3 / 4;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(130px, 180px));
    gap: 12px;
    margin: 26px 0;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--stone-600);
    font-size: 12px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--stone-200);
    border-radius: 12px;
    padding: 0 12px;
    color: var(--stone-800);
    background: var(--white);
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(22, 163, 74, 0.58);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.10);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--stone-600);
    font-size: 14px;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: var(--green-800);
}

.detail-main {
    margin-top: 30px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 26px;
    align-items: stretch;
}

.player-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: var(--radius-xl);
    background: var(--stone-950);
    box-shadow: var(--shadow-soft);
}

.main-video {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    background: var(--stone-950);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(20, 83, 45, 0.15), rgba(12, 10, 9, 0.58));
    cursor: pointer;
}

.player-card.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    font-size: 34px;
    text-indent: 5px;
}

.play-overlay strong {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.detail-info {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 22px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.detail-poster {
    width: 100%;
    border-radius: var(--radius-lg);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(28, 25, 23, 0.16);
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-line {
    color: var(--stone-600);
    line-height: 1.8;
}

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

.movie-facts div {
    padding: 12px;
    border-radius: 14px;
    background: var(--stone-100);
}

.movie-facts dt {
    color: var(--stone-500);
    font-size: 12px;
    font-weight: 900;
}

.movie-facts dd {
    margin: 5px 0 0;
    color: var(--stone-900);
    font-weight: 900;
}

.content-panel {
    margin-top: 24px;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.content-panel h2 {
    font-size: 26px;
}

.content-panel p {
    margin-bottom: 0;
    font-size: 16px;
}

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

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

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero-stage {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 42px 22px 112px;
    }

    .hero-poster {
        width: min(260px, 70vw);
        margin: 0 auto;
        transform: rotate(0deg);
    }

    .hero-dots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        left: 18px;
        right: 18px;
    }

    .hero-dot:nth-child(n + 5) {
        display: none;
    }

    .intro-panel,
    .filter-panel,
    .footer-grid,
    .category-card,
    .detail-info {
        grid-template-columns: 1fr;
    }

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

    .home-search {
        border-radius: 18px;
    }

    .home-search button {
        min-height: 42px;
    }

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

@media (max-width: 640px) {
    .shell {
        width: min(100% - 22px, 1180px);
    }

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

    .hero-shell {
        width: min(100% - 14px, 1280px);
        border-radius: 24px;
    }

    .hero-stage {
        min-height: 700px;
    }

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

    .hero-desc {
        font-size: 15px;
    }

    .intro-panel,
    .ranking-section,
    .page-hero,
    .content-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .category-grid,
    .card-grid,
    .catalog-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

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

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

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

    .main-video,
    .player-card {
        min-height: 260px;
    }

    .movie-facts {
        grid-template-columns: 1fr;
    }
}
