/*
  Static movie site theme.
  The visual language follows the uploaded React/Tailwind build: light stone background,
  red-to-pink brand gradient, rounded cards, soft shadows, large cinematic hero carousel,
  and responsive grid/list sections.
*/

:root {
    --site-bg: #fafaf9;
    --surface: #ffffff;
    --surface-soft: #fff7f7;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --brand-red: #dc2626;
    --brand-pink: #db2777;
    --brand-amber: #d97706;
    --shadow-soft: 0 18px 40px rgba(28, 25, 23, 0.08);
    --shadow-strong: 0 28px 70px rgba(28, 25, 23, 0.20);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --container: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--stone-900);
    background: radial-gradient(circle at top left, #fff1f2 0, transparent 32rem), var(--site-bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

button,
a,
input,
select {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(231, 229, 228, 0.72);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.logo-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-pink));
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.25);
}

.logo-text {
    font-size: clamp(20px, 3vw, 28px);
    background: linear-gradient(90deg, #b91c1c, #be185d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a,
.mobile-nav a {
    color: var(--stone-700);
    text-decoration: none;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
    color: var(--brand-red);
}

.header-search {
    position: relative;
    width: 220px;
}

.header-search input,
.filter-input,
.filter-select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--stone-200);
    border-radius: 999px;
    background: #ffffff;
    color: var(--stone-900);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    padding: 10px 14px 10px 40px;
}

.header-search::before {
    content: "🔎";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.56;
}

.header-search input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 4px rgba(254, 202, 202, 0.75);
}

.mobile-menu-button {
    display: none;
    border: 0;
    border-radius: 12px;
    background: var(--stone-100);
    color: var(--stone-800);
    padding: 10px 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-nav a {
    padding: 10px 14px;
    border-radius: 12px;
}

.mobile-nav a:hover {
    background: #fee2e2;
}

.hero {
    position: relative;
    min-height: 72vh;
    background: var(--stone-900);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 850ms ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-slide.is-active .hero-image {
    animation: heroZoom 9s linear forwards;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.72)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    min-height: 72vh;
    padding: 9rem 0 5rem;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    color: #fecdd3;
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-description {
    max-width: 680px;
    margin: 0 0 24px;
    color: #e7e5e4;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta,
.card-meta,
.detail-meta,
.inline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta {
    margin-bottom: 28px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--stone-100);
    color: var(--stone-700);
    font-size: 13px;
    font-weight: 700;
}

.hero .pill {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    backdrop-filter: blur(12px);
}

.pill.brand {
    background: linear-gradient(90deg, var(--brand-red), var(--brand-pink));
    color: #ffffff;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-pink));
    box-shadow: 0 18px 36px rgba(220, 38, 38, 0.26);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 48px rgba(220, 38, 38, 0.34);
}

.btn.secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: translateY(-50%) scale(1.05);
}

.hero-control.prev {
    left: max(20px, calc((100vw - var(--container)) / 2));
}

.hero-control.next {
    right: max(20px, calc((100vw - var(--container)) / 2));
}

.hero-dots {
    position: absolute;
    z-index: 4;
    right: max(20px, calc((100vw - var(--container)) / 2));
    bottom: 38px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 32px;
    background: #ffffff;
}

.main-content {
    padding: 56px 0 72px;
}

.section-stack {
    display: grid;
    gap: 72px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-title-group {
    display: grid;
    gap: 7px;
}

.section-kicker {
    color: var(--brand-red);
    font-weight: 850;
    letter-spacing: 0.04em;
}

.section-title {
    margin: 0;
    color: var(--stone-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.section-desc {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--stone-600);
    line-height: 1.75;
}

.section-link {
    color: var(--brand-red);
    font-weight: 800;
    text-decoration: none;
}

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

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

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

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(231, 229, 228, 0.74);
    border-radius: var(--radius-lg);
    color: inherit;
    background: var(--surface);
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(28, 25, 23, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(248, 113, 113, 0.35);
    box-shadow: var(--shadow-soft);
}

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #292524, #7f1d1d);
}

.movie-cover.poster {
    aspect-ratio: 3 / 4;
}

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

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

.cover-gradient {
    position: absolute;
    inset: auto 0 0;
    min-height: 55%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    backdrop-filter: blur(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.duration-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
}

.duration-badge {
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 36px;
    padding: 7px 10px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-pink));
    text-align: center;
}

.card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.card-title {
    margin: 0;
    color: var(--stone-900);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
}

.card-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--stone-600);
    font-size: 14px;
    line-height: 1.58;
}

.card-meta {
    color: var(--stone-500);
    font-size: 12px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 10px;
}

.horizontal-card .movie-cover {
    border-radius: 14px;
}

.feature-band {
    margin-inline: calc((100% - 100vw) / 2);
    padding: 56px max(16px, calc((100vw - var(--container)) / 2));
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.dark-band {
    border-radius: var(--radius-xl);
    padding: 42px;
    background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.32), transparent 32rem), linear-gradient(135deg, #1c1917, #292524);
    color: #ffffff;
}

.dark-band .section-title,
.dark-band .section-desc {
    color: #ffffff;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid rgba(231, 229, 228, 0.9);
    border-radius: 999px;
    color: var(--stone-700);
    background: #ffffff;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-chip:hover,
.category-chip.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-pink));
    transform: translateY(-2px);
}

.category-panel {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(231, 229, 228, 0.78);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(28, 25, 23, 0.05);
}

.category-panel h3 {
    margin: 0;
    font-size: 22px;
}

.category-panel p {
    margin: 0;
    color: var(--stone-600);
    line-height: 1.7;
}

.category-count {
    color: var(--brand-red);
    font-size: 30px;
    font-weight: 900;
}

.page-hero {
    padding: 66px 0 44px;
    background: linear-gradient(135deg, #fff1f2, #fdf2f8 52%, #ffffff);
    border-bottom: 1px solid rgba(231, 229, 228, 0.78);
}

.page-hero h1 {
    max-width: 840px;
    margin: 0;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

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

.breadcrumb a {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 800;
}

.filters {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(231, 229, 228, 0.8);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(28, 25, 23, 0.04);
}

.filter-input,
.filter-select {
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 14px;
}

.empty-state {
    display: none;
    padding: 38px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    text-align: center;
    color: var(--stone-600);
}

.detail-hero {
    position: relative;
    padding: 54px 0 36px;
    overflow: hidden;
    color: #ffffff;
    background: var(--stone-900);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--detail-bg) center / cover no-repeat;
    filter: blur(18px);
    transform: scale(1.08);
    opacity: 0.32;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.94), rgba(28, 25, 23, 0.72));
}

.detail-hero .container {
    position: relative;
    z-index: 2;
}

.detail-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
    background: linear-gradient(135deg, #292524, #7f1d1d);
}

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

.detail-title {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: #e7e5e4;
    font-size: 19px;
    line-height: 1.75;
}

.detail-meta .pill {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.player-card {
    margin-top: 34px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: var(--shadow-strong);
}

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

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle, rgba(220, 38, 38, 0.32), transparent 24rem),
        rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.play-overlay.is-hidden {
    display: none;
}

.big-play-button {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-pink));
    box-shadow: 0 22px 54px rgba(220, 38, 38, 0.42);
    font-size: 34px;
}

.player-status {
    padding: 12px 18px;
    color: #d6d3d1;
    background: #111111;
    font-size: 14px;
}

.prose-card {
    padding: 30px;
    border: 1px solid rgba(231, 229, 228, 0.78);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(28, 25, 23, 0.06);
}

.prose-card h2,
.prose-card h3 {
    margin-top: 0;
}

.prose-card p {
    color: var(--stone-700);
    line-height: 1.9;
}

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

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

.mini-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(231, 229, 228, 0.78);
    border-radius: 16px;
    color: inherit;
    background: #ffffff;
    text-decoration: none;
}

.mini-card img {
    width: 108px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #292524, #7f1d1d);
}

.mini-card strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--stone-900);
    line-height: 1.35;
}

.mini-card span {
    color: var(--stone-500);
    font-size: 12px;
}

.site-footer {
    color: #d6d3d1;
    background: linear-gradient(135deg, #1c1917, #292524);
}

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

.site-footer a {
    color: #d6d3d1;
    text-decoration: none;
}

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

.footer-title {
    color: #ffffff;
    font-weight: 850;
    margin-bottom: 14px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(120, 113, 108, 0.35);
    color: #a8a29e;
    font-size: 14px;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-amber), #ea580c);
    box-shadow: 0 16px 32px rgba(217, 119, 6, 0.32);
    cursor: pointer;
}

.back-to-top.is-visible {
    display: block;
}

@keyframes heroZoom {
    from {
        transform: scale(1.03);
    }

    to {
        transform: scale(1.10);
    }
}

@media (max-width: 980px) {
    .main-nav,
    .header-search {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero-control {
        display: none;
    }

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

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

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

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

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

    .hero,
    .hero-content {
        min-height: 74vh;
    }

    .hero-content {
        padding: 7.2rem 0 4rem;
    }

    .hero-dots {
        left: 12px;
        right: auto;
        bottom: 18px;
    }

    .grid.cards-2,
    .grid.cards-3,
    .grid.cards-4,
    .grid.cards-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-cover {
        aspect-ratio: 3 / 4;
    }

    .horizontal-card {
        grid-template-columns: 128px minmax(0, 1fr);
        gap: 12px;
    }

    .horizontal-card .card-desc {
        display: none;
    }

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

    .dark-band,
    .prose-card {
        padding: 22px;
        border-radius: 20px;
    }

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

@media (max-width: 460px) {
    .grid.cards-2,
    .grid.cards-3,
    .grid.cards-4,
    .grid.cards-5 {
        grid-template-columns: 1fr;
    }

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