:root {
    --red-950: #450a0a;
    --red-900: #7f1d1d;
    --red-800: #991b1b;
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-100: #fef3c7;
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --white: #ffffff;
    --shadow-soft: 0 18px 50px rgba(69, 10, 10, 0.14);
    --shadow-card: 0 12px 30px rgba(28, 25, 23, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--stone-900);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffbeb 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.2), rgba(217, 119, 6, 0.18));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(127, 29, 29, 0.12);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 32px rgba(127, 29, 29, 0.08);
}

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

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

.brand-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -0.08em;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red-800), var(--amber-700));
    box-shadow: 0 14px 26px rgba(153, 27, 27, 0.28);
}

.brand-mark.small {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
}

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

.brand-text strong {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: transparent;
    background: linear-gradient(90deg, var(--red-900), var(--amber-700));
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-text small {
    margin-top: 4px;
    color: var(--stone-600);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--stone-700);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red-800);
    background: #fff1f2;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(127, 29, 29, 0.12);
    background: #fff7ed;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--red-800);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(127, 29, 29, 0.1);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(217, 119, 6, 0.75), transparent 34%), linear-gradient(135deg, var(--red-950), var(--red-800) 48%, var(--amber-700));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255, 255, 255, 0.4) 50px, rgba(255, 255, 255, 0.4) 51px), repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255, 255, 255, 0.3) 50px, rgba(255, 255, 255, 0.3) 51px);
}

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

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

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

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(69, 10, 10, 0.92), rgba(69, 10, 10, 0.7) 42%, rgba(69, 10, 10, 0.18)), linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(12, 10, 9, 0.35));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.74fr);
    gap: 54px;
    align-items: center;
    padding: 70px 0 88px;
}

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

.hero-kicker,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 12px;
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    font-size: 13px;
    font-weight: 800;
}

.section-kicker,
.page-kicker {
    color: var(--red-800);
    border-color: rgba(153, 27, 27, 0.12);
    background: #fff1f2;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.06em;
    text-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

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

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

.btn-primary,
.btn-ghost,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: var(--red-900);
    background: var(--white);
    box-shadow: 0 18px 36px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover,
.btn-ghost:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.hero-panel {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(20px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-slide.is-active .hero-poster img {
    transform: scale(1.035);
}

.hero-meta-card {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 34px;
    padding: 16px;
    color: var(--white);
    border-radius: 18px;
    background: rgba(12, 10, 9, 0.72);
    backdrop-filter: blur(14px);
}

.hero-meta-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.hero-meta-card span {
    color: #fed7aa;
    font-size: 13px;
    font-weight: 700;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 30px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 30px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-arrows {
    display: flex;
    gap: 10px;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.content-section,
.page-hero,
.detail-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.content-section {
    padding: 70px 0;
}

.page-hero {
    padding: 72px 0 36px;
}

.page-hero h1 {
    max-width: 850px;
    color: var(--stone-950);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    margin-top: 18px;
    color: var(--stone-600);
    font-size: 18px;
    line-height: 1.8;
}

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

.section-head h2 {
    color: var(--stone-950);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head p {
    margin-top: 10px;
    color: var(--stone-600);
}

.section-more {
    color: var(--red-800);
    border: 1px solid rgba(153, 27, 27, 0.18);
    background: #fff7ed;
    white-space: nowrap;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(153, 27, 27, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 38, 38, 0.26);
    box-shadow: 0 20px 54px rgba(127, 29, 29, 0.18);
}

.movie-card.is-hidden {
    display: none;
}

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

.card-poster img,
.wide-poster img,
.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.movie-card:hover .card-poster img,
.wide-card:hover .wide-poster img,
.related-card:hover img {
    transform: scale(1.07);
}

.play-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: var(--white);
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.play-pill {
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red-700), var(--amber-600));
    font-size: 12px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--red-700);
}

.card-body {
    padding: 18px;
}

.card-meta,
.detail-meta,
.wide-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--stone-600);
    font-size: 12px;
    font-weight: 800;
}

.card-meta span,
.detail-meta span,
.wide-foot span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fff7ed;
}

.card-body h2 {
    margin-top: 12px;
    color: var(--stone-950);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 900;
}

.card-body h2 a:hover,
.wide-body h2 a:hover,
.related-card a:hover {
    color: var(--red-800);
}

.card-body p,
.wide-body p {
    margin-top: 9px;
    color: var(--stone-600);
    font-size: 14px;
    line-height: 1.65;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    color: var(--red-800);
    border-radius: 999px;
    background: #fee2e2;
    font-size: 12px;
    font-weight: 800;
}

.band-section {
    background: linear-gradient(90deg, rgba(254, 242, 242, 0.9), rgba(254, 243, 199, 0.8));
    border-top: 1px solid rgba(153, 27, 27, 0.08);
    border-bottom: 1px solid rgba(153, 27, 27, 0.08);
}

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

.wide-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 190px;
}

.wide-poster {
    overflow: hidden;
    background: #fee2e2;
}

.wide-body {
    padding: 20px;
}

.wide-top {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--red-800);
    font-size: 13px;
    font-weight: 900;
}

.list-rank {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-700), var(--amber-600));
}

.wide-body h2 {
    margin-top: 12px;
    color: var(--stone-950);
    font-size: 21px;
    line-height: 1.3;
    font-weight: 950;
}

.wide-foot {
    margin-top: 16px;
}

.category-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    padding: 24px;
    color: var(--white);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--red-800), var(--amber-700));
    box-shadow: var(--shadow-soft);
}

.category-card:nth-child(2) {
    background: linear-gradient(135deg, #7c2d12, #b91c1c);
}

.category-card:nth-child(3) {
    background: linear-gradient(135deg, #111827, #991b1b);
}

.category-card:nth-child(4) {
    background: linear-gradient(135deg, #44403c, #b45309);
}

.category-card h2 {
    position: relative;
    z-index: 2;
    font-size: 28px;
    font-weight: 950;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin-top: 12px;
    color: #ffedd5;
    line-height: 1.7;
}

.category-card span {
    position: absolute;
    right: -18px;
    bottom: -40px;
    color: rgba(255, 255, 255, 0.13);
    font-size: 110px;
    font-weight: 950;
    line-height: 1;
}

.search-panel {
    margin: 20px 0 36px;
    padding: 18px;
    border: 1px solid rgba(153, 27, 27, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-card);
}

.search-panel label {
    display: block;
    margin-bottom: 10px;
    color: var(--stone-700);
    font-size: 14px;
    font-weight: 900;
}

.search-box {
    display: flex;
    gap: 12px;
}

.search-box input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    color: var(--stone-900);
    border: 1px solid rgba(153, 27, 27, 0.18);
    border-radius: 14px;
    background: var(--white);
    outline: none;
}

.search-box input:focus {
    border-color: var(--red-700);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.search-clear {
    min-width: 88px;
    height: 48px;
    color: var(--white);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red-700), var(--amber-600));
    font-weight: 900;
}

.detail-wrap {
    padding: 42px 0 78px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    color: var(--red-800);
    font-weight: 900;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--stone-950);
    box-shadow: 0 24px 70px rgba(12, 10, 9, 0.28);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    position: relative;
    z-index: 2;
    width: 104px;
    height: 104px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--red-900);
    border: 8px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
    font-size: 28px;
    font-weight: 950;
}

.play-button span {
    margin-left: 4px;
}

.detail-card,
.text-card {
    border: 1px solid rgba(153, 27, 27, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.detail-card {
    overflow: hidden;
}

.detail-poster {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    padding: 22px;
}

.detail-info h1 {
    color: var(--stone-950);
    font-size: 32px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-meta {
    margin-top: 16px;
}

.text-card {
    margin-top: 24px;
    padding: 26px;
}

.text-card h2 {
    margin-bottom: 14px;
    color: var(--stone-950);
    font-size: 26px;
    font-weight: 950;
}

.text-card p {
    color: var(--stone-700);
    font-size: 16px;
    line-height: 1.95;
}

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

.related-card {
    overflow: hidden;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.related-card figure {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.related-card h3 {
    padding: 12px;
    color: var(--stone-950);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 900;
}

.site-footer {
    color: #d6d3d1;
    background: linear-gradient(180deg, var(--stone-900), var(--stone-950));
    border-top: 5px solid var(--red-800);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 36px;
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 34px;
}

.footer-grid h2 {
    margin-bottom: 16px;
    color: var(--white);
    font-size: 16px;
    font-weight: 950;
}

.footer-grid p {
    max-width: 330px;
    margin-top: 16px;
    color: #a8a29e;
    line-height: 1.8;
}

.footer-link {
    display: block;
    margin-top: 9px;
    color: #d6d3d1;
    font-size: 14px;
}

.footer-link:hover {
    color: #fbbf24;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    color: #a8a29e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

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

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

    .mobile-nav.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

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

    .hero-panel {
        max-width: 420px;
    }

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

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

@media (max-width: 680px) {
    .header-inner {
        min-height: 66px;
    }

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

    .brand-text strong {
        font-size: 20px;
    }

    .hero,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        gap: 30px;
        padding-top: 46px;
    }

    .hero-controls {
        bottom: 18px;
    }

    .hero-arrows {
        display: none;
    }

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

    .feature-grid,
    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .rank-list,
    .footer-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-template-columns: 118px minmax(0, 1fr);
        min-height: 166px;
    }

    .wide-body {
        padding: 16px;
    }

    .wide-body h2 {
        font-size: 18px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-clear {
        width: 100%;
    }
}
