:root {
    --color-red: #ef4444;
    --color-orange: #f97316;
    --color-yellow: #f59e0b;
    --color-dark: #111827;
    --color-muted: #6b7280;
    --color-soft: #f9fafb;
    --color-border: #e5e7eb;
    --shadow-soft: 0 16px 40px rgba(17, 24, 39, 0.08);
    --shadow-strong: 0 24px 70px rgba(239, 68, 68, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f3f4f6;
    color: var(--color-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: #1f2937;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    color: #fff;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
    font-size: 16px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.desktop-nav a {
    color: #374151;
    font-weight: 700;
    transition: color 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--color-red);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.top-search input,
.mobile-panel input,
.search-box input,
.filter-input {
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    color: #111827;
    outline: none;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

.top-search input {
    width: 220px;
    padding: 10px 15px;
}

.top-search input:focus,
.mobile-panel input:focus,
.search-box input:focus,
.filter-input:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.top-search button,
.mobile-panel button,
.search-box button,
.primary-button,
.ghost-button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.top-search button,
.mobile-panel button,
.search-box button,
.primary-button {
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    color: #fff;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.22);
}

.top-search button {
    padding: 10px 18px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(14px);
}

.top-search button:hover,
.mobile-panel button:hover,
.search-box button:hover,
.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #111827;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    padding: 16px 20px 22px;
    border-top: 1px solid var(--color-border);
    background: #fff;
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.mobile-panel a {
    font-weight: 800;
    color: #374151;
}

.mobile-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.mobile-panel input {
    width: 100%;
    padding: 10px 14px;
}

.mobile-panel button {
    padding: 10px 16px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 74px 20px 52px;
    background: radial-gradient(circle at top left, rgba(254, 226, 226, 0.95), transparent 38%),
                radial-gradient(circle at bottom right, rgba(255, 237, 213, 0.95), transparent 42%),
                linear-gradient(135deg, #fff7ed 0%, #fef2f2 48%, #fffbeb 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(28px);
    opacity: 0.32;
    animation: floatPulse 8s ease-in-out infinite;
}

.hero::before {
    top: -90px;
    left: -120px;
    background: #fca5a5;
}

.hero::after {
    right: -90px;
    bottom: -120px;
    background: #fdba74;
    animation-delay: 1.8s;
}

@keyframes floatPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}

.hero-shell {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 42px;
    align-items: center;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    font-weight: 900;
    font-size: 14px;
}

.hero h1 {
    margin: 22px 0 18px;
    max-width: 720px;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero h1 span {
    color: var(--color-red);
}

.hero-lead {
    max-width: 650px;
    margin: 0 0 28px;
    color: #4b5563;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-actions .ghost-button {
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.16);
    background: rgba(255, 255, 255, 0.72);
}

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

.hero-chips a,
.tag-row span,
.category-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff;
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.14);
    font-size: 13px;
    font-weight: 800;
}

.hero-chips a {
    padding: 8px 12px;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.08);
}

.hero-slider {
    position: relative;
    min-height: 450px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-poster {
    position: relative;
    height: 450px;
    border-radius: 28px;
    overflow: hidden;
    background: #111827;
    box-shadow: var(--shadow-strong);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

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

.hero-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.04));
}

.hero-poster-content {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    color: #fff;
}

.hero-poster-content h2 {
    margin: 10px 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.hero-poster-content p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.86);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    right: 24px;
    bottom: 24px;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 28px;
    background: #fff;
}

.page-hero {
    padding: 58px 20px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.page-hero-shell,
.content-shell,
.footer-shell {
    max-width: 1240px;
    margin: 0 auto;
}

.page-hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.content-section {
    padding: 44px 20px;
}

.content-section.white {
    background: #fff;
}

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

.section-title h2 {
    margin: 0 0 6px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
}

.section-title p {
    margin: 0;
    color: var(--color-muted);
}

.section-action {
    color: var(--color-red);
    font-weight: 900;
    white-space: nowrap;
}

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

.stat-card,
.category-card,
.info-panel,
.detail-card,
.search-panel {
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.stat-card {
    padding: 24px;
    background: linear-gradient(135deg, #fff, #fff7ed);
}

.stat-card strong {
    display: block;
    color: var(--color-red);
    font-size: 32px;
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: #4b5563;
    font-weight: 800;
}

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

.movie-grid.compact {
    grid-template-columns: repeat(3, 1fr);
}

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

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

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

.movie-cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover-gradient {
    opacity: 1;
}

.play-badge,
.rank-mark {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.play-badge {
    right: 14px;
    bottom: 14px;
    min-width: 56px;
    height: 30px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
    font-size: 13px;
}

.rank-mark {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-red), var(--color-yellow));
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

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

.movie-meta-line,
.movie-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.movie-meta-line span + span::before {
    content: "·";
    margin-right: 8px;
    color: #d1d5db;
}

.movie-card h3 {
    margin: 8px 0 8px;
    min-height: 56px;
    font-size: 19px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-card p {
    min-height: 48px;
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row span,
.category-tags span,
.detail-tags span {
    padding: 5px 10px;
    background: #fef2f2;
}

.movie-card-foot {
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

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

.category-card {
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.14);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0 0 16px;
    color: var(--color-muted);
}

.category-card strong {
    color: var(--color-red);
}

.filter-bar,
.search-panel {
    margin-bottom: 26px;
    padding: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.filter-input,
.search-box input {
    width: 100%;
    padding: 13px 16px;
}

.filter-meta,
.search-count {
    color: #6b7280;
    font-weight: 800;
    white-space: nowrap;
}

.search-panel {
    display: grid;
    gap: 16px;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-box button {
    padding: 0 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 800;
}

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

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

.player-card {
    overflow: hidden;
    border-radius: 26px;
    background: #050505;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    cursor: pointer;
}

.player-button {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.44), rgba(0, 0, 0, 0.55));
    cursor: pointer;
}

.player-button span {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    box-shadow: 0 18px 46px rgba(239, 68, 68, 0.42);
    font-size: 30px;
    padding-left: 4px;
}

.detail-card {
    padding: 26px;
    margin-top: 22px;
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.18;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    color: #6b7280;
    font-weight: 800;
}

.detail-summary,
.detail-review {
    color: #374151;
    font-size: 17px;
}

.detail-summary p,
.detail-review p {
    margin: 0 0 16px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
}

.side-panel {
    display: grid;
    gap: 18px;
}

.side-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.side-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

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

.side-card h2,
.side-card h3 {
    margin: 0 0 8px;
}

.side-card p {
    margin: 0;
    color: #6b7280;
}

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

.site-footer {
    margin-top: 36px;
    background: #111827;
    color: #d1d5db;
}

.footer-shell {
    padding: 38px 20px 28px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    color: #fff;
}

.site-footer p {
    max-width: 560px;
    margin: 12px 0 0;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-content: flex-start;
    font-weight: 800;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 20px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

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

.empty-state {
    display: none;
    padding: 34px;
    border-radius: 22px;
    background: #fff;
    text-align: center;
    color: #6b7280;
    font-weight: 800;
}

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

@media (max-width: 1100px) {
    .hero-shell,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .movie-grid.compact {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .side-panel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

    .nav-shell {
        height: 64px;
    }

    .hero {
        padding-top: 46px;
    }

    .hero-shell {
        gap: 28px;
    }

    .hero-slider,
    .hero-poster {
        min-height: 380px;
        height: 380px;
    }

    .movie-grid,
    .movie-grid.compact,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title,
    .footer-shell {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-bar,
    .search-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .brand {
        font-size: 19px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-slider,
    .hero-poster {
        min-height: 330px;
        height: 330px;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .stat-grid,
    .side-panel,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .movie-card h3 {
        min-height: auto;
    }
}
