:root {
    --bg: #fff7ed;
    --bg-soft: #fdf2f8;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #ef4444;
    --secondary: #f97316;
    --accent: #ec4899;
    --card: #ffffff;
    --line: rgba(239, 68, 68, 0.14);
    --shadow: 0 20px 45px rgba(127, 29, 29, 0.12);
    --shadow-strong: 0 28px 70px rgba(127, 29, 29, 0.24);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 48%, #fef2f2 100%);
}

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

img {
    display: block;
    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: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(239, 68, 68, 0.12);
    box-shadow: 0 8px 28px rgba(127, 29, 29, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #111827;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.34);
}

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

.main-nav a {
    padding: 10px 15px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ef4444;
    background: #fff1f2;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ef4444;
    border-radius: 99px;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms ease;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.78) 42%, rgba(17, 24, 39, 0.18) 100%), var(--hero-image);
    background-position: center;
    background-size: cover;
}

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

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 46px;
    padding: 96px 0 88px;
    color: #ffffff;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-copy p {
    margin: 22px 0 0;
    max-width: 690px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.72;
}

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

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

.hero-tags span,
.card-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.card-tags span,
.detail-tags span {
    color: #c2410c;
    background: #ffedd5;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    box-shadow: 0 16px 35px rgba(239, 68, 68, 0.34);
}

.btn-light {
    color: #ef4444;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 35px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
    color: #ef4444;
    background: #fff1f2;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-search {
    display: flex;
    width: min(580px, 100%);
    margin-top: 26px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: #ffffff;
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    border: 0;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease;
}

.hero-dots button.is-active {
    width: 36px;
    background: #ffffff;
}

.section {
    padding: 76px 0;
}

.section-soft {
    background: rgba(255, 255, 255, 0.42);
}

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

.section-title.center {
    display: block;
    text-align: center;
}

.section-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #c2410c;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
    font-weight: 900;
}

.section-title h1,
.section-title h2 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.section-title p {
    max-width: 660px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

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

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

.poster-link img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 450ms ease;
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.46));
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-weight: 950;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.36);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #ef4444;
    font-size: 12px;
    font-weight: 850;
}

.movie-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 950;
}

.movie-card h3 a:hover {
    color: #ef4444;
}

.movie-card p {
    margin: 10px 0 14px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
}

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

.category-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316 52%, #ec4899);
    box-shadow: var(--shadow);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

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

.category-card strong {
    font-size: 24px;
    line-height: 1.2;
}

.category-card span {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.top-banner {
    padding: 80px 0;
    color: #ffffff;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(135deg, #7f1d1d, #9a3412 48%, #831843);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 30px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 32px rgba(127, 29, 29, 0.08);
}

.filter-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 16px;
    padding: 13px 16px;
    background: #fff7ed;
    color: #1f2937;
}

.empty-state {
    display: none;
    padding: 36px;
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.detail-shell {
    padding: 56px 0 76px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    background: #fee2e2;
    box-shadow: var(--shadow-strong);
}

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

.detail-main h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 950;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #c2410c;
    background: #ffedd5;
    font-weight: 850;
}

.detail-main .lead {
    max-width: 820px;
    color: #4b5563;
    font-size: 20px;
    line-height: 1.8;
}

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

.player-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.68));
    cursor: pointer;
    transition: opacity 180ms ease;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ef4444;
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
}

.content-panel {
    margin-top: 34px;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.content-panel h2 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 950;
}

.content-panel p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
    white-space: pre-line;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(127, 29, 29, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.compact-card img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.compact-card strong,
.compact-card small {
    display: block;
}

.compact-card strong {
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 17px;
    line-height: 1.3;
}

.compact-card small {
    color: #6b7280;
    line-height: 1.5;
}

.site-footer {
    padding: 50px 0;
    color: #ffffff;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 36px;
}

.footer-brand {
    color: #ffffff;
}

.site-footer p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1024px) {
    .hero-inner,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

@media (max-width: 760px) {
    .nav-wrap {
        min-height: 64px;
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 20px;
        background: #ffffff;
        box-shadow: var(--shadow-strong);
    }

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

    .main-nav a {
        padding: 12px 14px;
    }

    .hero-carousel {
        min-height: 640px;
    }

    .hero-inner {
        padding: 76px 0 84px;
    }

    .hero-search,
    .filter-panel {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .hero-search {
        display: grid;
        gap: 8px;
        border-radius: 20px;
    }

    .hero-search input {
        min-height: 44px;
    }

    .section {
        padding: 54px 0;
    }

    .section-title {
        display: block;
    }

    .section-actions {
        margin-top: 18px;
    }

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

    .detail-shell {
        padding-top: 34px;
    }

    .content-panel {
        padding: 22px;
    }
}
