
:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fff1f2;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(120, 53, 15, 0.12);
    --rose: #e11d48;
    --rose-dark: #9f1239;
    --amber: #d97706;
    --shadow: 0 24px 80px rgba(127, 29, 29, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 32%, #fff7ed 100%);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

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

img {
    max-width: 100%;
}

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

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

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.logo-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    box-shadow: 0 14px 30px rgba(225, 29, 72, 0.3);
}

.desktop-nav,
.mobile-nav {
    align-items: center;
    gap: 8px;
}

.desktop-nav {
    display: flex;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

.nav-link {
    padding: 10px 16px;
    color: #5b2b32;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose-dark);
    background: rgba(225, 29, 72, 0.1);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    color: var(--rose-dark);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
}

.hero-section {
    position: relative;
    min-height: 500px;
    height: 70vh;
    overflow: hidden;
    background: linear-gradient(90deg, #881337, #92400e);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(251, 191, 36, 0.3), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(24px, calc((100% - 1180px) / 2));
    width: min(760px, calc(100% - 48px));
    color: #ffffff;
    transform: translateY(-50%);
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 12px;
    color: #fff7ed;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.eyebrow {
    color: var(--rose-dark);
    border-color: rgba(225, 29, 72, 0.14);
    background: rgba(225, 29, 72, 0.08);
}

.hero-content h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-content h2 {
    margin: 0 0 14px;
    color: #fed7aa;
    font-size: clamp(24px, 3vw, 38px);
}

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

.hero-actions,
.section-heading,
.category-overview-head,
.filter-bar,
.search-panel,
.rank-meta,
.detail-meta-list,
.tag-row,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn,
button.btn,
.quick-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    font-weight: 800;
    border: 0;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

.btn.small {
    min-height: 36px;
    color: var(--rose-dark);
    background: rgba(225, 29, 72, 0.1);
}

.btn:hover,
.quick-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(225, 29, 72, 0.2);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #ffffff;
    font-size: 34px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

.hero-arrow.prev {
    left: 18px;
}

.hero-arrow.next {
    right: 18px;
}

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

.hero-dot {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
    background: #ffffff;
}

.quick-search-section {
    position: relative;
    z-index: 2;
    margin-top: -38px;
}

.quick-search,
.search-panel,
.filter-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.quick-search label {
    display: flex;
    align-items: center;
    color: var(--rose-dark);
    font-weight: 900;
}

input,
select {
    min-height: 46px;
    width: 100%;
    padding: 0 14px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    outline: none;
}

input:focus,
select:focus {
    border-color: rgba(225, 29, 72, 0.5);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

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

.soft-bg {
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.78), rgba(255, 247, 237, 0.65));
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: #3f1620;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 16px 48px rgba(127, 29, 29, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 70px rgba(127, 29, 29, 0.14);
}

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

.poster-link img,
.mini-card img,
.rank-cover img,
.detail-poster img,
.category-covers img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-badge,
.poster-play {
    position: absolute;
    color: #ffffff;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(8px);
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
}

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

.movie-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

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

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    color: var(--rose-dark);
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.08);
}

.tag-row.large .tag {
    min-height: 30px;
    padding: 0 11px;
    font-size: 13px;
}

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

.category-tile,
.category-overview-card,
.sidebar-card,
.article-block,
.detail-main {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 48px rgba(127, 29, 29, 0.08);
}

.category-tile {
    display: block;
    overflow: hidden;
    padding: 12px;
}

.category-tile strong {
    display: block;
    margin: 12px 0 4px;
    color: #3f1620;
    font-size: 19px;
}

.category-tile span,
.category-tile p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    height: 98px;
}

.category-covers img {
    border-radius: 14px;
    background: #ffe4e6;
}

.page-hero {
    padding: 78px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 70% 20%, rgba(251, 191, 36, 0.36), transparent 30%),
        linear-gradient(135deg, #881337, #92400e);
}

.compact-hero .eyebrow {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
}

.compact-hero h1,
.compact-hero p {
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a {
    color: #fed7aa;
}

.category-overview-list {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    padding: 24px;
}

.category-overview-head {
    justify-content: space-between;
    margin-bottom: 18px;
}

.category-overview-head h2 {
    margin: 0;
    color: #3f1620;
    font-size: 28px;
}

.category-overview-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.mini-card-list {
    display: grid;
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 241, 242, 0.76);
}

.mini-card img {
    height: 86px;
    border-radius: 14px;
    background: #ffe4e6;
}

.mini-card strong {
    display: block;
    color: #3f1620;
    line-height: 1.35;
}

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

.filter-bar {
    grid-template-columns: 1fr 180px;
    margin-bottom: 26px;
    box-shadow: none;
}

.search-panel {
    grid-template-columns: 1fr 220px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.search-count {
    color: var(--muted);
    font-weight: 800;
}

.rank-list {
    display: grid;
    gap: 16px;
}

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 74px 118px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-number {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--rose), var(--amber));
}

.rank-cover {
    height: 152px;
    overflow: hidden;
    border-radius: 18px;
    background: #ffe4e6;
}

.rank-body h3 {
    margin: 0 0 8px;
    color: #3f1620;
    font-size: 22px;
}

.rank-body p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.75;
}

.rank-meta span,
.detail-meta-list span {
    color: var(--rose-dark);
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.08);
    padding: 6px 10px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #111827;
}

.detail-backdrop img {
    filter: blur(18px);
    opacity: 0.44;
    transform: scale(1.08);
}

.detail-backdrop div {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.24), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(63, 22, 32, 0.62));
}

.detail-hero-inner {
    padding: 52px 0 64px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.detail-info h1 {
    color: #ffffff;
}

.detail-info .lead {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.detail-main {
    overflow: hidden;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.player-box video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    border: 0;
    background: rgba(0, 0, 0, 0.36);
}

.player-start span {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    box-shadow: 0 20px 48px rgba(225, 29, 72, 0.28);
}

.player-start strong {
    font-size: 18px;
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.player-box.loaded .player-start,
.player-box.loaded .player-message {
    display: none;
}

.article-block {
    margin: 22px;
    padding: 24px;
    box-shadow: none;
}

.article-block h2,
.sidebar-card h2 {
    margin: 0 0 12px;
    color: #3f1620;
    font-size: 24px;
}

.article-block p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 2;
}

.detail-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 96px;
}

.sidebar-card {
    padding: 22px;
}

.sidebar-card dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.sidebar-card dt {
    color: var(--muted);
}

.sidebar-card dd {
    margin: 0;
    color: #3f1620;
    font-weight: 800;
}

.site-footer {
    padding: 42px 0;
    color: #7f1d1d;
    border-top: 1px solid var(--line);
    background: #fff7ed;
}

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

.footer-inner p {
    margin: 8px 0 0;
    color: var(--muted);
}

.footer-links a {
    color: var(--rose-dark);
    font-weight: 800;
}

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

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

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

    .detail-sidebar {
        position: static;
    }
}

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

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

    .mobile-nav.open {
        display: grid;
    }

    .hero-content {
        left: 20px;
        width: calc(100% - 40px);
    }

    .hero-arrow {
        display: none;
    }

    .quick-search,
    .search-panel,
    .filter-bar,
    .detail-layout,
    .rank-card,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        display: grid;
    }

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

    .rank-cover {
        width: 118px;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .category-grid,
    .mini-card-grid {
        grid-template-columns: 1fr;
    }

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