:root {
    --bg: #fff7ed;
    --bg-soft: #ffedd5;
    --bg-card: rgba(255, 255, 255, 0.88);
    --ink: #3f1d16;
    --muted: #8a5a44;
    --brand: #991b1b;
    --brand-deep: #7f1d1d;
    --accent: #f59e0b;
    --line: rgba(153, 27, 27, 0.16);
    --shadow: 0 24px 70px rgba(127, 29, 29, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #fffbeb 42%, #fff7ed 100%);
    color: var(--ink);
    font-family: "Noto Serif SC", "Microsoft YaHei", "PingFang SC", serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(127, 29, 29, 0.08);
}

.header-inner {
    max-width: 1280px;
    height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff7ed;
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    box-shadow: 0 12px 28px rgba(153, 27, 27, 0.24);
}

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

.brand-text strong {
    font-size: 24px;
    letter-spacing: 0.04em;
    color: var(--brand-deep);
}

.brand-text em {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    font-style: normal;
}

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

.main-nav a,
.mobile-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #6b2a1f;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover,
.main-nav a.is-active,
.mobile-nav a.is-active {
    color: #fff7ed;
    background: var(--brand);
    transform: translateY(-1px);
}

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

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--brand-deep);
}

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
    gap: 8px;
    flex-wrap: wrap;
}

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

.hero-slider {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: #2a0f0f;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    background-image:
        linear-gradient(90deg, rgba(41, 15, 15, 0.94), rgba(41, 15, 15, 0.68) 45%, rgba(41, 15, 15, 0.16)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 25%, rgba(245, 158, 11, 0.32), transparent 26rem),
        linear-gradient(180deg, transparent, rgba(41, 15, 15, 0.82));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    min-height: 660px;
    margin: 0 auto;
    padding: 72px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 56px;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 18px 0 0;
    font-size: clamp(26px, 4vw, 48px);
    line-height: 1.1;
    color: #fde68a;
}

.hero-summary,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 247, 237, 0.88);
    font-size: 18px;
    line-height: 1.9;
}

.hero-tags,
.detail-tags,
.tag-row,
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags,
.detail-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.quick-filter {
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    color: #7f1d1d;
    background: #fff7ed;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

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

.primary-btn {
    color: #fff7ed;
    background: linear-gradient(135deg, #dc2626, #7f1d1d);
    box-shadow: 0 18px 36px rgba(127, 29, 29, 0.26);
}

.ghost-btn {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
}

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

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 38px 90px rgba(0, 0, 0, 0.42);
    aspect-ratio: 2 / 3;
    background: #3f1d16;
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #7f1d1d;
    background: rgba(255, 247, 237, 0.9);
    font-size: 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

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

.hero-dots button {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #f59e0b;
}

.search-panel,
.section-wrap,
.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.search-card,
.page-hero,
.detail-hero,
.video-shell,
.detail-text,
.overview-card,
.category-tile,
.movie-card,
.rank-card {
    border: 1px solid var(--line);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-card {
    padding: 28px;
    border-radius: var(--radius);
}

.search-card h2,
.section-heading h2,
.page-hero h1,
.detail-text h2 {
    margin: 0;
    color: var(--brand-deep);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 18px;
}

.search-box input {
    width: 100%;
    height: 56px;
    border: 1px solid rgba(153, 27, 27, 0.18);
    border-radius: 18px;
    outline: 0;
    padding: 0 52px 0 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
}

.search-box span {
    position: absolute;
    right: 18px;
    color: var(--brand);
    font-size: 24px;
}

.quick-tags {
    margin-top: 18px;
}

.quick-filter {
    cursor: pointer;
}

.quick-filter:hover {
    color: #fff7ed;
    background: var(--brand);
}

.section-wrap {
    padding-top: 68px;
}

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

.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-heading a {
    color: var(--brand);
    font-weight: 900;
}

.section-heading.compact h2 {
    font-size: 30px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 80px rgba(127, 29, 29, 0.24);
}

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

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

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

.movie-badge,
.movie-play {
    position: absolute;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
}

.movie-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    color: #fff7ed;
    background: rgba(127, 29, 29, 0.82);
    font-size: 12px;
    font-weight: 900;
}

.movie-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    color: #7f1d1d;
    background: rgba(255, 247, 237, 0.92);
}

.movie-info {
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta a {
    color: var(--brand);
}

.movie-info h3 {
    margin: 0;
    color: #4c1d14;
    font-size: 20px;
    line-height: 1.35;
}

.movie-info p {
    margin: 10px 0 14px;
    min-height: 48px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.tag-row {
    gap: 6px;
}

.tag-row span {
    padding: 4px 9px;
    font-size: 12px;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    border-radius: 24px;
    overflow: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: #fff7ed;
    background-image:
        linear-gradient(180deg, rgba(41, 15, 15, 0.12), rgba(41, 15, 15, 0.86)),
        var(--tile-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.24s ease;
}

.category-tile:hover,
.overview-card:hover,
.rank-card:hover {
    transform: translateY(-4px);
}

.category-tile span,
.overview-card strong {
    font-size: 24px;
    font-weight: 900;
}

.category-tile em,
.overview-card span {
    margin-top: 8px;
    color: rgba(255, 247, 237, 0.86);
    font-style: normal;
    line-height: 1.7;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
    padding-bottom: 80px;
}

.rank-list,
.ranking-grid,
.side-cards {
    display: grid;
    gap: 14px;
}

.rank-card {
    display: grid;
    grid-template-columns: 42px 72px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border-radius: 18px;
    padding: 12px;
    transition: transform 0.2s ease;
}

.rank-card img {
    width: 72px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-card strong,
.rank-card em {
    display: block;
}

.rank-card strong {
    color: #4c1d14;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-card em {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.rank-num {
    color: var(--brand);
    font-size: 20px;
    font-weight: 900;
}

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

.mini-card .movie-cover {
    aspect-ratio: 16 / 9;
}

.page-main {
    padding-top: 38px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 54px;
    color: #fff7ed;
    background:
        linear-gradient(90deg, rgba(64, 18, 18, 0.92), rgba(127, 29, 29, 0.72)),
        var(--hero-image, linear-gradient(135deg, #991b1b, #f59e0b));
    background-size: cover;
    background-position: center;
}

.small-hero,
.ranking-hero {
    background: linear-gradient(135deg, #7f1d1d, #b45309);
}

.page-hero p {
    color: rgba(255, 247, 237, 0.86);
}

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

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

.overview-card {
    min-height: 190px;
    border-radius: 24px;
    padding: 28px;
    transition: transform 0.2s ease;
}

.overview-card strong {
    color: var(--brand-deep);
}

.overview-card span {
    display: block;
    color: var(--muted);
}

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

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

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

.detail-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 42px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    background-image:
        linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 237, 213, 0.88)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    box-shadow: 0 24px 60px rgba(127, 29, 29, 0.22);
}

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

.detail-copy h1 {
    color: var(--brand-deep);
    font-size: clamp(34px, 5vw, 60px);
}

.detail-one-line {
    color: #6b2a1f;
}

.detail-meta {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-meta li {
    border: 1px solid rgba(153, 27, 27, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
    padding: 12px 14px;
}

.detail-meta span,
.detail-meta strong {
    display: block;
}

.detail-meta span {
    color: var(--muted);
    font-size: 12px;
}

.detail-meta strong {
    margin-top: 4px;
    color: var(--ink);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #120707;
    aspect-ratio: 16 / 9;
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #7f1d1d;
    background: radial-gradient(circle, rgba(255, 247, 237, 0.14), rgba(0, 0, 0, 0.42));
    cursor: pointer;
}

.player-start span {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 247, 237, 0.94);
    font-size: 34px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.video-shell.is-playing .player-start {
    display: none;
}

.detail-text {
    border-radius: 24px;
    padding: 34px;
}

.detail-text h2 {
    margin-top: 0;
    font-size: 30px;
}

.detail-text p {
    color: #633225;
    font-size: 17px;
    line-height: 2;
}

.related-grid {
    padding-bottom: 72px;
}

.site-footer {
    margin-top: 48px;
    padding: 48px 24px;
    color: #fef3c7;
    background: linear-gradient(135deg, #4c1d14, #7f1d1d);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    color: #fde68a;
    font-size: 28px;
}

.footer-inner p {
    max-width: 560px;
    color: rgba(255, 247, 237, 0.76);
    line-height: 1.8;
}

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

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

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

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

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

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

    .nav-toggle {
        display: block;
    }

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

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

    .hero-poster,
    .detail-poster {
        max-width: 280px;
        margin: 0 auto;
    }

    .movie-grid,
    .category-grid,
    .category-overview,
    .ranking-grid,
    .side-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-hero,
    .detail-hero {
        padding: 32px;
    }
}

@media (max-width: 560px) {
    .header-inner {
        height: 68px;
        padding: 0 16px;
    }

    .brand-text em {
        display: none;
    }

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

    .hero-content {
        padding: 42px 18px;
    }

    .search-panel,
    .section-wrap,
    .page-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .movie-grid,
    .category-grid,
    .category-overview,
    .ranking-grid,
    .side-cards,
    .detail-meta {
        grid-template-columns: 1fr;
    }

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

    .rank-card {
        grid-template-columns: 36px 62px minmax(0, 1fr);
    }
}
