:root {
    --bg: #fff7f4;
    --panel: #ffffff;
    --panel-soft: #fff1eb;
    --text: #1f2937;
    --muted: #667085;
    --line: rgba(148, 163, 184, 0.28);
    --primary: #e11d48;
    --primary-dark: #be123c;
    --gold: #f59e0b;
    --shadow: 0 18px 40px rgba(127, 29, 29, 0.14);
    --radius: 18px;
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    background: linear-gradient(180deg, #fff7f4 0%, #ffffff 48%, #fff7f4 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #111827;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.26);
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #475467;
    font-size: 15px;
    font-weight: 700;
}

.site-nav a {
    padding: 9px 0;
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--primary);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

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

.mobile-nav a {
    padding: 11px 12px;
    border-radius: 12px;
    color: #475467;
    background: #fff7f4;
    font-weight: 700;
}

.mobile-nav a:hover {
    color: #fff;
    background: var(--primary);
}

.page-main {
    min-height: 70vh;
}

.hero-slider {
    position: relative;
    min-height: 560px;
    height: 72vh;
    overflow: hidden;
    background: linear-gradient(115deg, #7f1d1d 0%, #881337 52%, #92400e 100%);
}

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

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.03);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 24%, rgba(245, 158, 11, 0.22), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(650px, 92vw);
    padding-top: 50px;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(225, 29, 72, 0.92);
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.28);
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 22px 0 16px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2.3vw, 22px);
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-meta span,
.tag-pill,
.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #7f1d1d;
    background: #fff1eb;
    font-size: 13px;
    font-weight: 800;
}

.hero-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 14px 28px rgba(225, 29, 72, 0.28);
}

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

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.btn-soft {
    color: var(--primary);
    background: #fff1eb;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0;
}

.section-wide {
    padding: 64px 0;
    background: linear-gradient(90deg, rgba(255, 241, 235, 0.96), rgba(255, 247, 237, 0.96));
}

.section-wide > .section {
    padding-top: 0;
    padding-bottom: 0;
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: #1f2937;
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 740px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(225, 29, 72, 0.08);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 34px rgba(127, 29, 29, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(225, 29, 72, 0.22);
    box-shadow: 0 20px 44px rgba(127, 29, 29, 0.15);
}

.poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #7f1d1d, #92400e);
}

.movie-grid.compact .poster {
    aspect-ratio: 3 / 4;
}

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.58) 100%);
    opacity: 0.85;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(225, 29, 72, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 17px;
}

.card-title {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-line {
    margin: 0 0 14px;
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #667085;
    font-size: 12px;
}

.card-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff7f4;
}

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

.category-tile {
    min-height: 170px;
    padding: 24px;
    border: 1px solid rgba(225, 29, 72, 0.12);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at right top, rgba(245, 158, 11, 0.18), transparent 36%),
        linear-gradient(135deg, #ffffff, #fff1eb);
    box-shadow: 0 15px 32px rgba(127, 29, 29, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

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

.category-tile p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.search-card {
    padding: 24px;
    border: 1px solid rgba(225, 29, 72, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin-top: 18px;
}

.filter-row input,
.filter-row select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 14px;
    color: #344054;
    background: #fff;
    outline: none;
}

.filter-row input:focus,
.filter-row select:focus {
    border-color: rgba(225, 29, 72, 0.7);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 96px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(225, 29, 72, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(127, 29, 29, 0.07);
}

.rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    font-weight: 900;
}

.rank-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #7f1d1d, #92400e);
}

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

.rank-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
}

.rank-desc {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

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

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

.page-hero {
    padding: 62px 0;
    color: #fff;
    background:
        radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.28), transparent 26%),
        linear-gradient(135deg, #7f1d1d 0%, #881337 48%, #92400e 100%);
}

.page-hero-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 36px;
    align-items: center;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, #7f1d1d, #92400e);
    box-shadow: 0 28px 60px rgba(127, 29, 29, 0.22);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0 0 18px;
    color: #1f2937;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-line {
    margin: 0 0 20px;
    color: #475467;
    font-size: 18px;
    line-height: 1.9;
}

.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 18px;
}

.player-section {
    padding: 28px 0 56px;
    background: linear-gradient(180deg, #1f0b0d, #111827);
}

.player-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.player-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(24px, 4vw, 36px);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #050505;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle, rgba(225, 29, 72, 0.18), rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.68) 100%);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    box-shadow: 0 20px 50px rgba(225, 29, 72, 0.42);
    font-size: 34px;
}

.content-panel {
    width: min(var(--max), calc(100% - 32px));
    margin: 42px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
}

.article-card,
.side-card {
    border: 1px solid rgba(225, 29, 72, 0.1);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 15px 34px rgba(127, 29, 29, 0.08);
}

.article-card {
    padding: 30px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 25px;
}

.article-card p {
    color: #475467;
    line-height: 2;
    margin: 0 0 22px;
}

.side-card {
    padding: 22px;
}

.side-list {
    display: grid;
    gap: 13px;
}

.side-link {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #fff7f4;
}

.side-link img {
    width: 58px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, #7f1d1d, #92400e);
}

.side-link strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.35;
}

.side-link span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.recommend-section {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 72px;
}

.site-footer {
    margin-top: 40px;
    padding: 48px 0 24px;
    background: linear-gradient(180deg, #fff7f4, #fff1eb);
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 26px;
}

.footer-title {
    margin: 0 0 12px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 900;
}

.footer-text,
.footer-links a {
    color: #667085;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    color: #667085;
    font-size: 14px;
    text-align: center;
}

.no-result {
    display: none;
    padding: 24px;
    border-radius: 18px;
    color: #667085;
    background: #fff7f4;
    text-align: center;
}

.no-result.is-visible {
    display: block;
}

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

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

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

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

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-control {
        display: none;
    }

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

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

    .rank-item {
        grid-template-columns: 46px 74px 1fr;
    }

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

    .detail-poster {
        max-width: 320px;
    }

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

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 24px, var(--max));
    }

    .site-logo {
        font-size: 15px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero-copy {
        padding-top: 70px;
    }

    .hero-meta {
        display: none;
    }

    .section {
        width: min(100% - 24px, var(--max));
        padding: 42px 0;
    }

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

    .mobile-nav.is-open {
        grid-template-columns: 1fr;
    }

    .card-line {
        min-height: auto;
    }

    .article-card {
        padding: 22px;
    }

    .play-icon {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
