:root {
    --cream: #fff7ed;
    --paper: #fffbeb;
    --soft: #fef3c7;
    --gold: #f59e0b;
    --red: #991b1b;
    --deep-red: #7f1d1d;
    --ink: #2a1713;
    --muted: #7c4a2d;
    --shadow: 0 24px 60px rgba(127, 29, 29, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #fef3c7 44%, #fee2e2 100%);
    font-family: "Noto Serif SC", "Microsoft YaHei", "PingFang SC", serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(254, 226, 226, 0.96));
    border-bottom: 2px solid var(--red);
    box-shadow: 0 12px 30px rgba(127, 29, 29, 0.16);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fef3c7;
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    box-shadow: 0 14px 32px rgba(127, 29, 29, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: rotate(6deg) scale(1.04);
}

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

.brand-name {
    color: var(--deep-red);
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-subtitle {
    color: var(--red);
    font-size: 12px;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link,
.mobile-link {
    color: var(--deep-red);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #dc2626;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(153, 27, 27, 0.1);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

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

.mobile-menu {
    display: none;
    padding: 10px 24px 18px;
    border-top: 1px solid rgba(153, 27, 27, 0.18);
    background: #fffbeb;
}

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

.hero {
    position: relative;
    height: 600px;
    min-height: 72vh;
    overflow: hidden;
    background: #2a1713;
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease;
}

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

.hero-content {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    text-align: center;
    color: white;
    padding: 48px 24px;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.hero-kicker {
    margin: 0 0 12px;
    color: #fde68a;
    font-size: 18px;
    letter-spacing: 0.18em;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6.2vw, 76px);
    line-height: 1.05;
    font-weight: 900;
}

.hero h2 {
    margin: 0 0 14px;
    color: #fcd34d;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 800;
}

.hero-summary {
    width: min(760px, 100%);
    margin: 0 auto 22px;
    color: #fffbeb;
    font-size: clamp(16px, 2.5vw, 22px);
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.genre-tags,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    justify-content: center;
    margin-bottom: 28px;
}

.hero-tags span,
.detail-tags span,
.genre-tags span,
.movie-meta-line span,
.rank-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #7f1d1d;
    background: rgba(254, 243, 199, 0.92);
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.glass-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: white;
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    box-shadow: 0 16px 34px rgba(127, 29, 29, 0.3);
}

.glass-button {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.glass-button:hover,
.section-link:hover {
    transform: translateY(-2px) scale(1.02);
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #fcd34d;
}

.content-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 68px 0;
}

.soft-panel-section {
    width: 100%;
    padding-left: max(16px, calc((100% - 1280px) / 2));
    padding-right: max(16px, calc((100% - 1280px) / 2));
    background: rgba(255, 251, 235, 0.62);
    border-top: 1px solid rgba(153, 27, 27, 0.12);
    border-bottom: 1px solid rgba(153, 27, 27, 0.12);
}

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

.section-head h2 {
    margin: 0;
    color: var(--deep-red);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-link {
    min-height: 40px;
    color: var(--red);
    background: #fff7ed;
    border: 1px solid rgba(153, 27, 27, 0.16);
    box-shadow: 0 12px 30px rgba(127, 29, 29, 0.1);
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 251, 235, 0.95);
    border: 1px solid rgba(153, 27, 27, 0.14);
    box-shadow: 0 18px 42px rgba(127, 29, 29, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

.top-grid .movie-cover {
    aspect-ratio: 16 / 9;
}

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

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.58));
}

.movie-body {
    padding: 18px;
}

.movie-body h3 {
    margin: 10px 0 8px;
    color: var(--deep-red);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-body h3 a:hover {
    color: #dc2626;
}

.movie-body p {
    min-height: 54px;
    margin: 0 0 14px;
    color: #6b3e2c;
    line-height: 1.7;
    font-size: 14px;
}

.movie-meta-line span,
.genre-tags span {
    min-height: 24px;
    padding: 3px 8px;
    color: #991b1b;
    background: #fef3c7;
    font-size: 12px;
}

.rank-badge {
    color: #fffbeb !important;
    background: linear-gradient(135deg, #b91c1c, #7f1d1d) !important;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    padding: 24px;
    border-radius: 26px;
    color: #fffbeb;
    background: linear-gradient(135deg, #991b1b, #7f1d1d 48%, #451a03);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
}

.category-name {
    position: relative;
    z-index: 2;
    display: block;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 10px;
}

.category-desc {
    position: relative;
    z-index: 2;
    display: block;
    color: #fde68a;
    line-height: 1.7;
}

.category-images {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: grid;
    grid-template-columns: repeat(2, 64px);
    gap: 8px;
    opacity: 0.45;
    transform: rotate(-8deg);
}

.category-images img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: #451a03;
}

.ranking-section {
    padding-top: 36px;
}

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

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

.compact-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 160px;
}

.compact-card .movie-cover {
    height: 100%;
    aspect-ratio: auto;
}

.compact-card .movie-body h3 {
    font-size: 18px;
}

.compact-card .movie-body p {
    min-height: auto;
}

.page-hero {
    min-height: 340px;
    display: grid;
    place-items: center;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, rgba(69, 26, 3, 0.92), rgba(153, 27, 27, 0.92)), url('../1.jpg');
    background-size: cover;
    background-position: center;
    padding: 56px 18px;
}

.small-hero h1 {
    margin: 8px 0 14px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.1;
    font-weight: 900;
}

.small-hero p {
    margin: 0;
    color: #fde68a;
    letter-spacing: 0.12em;
}

.small-hero span {
    display: block;
    width: min(760px, 100%);
    margin: 0 auto;
    color: #fffbeb;
    line-height: 1.8;
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 190px));
    gap: 14px;
    padding: 18px;
    margin-bottom: 26px;
    border-radius: 22px;
    background: rgba(255, 251, 235, 0.86);
    border: 1px solid rgba(153, 27, 27, 0.14);
    box-shadow: 0 16px 36px rgba(127, 29, 29, 0.1);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--deep-red);
    font-weight: 800;
    font-size: 14px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(153, 27, 27, 0.22);
    background: #fff7ed;
    color: var(--ink);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

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

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

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

.detail-card {
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 251, 235, 0.96);
    border: 1px solid rgba(153, 27, 27, 0.14);
    box-shadow: var(--shadow);
}

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

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #090909;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.62));
    cursor: pointer;
}

.video-overlay[hidden] {
    display: none;
}

.video-play-button {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    color: #7f1d1d;
    background: #fef3c7;
    font-size: 40px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36);
    transition: transform 0.2s ease;
}

.video-overlay:hover .video-play-button {
    transform: scale(1.08);
}

.detail-info {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
}

.detail-cover img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 42px rgba(127, 29, 29, 0.2);
    background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

.detail-kicker {
    margin: 0 0 10px;
    color: var(--red);
    font-weight: 800;
}

.detail-text h1 {
    margin: 0 0 14px;
    color: var(--deep-red);
    font-size: clamp(32px, 4.4vw, 54px);
    line-height: 1.12;
    font-weight: 900;
}

.detail-one-line {
    margin: 0 0 18px;
    color: #5f3626;
    font-size: 18px;
    line-height: 1.8;
}

.story-section {
    padding: 0 28px 28px;
}

.story-section h2 {
    margin: 0 0 12px;
    color: var(--deep-red);
    font-size: 28px;
    font-weight: 900;
}

.story-section p {
    margin: 0;
    color: #4c2d22;
    font-size: 17px;
    line-height: 2;
}

.review-section {
    padding-bottom: 34px;
}

.related-section {
    padding-top: 36px;
}

.site-footer {
    margin-top: 40px;
    color: #fde68a;
    background: linear-gradient(180deg, #7f1d1d, #1c0606);
    border-top: 4px solid #991b1b;
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.footer-brand {
    display: inline-block;
    color: #fffbeb;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 12px;
}

.footer-inner p {
    max-width: 700px;
    margin: 0;
    color: #fde68a;
    line-height: 1.8;
}

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

.footer-links a:hover {
    color: white;
}

@media (max-width: 1100px) {
    .movie-grid,
    .top-grid,
    .wide-ranking {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

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

    .brand-name {
        font-size: 20px;
    }

    .hero {
        height: 620px;
        min-height: auto;
    }

    .movie-grid,
    .top-grid,
    .ranking-grid,
    .wide-ranking,
    .category-grid,
    .large-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .detail-info {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 18px;
        padding: 20px;
    }

    .story-section {
        padding-left: 20px;
        padding-right: 20px;
    }

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

@media (max-width: 560px) {
    .header-inner {
        height: 72px;
    }

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

    .brand-name {
        font-size: 18px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-content {
        padding: 36px 0;
    }

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

    .hero h2 {
        font-size: 24px;
    }

    .content-section {
        width: min(100% - 24px, 1280px);
        padding: 44px 0;
    }

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

    .movie-grid,
    .top-grid,
    .ranking-grid,
    .wide-ranking,
    .category-grid,
    .large-category-grid {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: 98px minmax(0, 1fr);
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .detail-info {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 210px;
    }
}
