:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --amber: #f59e0b;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.nav-shell {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon,
.footer-brand span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--white);
    border-radius: 14px;
    background: linear-gradient(135deg, #fb923c, var(--amber));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

.brand:hover .brand-icon {
    transform: scale(1.06);
}

.brand-icon {
    transition: transform 0.25s ease;
}

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

.brand-text strong {
    font-size: 1.35rem;
    background: linear-gradient(90deg, var(--orange-dark), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    color: var(--gray-500);
    font-size: 0.75rem;
    margin-top: 4px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.menu-toggle {
    display: none;
    border: 0;
    background: var(--gray-100);
    color: var(--gray-800);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-dark), var(--amber) 52%, #facc15);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.72'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 48px;
    align-items: center;
    padding: 78px 0;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 780px;
    font-size: clamp(2.75rem, 6vw, 5.8rem);
}

.hero-lead {
    max-width: 650px;
    margin: 24px 0 32px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

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

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

.eyebrow.cyan {
    color: var(--cyan);
}

.hero-search {
    width: min(100%, 680px);
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.22);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 15px 18px;
    border-radius: 999px;
    color: var(--gray-800);
}

.hero-search button,
.primary-action,
.secondary-action {
    border: 0;
    border-radius: 999px;
    padding: 14px 26px;
    font-weight: 800;
    cursor: pointer;
}

.hero-search button,
.primary-action {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.secondary-action {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.hero-chips a {
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
}

.hero-panel {
    padding: 18px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.hero-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-weight: 800;
}

.rail-buttons {
    display: flex;
    gap: 8px;
}

.rail-buttons button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    color: var(--white);
    cursor: pointer;
}

.hero-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
}

.hero-rail::-webkit-scrollbar {
    height: 0;
}

.hero-feature-card {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    scroll-snap-align: start;
    border-radius: 24px;
    background: var(--gray-900);
    box-shadow: var(--soft-shadow);
}

.hero-feature-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hero-feature-card:hover img {
    transform: scale(1.08);
}

.hero-feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.92));
}

.hero-feature-card span,
.hero-feature-card strong,
.hero-feature-card em {
    position: relative;
    z-index: 1;
    margin: 0 18px;
}

.hero-feature-card span {
    width: fit-content;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    font-size: 0.78rem;
    font-style: normal;
}

.hero-feature-card strong {
    font-size: 1.25rem;
    line-height: 1.25;
}

.hero-feature-card em {
    margin-top: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-style: normal;
}

.section-block {
    padding: 72px 0;
}

.soft-blue {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-heading h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.15;
}

.section-heading a {
    color: var(--orange-dark);
    font-weight: 800;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.movie-card.featured .poster-link {
    aspect-ratio: 16 / 10;
}

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

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

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 28px;
    padding: 4px 10px;
    color: var(--white);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.76);
    backdrop-filter: blur(8px);
}

.year-badge {
    left: 12px;
}

.rank-badge {
    right: 12px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--orange-dark);
}

.movie-meta {
    margin: 7px 0 9px;
    color: var(--gray-500);
    font-size: 0.86rem;
}

.movie-desc {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span,
.detail-tags span,
.info-table strong span {
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--orange-dark);
    background: #fff7ed;
    font-size: 0.78rem;
    font-weight: 700;
}

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

.category-card,
.category-overview-card {
    display: block;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card {
    padding: 22px;
}

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

.category-card span,
.category-overview-card span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--orange-dark);
    font-weight: 850;
}

.category-card strong,
.category-overview-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.12rem;
}

.category-card em,
.category-overview-card p {
    margin: 0;
    color: var(--gray-600);
    font-style: normal;
    font-size: 0.93rem;
}

.category-overview-card {
    overflow: hidden;
}

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

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    padding: 3px;
    background: #fff7ed;
}

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

.page-hero {
    position: relative;
    color: var(--white);
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.24);
}

.page-hero .container {
    position: relative;
    z-index: 1;
    padding: 68px 0;
}

.page-hero h1 {
    max-width: 760px;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.page-hero p:last-child {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
}

.filter-panel {
    position: sticky;
    top: 76px;
    z-index: 30;
    background: rgba(249, 250, 251, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--gray-200);
}

.filter-inner {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
    gap: 14px;
    padding: 18px 0;
}

.filter-inner label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--gray-600);
    font-size: 0.82rem;
    font-weight: 800;
}

.filter-inner input,
.filter-inner select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--white);
    color: var(--gray-800);
    outline: 0;
    padding: 11px 13px;
}

.filter-inner input:focus,
.filter-inner select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.empty-state {
    display: none;
    margin: 32px 0 0;
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--gray-600);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.empty-state.is-visible {
    display: block;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.detail-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
    min-height: 560px;
    padding: 72px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

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

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

.breadcrumbs a:hover {
    color: var(--white);
}

.detail-copy h1 {
    max-width: 820px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.detail-lead {
    max-width: 850px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
}

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

.detail-meta span {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
}

.watch-section {
    padding: 56px 0 34px;
    background: var(--gray-900);
}

.compact-heading {
    color: var(--white);
}

.compact-heading h2 {
    color: var(--white);
}

.watch-player {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.64));
    cursor: pointer;
}

.player-overlay strong {
    font-size: 1.12rem;
}

.play-circle {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.42);
    font-size: 1.8rem;
}

.detail-content {
    padding: 48px 0 10px;
}

.story-card {
    padding: 34px;
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.story-card h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 1.45rem;
}

.story-card p {
    margin: 0 0 28px;
    color: var(--gray-700);
    font-size: 1.04rem;
}

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

.info-table div {
    padding: 16px;
    border-radius: 18px;
    background: var(--gray-50);
}

.info-table span {
    display: block;
    margin-bottom: 6px;
    color: var(--gray-500);
    font-size: 0.82rem;
    font-weight: 800;
}

.info-table strong {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--gray-900);
}

.text-page {
    padding: 64px 0;
}

.text-page h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: 1.55rem;
}

.text-page p {
    margin: 0 0 28px;
    color: var(--gray-700);
    font-size: 1.05rem;
}

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

.support-grid div {
    padding: 26px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 52px 0;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fb923c;
    font-size: 1.05rem;
}

.footer-grid p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.62);
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

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

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

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

@media (max-width: 860px) {
    .nav-shell {
        min-height: 68px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-link {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #fff7ed;
    }

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

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

    .hero-panel {
        min-width: 0;
    }

    .filter-panel {
        position: static;
    }

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

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

    .detail-grid {
        min-height: auto;
        padding: 42px 0;
    }

    .detail-poster {
        max-width: 260px;
    }
}

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

    .brand-text strong {
        font-size: 1.05rem;
    }

    .brand-text small {
        display: none;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 24px;
    }

    .hero-search button {
        width: 100%;
    }

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

    .featured-grid,
    .compact-grid,
    .rank-grid,
    .library-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

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

    .movie-desc,
    .tag-row {
        display: none;
    }

    .info-table,
    .footer-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
    }

    .story-card {
        padding: 22px;
    }

    .play-circle {
        width: 62px;
        height: 62px;
    }
}
