:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --orange: #f97316;
    --green: #064e3b;
    --green-soft: #0f766e;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #fff7ed;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 28%, #f8fafc 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "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;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.site-nav {
    width: min(1180px, calc(100% - 32px));
    height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(220, 38, 38, 0.25);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.18;
}

.brand-copy strong {
    font-size: 20px;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--red), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link {
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--red);
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.search-panel input,
.category-toolbar input {
    width: 210px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 16px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.category-toolbar input:focus {
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.nav-search button,
.mobile-search button,
.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.24);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--red);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.mobile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.mobile-links .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
}

.page-shell {
    padding-top: 74px;
}

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

.hero {
    position: relative;
    min-height: 720px;
    padding: 84px 0 70px;
    overflow: hidden;
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.72;
    z-index: -1;
}

.hero::before {
    width: 440px;
    height: 440px;
    top: 84px;
    left: -180px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.34), rgba(249, 115, 22, 0));
}

.hero::after {
    width: 520px;
    height: 520px;
    right: -160px;
    bottom: 30px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.26), rgba(220, 38, 38, 0));
}

.hero-carousel {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 46px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-content {
    position: relative;
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.74));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #7f1d1d;
    background: rgba(254, 226, 226, 0.9);
    font-weight: 800;
    font-size: 14px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--red), var(--orange), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-summary {
    max-width: 680px;
    margin: 0 0 26px;
    color: #374151;
    font-size: clamp(18px, 2vw, 24px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 18px 36px rgba(220, 38, 38, 0.28);
}

.button-light {
    color: #991b1b;
    background: #ffffff;
    border: 1px solid rgba(220, 38, 38, 0.16);
}

.hero-visual {
    position: relative;
    min-height: 470px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
    background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.78)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.22), rgba(6, 78, 59, 0.32));
}

.hero-poster-card {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    color: #ffffff;
}

.hero-poster-card img {
    width: 150px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.hero-poster-card strong {
    display: block;
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero-poster-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #991b1b;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.24);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: var(--red);
}

.search-panel {
    margin-top: -34px;
    position: relative;
    z-index: 5;
}

.search-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-card input {
    flex: 1;
    width: auto;
}

.section {
    padding: 68px 0;
}

.section.white {
    background: #ffffff;
}

.section.soft {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

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

.eyebrow {
    display: block;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-head h2,
.page-title h1,
.detail-copy h1 {
    margin: 6px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
    max-width: 620px;
    color: var(--muted);
    margin: 10px 0 0;
}

.section-link {
    color: var(--red);
    font-weight: 900;
}

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

.movie-card {
    position: relative;
    min-width: 0;
    border-radius: 22px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 56px rgba(15, 23, 42, 0.16);
}

.poster-link,
.poster-frame {
    display: block;
}

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

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

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

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(17, 24, 39, 0.18));
    pointer-events: none;
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    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(--red), var(--orange));
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

.movie-body {
    padding: 16px;
}

.movie-body.compact {
    padding: 14px;
}

.movie-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 44px;
    color: var(--ink);
    font-weight: 900;
    line-height: 1.35;
    transition: color 0.2s ease;
}

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

.movie-meta {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 62px;
    margin: 10px 0 12px;
    color: #4b5563;
    font-size: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    padding: 20px;
    border-radius: 26px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #7f1d1d, #dc2626 50%, #f97316);
    box-shadow: 0 18px 42px rgba(220, 38, 38, 0.22);
}

.category-card:nth-child(even) {
    background: linear-gradient(135deg, #064e3b, #0f766e 52%, #f97316);
}

.category-card strong {
    display: block;
    position: relative;
    z-index: 2;
    font-size: 24px;
    margin-top: 8px;
}

.category-card small,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card small {
    opacity: 0.78;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 900;
}

.category-card p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.category-preview {
    position: absolute;
    right: -12px;
    bottom: -10px;
    display: flex;
    gap: 8px;
    transform: rotate(-8deg);
    opacity: 0.72;
}

.category-preview img {
    width: 62px;
    height: 86px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.3);
}

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

.ranking-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.rank-number {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-weight: 900;
}

.rank-item img {
    width: 64px;
    height: 86px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-copy {
    min-width: 0;
}

.rank-copy strong,
.rank-copy small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-copy strong {
    font-size: 16px;
}

.rank-copy small {
    color: var(--muted);
    margin-top: 4px;
}

.page-hero {
    padding: 78px 0 46px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #ffffff;
}

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

.page-title p {
    color: rgba(255, 255, 255, 0.86);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0;
    color: var(--muted);
    font-size: 14px;
}

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

.category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

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

.chip {
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: 999px;
    padding: 9px 14px;
    color: #991b1b;
    background: #fff7ed;
    cursor: pointer;
    font-weight: 900;
}

.chip.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.detail-hero {
    padding: 110px 0 52px;
    background: linear-gradient(135deg, #111827, #7f1d1d 58%, #f97316);
    color: #ffffff;
}

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

.player-card,
.detail-side,
.content-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.player-card {
    background: #050505;
}

.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;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(220, 38, 38, 0.2), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-size: 34px;
    line-height: 1;
    box-shadow: 0 22px 50px rgba(220, 38, 38, 0.34);
}

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

.detail-copy {
    padding: 24px;
    color: #ffffff;
}

.detail-copy p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.detail-side {
    padding: 20px;
}

.detail-side img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    object-fit: cover;
}

.side-meta {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    color: #374151;
}

.side-meta span {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.side-meta b {
    color: var(--ink);
}

.content-card {
    padding: 30px;
    margin-bottom: 28px;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.content-card p {
    margin: 0;
    color: #374151;
}

.content-card p + p {
    margin-top: 14px;
}

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

.search-results {
    min-height: 420px;
}

.empty-state {
    display: none;
    padding: 32px;
    border-radius: 22px;
    color: var(--muted);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    text-align: center;
}

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

.site-footer {
    color: #ffffff;
    background: linear-gradient(135deg, #064e3b, #065f46 48%, #052e2b);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 30px;
    padding: 46px 0 30px;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-brand strong {
    display: block;
    color: #fb923c;
    font-size: 22px;
}

.footer-brand p {
    max-width: 580px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

[data-hidden="true"] {
    display: none !important;
}

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

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

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

    .hero-slide,
    .detail-layout,
    .ranking-wrap {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        position: relative;
        display: none;
    }

    .hero-slide.is-active {
        display: grid;
    }

    .hero-carousel {
        min-height: auto;
    }
}

@media (max-width: 820px) {
    .site-nav {
        height: 66px;
    }

    .nav-links {
        display: none;
    }

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

    .mobile-panel.is-open {
        display: block;
    }

    .mobile-search input {
        width: 100%;
        flex: 1;
    }

    .page-shell {
        padding-top: 66px;
    }

    .hero {
        min-height: auto;
        padding: 48px 0 46px;
    }

    .hero-content {
        padding: 28px;
        border-radius: 26px;
    }

    .hero-visual {
        min-height: 390px;
    }

    .hero-poster-card img {
        width: 110px;
    }

    .hero-poster-card strong {
        font-size: 22px;
    }

    .search-card,
    .category-toolbar,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .brand-copy small {
        display: none;
    }

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

    .hero-poster-card {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .hero-poster-card p {
        display: none;
    }

    .movie-body {
        padding: 12px;
    }

    .movie-title {
        min-height: 40px;
        font-size: 15px;
    }

    .movie-desc {
        display: none;
    }

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