:root {
    color-scheme: light;
    --rose: #e11d48;
    --rose-dark: #be123c;
    --amber: #f59e0b;
    --ink: #171717;
    --muted: #666666;
    --line: #e9e2df;
    --paper: #ffffff;
    --soft: #fff7ed;
    --bg: #fffaf7;
    --shadow: 0 20px 50px rgba(127, 29, 29, 0.14);
    --radius-lg: 28px;
    --radius: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffaf7 100%);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(225, 29, 72, 0.12);
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #3f0d18;
}

.brand-mark {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.24);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #4b5563;
    font-weight: 700;
    white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover {
    color: var(--rose);
}

.nav-toggle {
    display: none;
    border: 0;
    background: #fff1f2;
    color: var(--rose);
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

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

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff7ed;
    color: #4b5563;
    font-weight: 700;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: linear-gradient(115deg, #7f1d1d, #9f1239 48%, #92400e);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.8s ease;
}

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 30%, rgba(245, 158, 11, 0.3), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.56) 44%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.12);
    color: var(--rose);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero .eyebrow {
    background: rgba(255, 255, 255, 0.18);
    color: #fff7ed;
    backdrop-filter: blur(10px);
}

.hero h1 {
    max-width: 760px;
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.card-tags span,
.detail-tags span {
    border-radius: 999px;
    background: #fff1f2;
    color: #be123c;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

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

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

.primary-btn,
.ghost-btn,
.site-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    border: 0;
    cursor: pointer;
}

.primary-btn,
.site-search button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    box-shadow: 0 14px 30px rgba(225, 29, 72, 0.28);
}

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

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 440px);
    align-items: center;
    gap: 28px;
    margin-top: -50px;
    position: relative;
    z-index: 6;
    padding: 30px;
    border: 1px solid rgba(225, 29, 72, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.movie-detail-text h1 {
    margin: 8px 0 8px;
    color: #3f0d18;
    line-height: 1.1;
}

.search-panel h2,
.section-heading h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.search-panel p,
.section-heading p,
.page-hero p,
.category-overview-card p,
.movie-detail-text p {
    color: var(--muted);
}

.site-search,
.local-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-search input,
.local-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    outline: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: var(--ink);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.site-search input:focus,
.local-search input:focus {
    border-color: rgba(225, 29, 72, 0.5);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

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

.soft-block {
    width: min(1180px, calc(100% - 32px));
    padding: 34px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.9), rgba(255, 247, 237, 0.9));
}

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

.section-heading p {
    margin: 0;
}

.section-more {
    flex: none;
    color: var(--rose);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(225, 29, 72, 0.12);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(127, 29, 29, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4.15;
    background: linear-gradient(135deg, #fff1f2, #fffbeb);
}

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

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

.card-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.card-chip {
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    font-size: 12px;
}

.rank-badge {
    right: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
}

.movie-card-body {
    padding: 16px;
}

.movie-meta-line,
.detail-meta-card {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #8a6b62;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0 8px;
    color: #3f0d18;
    font-size: 18px;
    line-height: 1.25;
}

.movie-card h3 a:hover {
    color: var(--rose);
}

.movie-card p {
    min-height: 52px;
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 14px;
}

.movie-card-small .movie-card-body {
    padding: 13px;
}

.movie-card-small h3 {
    font-size: 16px;
}

.movie-card-small p {
    min-height: 44px;
    font-size: 13px;
}

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

.category-card,
.category-overview-card {
    display: block;
    min-height: 168px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(225, 29, 72, 0.12);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 28px rgba(127, 29, 29, 0.08);
}

.category-card span,
.category-title-link {
    color: #3f0d18;
    font-size: 22px;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    margin: 10px 0 0;
    font-size: 14px;
}

.mini-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.mini-link-row a {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff1f2;
    color: var(--rose);
    font-size: 12px;
    font-weight: 800;
}

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

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin: 0 0 20px;
    color: #7c6a64;
    font-size: 14px;
    font-weight: 700;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 44px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.26), transparent 32%),
        linear-gradient(135deg, #fff1f2, #fff7ed);
    border: 1px solid rgba(225, 29, 72, 0.12);
    box-shadow: var(--shadow);
}

.slim-hero {
    margin-top: 18px;
}

.rank-hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.32), transparent 34%),
        linear-gradient(135deg, #fff1f2, #ffffff 70%);
}

.category-hero {
    display: grid;
    gap: 12px;
}

.page-hero h1 {
    max-width: 780px;
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: 17px;
}

.local-search {
    max-width: 560px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
    align-items: start;
}

.player-card,
.detail-side,
.movie-detail-text {
    border: 1px solid rgba(225, 29, 72, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #0f0f12;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #0f0f12;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
    pointer-events: auto;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    font-size: 34px;
    box-shadow: 0 20px 44px rgba(225, 29, 72, 0.36);
    cursor: pointer;
}

.detail-side {
    padding: 16px;
}

.detail-cover {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 3 / 4.15;
    object-fit: cover;
    background: linear-gradient(135deg, #fff1f2, #fffbeb);
}

.detail-meta-card {
    margin-top: 14px;
}

.detail-meta-card span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff7ed;
}

.movie-detail-text {
    margin-top: 24px;
    padding: 34px;
}

.movie-detail-text h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.movie-detail-text h2 {
    margin-top: 32px;
    color: #3f0d18;
}

.one-line {
    font-size: 19px;
    color: #4b5563;
}

.detail-tags {
    margin: 18px 0 8px;
}

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

.site-footer {
    margin-top: 42px;
    border-top: 1px solid rgba(225, 29, 72, 0.12);
    background: linear-gradient(180deg, #fffaf7, #fff1f2);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 28px;
}

.footer-inner p {
    max-width: 620px;
    color: #6b7280;
}

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

.footer-links a {
    padding: 7px 11px;
    border-radius: 999px;
    background: #ffffff;
    color: #9f1239;
    font-size: 13px;
    font-weight: 800;
}

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

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

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

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

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

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

    .detail-side {
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 16px;
    }
}

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

    .brand {
        font-size: 19px;
    }

    .hero {
        min-height: 610px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 92px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel {
        grid-template-columns: 1fr;
        margin-top: -32px;
        padding: 22px;
    }

    .site-search {
        flex-direction: column;
        align-items: stretch;
    }

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

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

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

    .soft-block,
    .page-hero,
    .movie-detail-text {
        padding: 24px;
    }

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

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

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

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

@media (max-width: 460px) {
    .movie-grid,
    .compact-grid,
    .wide-rank,
    .rank-list {
        grid-template-columns: 1fr;
    }

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