:root {
    --primary-50: #fff7ed;
    --primary-100: #ffedd5;
    --primary-500: #f97316;
    --primary-600: #ea580c;
    --primary-700: #c2410c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --black: #000000;
    --white: #ffffff;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--gray-50);
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.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);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    width: min(1280px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-900);
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.26);
    font-size: 14px;
}

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

.nav-link,
.mobile-link {
    color: var(--gray-700);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--primary-700);
    background: var(--primary-50);
}

.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    width: min(360px, 32vw);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    overflow: hidden;
}

.nav-search input,
.mobile-search input,
.search-form-large input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--gray-900);
}

.nav-search input {
    padding: 11px 16px;
}

.nav-search button,
.mobile-search button,
.search-form-large button {
    border: 0;
    color: var(--white);
    background: var(--primary-600);
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button {
    padding: 11px 18px;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-form-large button:hover {
    background: var(--primary-700);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--gray-900);
}

.mobile-menu {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

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

.mobile-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--gray-50);
}

.mobile-search input {
    padding: 12px 14px;
}

.mobile-search button {
    padding: 12px 16px;
}

.section-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--black);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-media,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
    transform: scale(1.02);
}

.hero-shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 44%, rgba(0, 0, 0, 0.18) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0) 44%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 90px 0 140px;
}

.hero-copy {
    width: min(680px, 100%);
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-100);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

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

.hero-copy h1,
.hero-copy h2 {
    margin: 16px 0 20px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 2vw, 20px);
}

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

.hero-tags {
    margin: 24px 0 0;
}

.hero-tags span,
.detail-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: var(--primary-700);
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

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

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

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

.btn.primary,
.btn.small {
    color: var(--white);
    background: var(--primary-600);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.3);
}

.btn.primary:hover,
.btn.small:hover {
    background: var(--primary-700);
}

.btn.ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.btn.small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

.hero-panel {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 3;
    width: min(1280px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 12px;
    width: min(640px, 64%);
}

.hero-mini-card {
    position: relative;
    min-height: 96px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--gray-900);
    box-shadow: var(--shadow-card);
}

.hero-mini-card img {
    width: 100%;
    height: 100%;
    min-height: 96px;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero-mini-card:hover img {
    opacity: 0.95;
    transform: scale(1.05);
}

.hero-mini-card span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.hero-dots {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: rgba(17, 24, 39, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dot.active {
    width: 28px;
    border-radius: 999px;
    background: var(--primary-500);
}

.search-hero {
    margin-top: -34px;
    position: relative;
    z-index: 4;
}

.search-box-large {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 24px;
    padding: 28px;
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

.search-box-large h2,
.section-title h2,
.page-hero h1,
.detail-info h1,
.text-card h2,
.category-overview h2 {
    margin: 0;
    color: var(--gray-900);
    letter-spacing: -0.04em;
}

.search-box-large h2,
.section-title h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.search-form-large {
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 58px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
}

.search-form-large input {
    padding: 0 22px;
    font-size: 16px;
}

.search-form-large button {
    align-self: stretch;
    padding: 0 28px;
}

.search-form-large.inner {
    width: min(720px, 100%);
    margin-top: 24px;
}

.section-wrap {
    padding-top: 64px;
    padding-bottom: 64px;
}

.section-title,
.category-overview-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.section-title.left-only {
    justify-content: flex-start;
}

.section-title a,
.category-overview-head a {
    color: var(--primary-700);
    font-weight: 800;
}

.soft-block {
    padding: 42px;
    background: linear-gradient(135deg, var(--primary-50), var(--white));
    border: 1px solid var(--primary-100);
    border-radius: 28px;
}

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

.movie-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.32);
    box-shadow: var(--shadow-xl);
}

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

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-900), var(--primary-700));
}

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

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0));
    opacity: 0.92;
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: var(--white);
    font-weight: 800;
    border-radius: 999px;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(249, 115, 22, 0.96);
    font-size: 12px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(17, 24, 39, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.card-body {
    padding: 18px;
}

.card-meta {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

.card-body h3 {
    margin: 8px 0 8px;
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

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

.card-body p {
    margin: 0 0 14px;
    color: var(--gray-700);
    font-size: 14px;
}

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

.movie-card.compact .card-body p {
    display: none;
}

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

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

.category-tile,
.category-overview,
.text-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.category-tile {
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--gray-900);
    font-weight: 900;
}

.category-head strong {
    color: var(--primary-700);
    font-size: 13px;
}

.category-tile p,
.category-overview p,
.page-hero p {
    color: var(--gray-700);
}

.category-tile p {
    margin: 14px 0;
    min-height: 68px;
}

.category-samples {
    display: grid;
    gap: 8px;
}

.category-samples a {
    color: var(--gray-700);
    font-size: 14px;
}

.category-samples a:hover {
    color: var(--primary-700);
}

.page-hero.simple {
    background: linear-gradient(135deg, var(--primary-50), var(--white));
    border-bottom: 1px solid var(--primary-100);
}

.page-hero .section-wrap {
    padding-top: 56px;
    padding-bottom: 56px;
}

.page-hero h1 {
    margin-top: 10px;
    font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    font-size: 17px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 700;
}

.crumbs a:hover {
    color: var(--primary-700);
}

.crumbs.light {
    color: rgba(255, 255, 255, 0.72);
}

.crumbs.light a:hover {
    color: var(--primary-100);
}

.category-stack {
    display: grid;
    gap: 28px;
}

.category-overview {
    padding: 28px;
}

.category-overview-head {
    align-items: center;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.filter-chip {
    border: 1px solid var(--primary-100);
    color: var(--primary-700);
    background: var(--white);
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
    color: var(--white);
    background: var(--primary-600);
}

.empty-result {
    margin: 40px 0 0;
    padding: 26px;
    text-align: center;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: var(--gray-900);
}

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

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    filter: blur(8px);
    transform: scale(1.04);
}

.detail-overlay {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.66)), linear-gradient(0deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.1));
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    min-height: 520px;
    padding-top: 64px;
    padding-bottom: 64px;
}

.detail-poster {
    overflow: hidden;
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-info {
    color: var(--white);
}

.detail-info h1 {
    color: var(--white);
    margin: 16px 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
}

.detail-one-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
}

.detail-tags {
    margin-top: 24px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.detail-meta div {
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.detail-meta span,
.detail-meta strong {
    display: block;
}

.detail-meta span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta strong {
    margin-top: 4px;
    color: var(--white);
    font-size: 14px;
}

.watch-section {
    padding-bottom: 26px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    width: min(1040px, 100%);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: var(--black);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: var(--black);
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.54));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    padding-left: 7px;
    background: var(--primary-600);
    border-radius: 50%;
    box-shadow: 0 18px 42px rgba(234, 88, 12, 0.42);
    font-size: 38px;
}

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

.detail-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 30px;
}

.text-card {
    padding: 28px;
}

.text-card h2 {
    font-size: 26px;
}

.text-card p {
    margin: 14px 0 0;
    color: var(--gray-700);
    font-size: 16px;
}

.site-footer {
    margin-top: 40px;
    color: var(--gray-500);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.footer-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-links {
    display: flex;
    gap: 16px;
    color: var(--gray-700);
    font-weight: 700;
}

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

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

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

    .detail-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

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

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

    .menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .hero {
        min-height: 690px;
    }

    .hero-content {
        padding-top: 78px;
        padding-bottom: 190px;
    }

    .hero-panel {
        display: grid;
    }

    .hero-mini-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-box-large,
    .detail-text,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(260px, 72vw);
    }

    .footer-wrap {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .section-wrap,
    .nav-wrap,
    .mobile-menu,
    .footer-wrap {
        width: min(100% - 24px, 1280px);
    }

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

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

    .hero-actions,
    .section-title,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-box-large,
    .soft-block,
    .category-overview,
    .text-card {
        padding: 22px;
        border-radius: 22px;
    }

    .search-form-large {
        align-items: stretch;
        flex-direction: column;
        border-radius: 20px;
    }

    .search-form-large input {
        min-height: 54px;
    }

    .search-form-large button {
        min-height: 50px;
    }

    .movie-grid,
    .compact-grid,
    .ranking-grid,
    .search-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .player-shell {
        border-radius: 16px;
    }

    .play-overlay span {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
