:root {
    color-scheme: light;
    --bg: #fff8f5;
    --surface: #ffffff;
    --surface-strong: #fff2ec;
    --text: #221817;
    --muted: #755d58;
    --soft: #f7d8cc;
    --line: rgba(164, 89, 63, 0.18);
    --brand: #e7472e;
    --brand-dark: #b92320;
    --brand-orange: #ff8a2a;
    --brand-pink: #ef4f7a;
    --shadow: 0 18px 45px rgba(151, 62, 36, 0.16);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 164, 93, 0.35), transparent 34rem),
        linear-gradient(180deg, #fffaf7 0%, var(--bg) 48%, #fff 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 250, 247, 0.78);
    border-bottom: 1px solid rgba(231, 71, 46, 0.14);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-orange), var(--brand-pink));
    box-shadow: 0 12px 24px rgba(231, 71, 46, 0.28);
}

.logo-text {
    font-size: 20px;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-orange));
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: var(--brand-dark);
}

.hero-slider {
    position: relative;
    height: min(720px, calc(100vh - 72px));
    min-height: 560px;
    overflow: hidden;
    background: #160a09;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 5, 5, 0.88), rgba(42, 12, 8, 0.58) 44%, rgba(231, 71, 46, 0.08)),
        linear-gradient(0deg, rgba(20, 5, 5, 0.8), transparent 50%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1180px) / 2));
    bottom: 92px;
    width: min(690px, calc(100% - 64px));
    color: #fff;
}

.hero-kicker,
.kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 16px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #bd2d22;
    background: #fff1ec;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content .hero-kicker {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(16px);
}

.hero-content h1,
.hero-content h2 {
    margin: 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.hero-movie-name {
    margin: 18px 0 0;
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 780;
}

.hero-content p {
    max-width: 650px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 2vw, 21px);
}

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

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

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-orange));
    box-shadow: 0 18px 36px rgba(231, 71, 46, 0.34);
}

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

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

.hero-dots {
    position: absolute;
    right: max(32px, calc((100vw - 1180px) / 2));
    bottom: 96px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

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

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

.section-block,
.page-main {
    padding: 64px 0;
}

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

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.article-content h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-heading p,
.page-hero p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--muted);
}

.section-more {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-pink));
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) 180px 180px;
    gap: 14px;
    margin: 26px 0 32px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.filter-panel label,
.filter-panel select {
    min-width: 0;
}

.filter-panel label span {
    display: block;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.tag-filter {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid rgba(231, 71, 46, 0.18);
    border-radius: 16px;
    outline: 0;
    background: #fff;
    color: var(--text);
}

.filter-panel input:focus,
.filter-panel select:focus,
.tag-filter:focus {
    border-color: rgba(231, 71, 46, 0.5);
    box-shadow: 0 0 0 4px rgba(231, 71, 46, 0.12);
}

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

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

.full-grid {
    align-items: stretch;
}

.movie-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(231, 71, 46, 0.13);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 14px 35px rgba(151, 62, 36, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(231, 71, 46, 0.32);
    box-shadow: 0 24px 50px rgba(151, 62, 36, 0.18);
}

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

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

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    min-width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-orange));
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.movie-meta {
    margin-bottom: 7px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.3;
}

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

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag-row span,
.detail-tags li {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #9e3126;
    background: #fff0e9;
    font-size: 12px;
    font-weight: 750;
}

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

.category-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(231, 71, 46, 0.92), rgba(255, 138, 42, 0.88)),
        #e7472e;
    color: #fff;
    box-shadow: var(--shadow);
}

.category-card a {
    display: block;
    padding: 28px;
}

.category-card span {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.category-card h2,
.category-card h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.category-card p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.9);
}

.category-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 28px 28px;
}

.category-mini-links a {
    width: auto;
    padding: 7px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
}

.compact-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.compact-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(231, 71, 46, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 24px rgba(151, 62, 36, 0.08);
}

.compact-card span {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-orange));
    font-weight: 900;
}

.compact-card strong,
.compact-card em {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compact-card em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

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

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

.breadcrumb a::after {
    content: "/";
    margin-left: 9px;
    color: rgba(117, 93, 88, 0.42);
}

.compact-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 42px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 19rem),
        linear-gradient(135deg, #b92320, #e7472e 42%, #ff8a2a);
    color: #fff;
    box-shadow: var(--shadow);
}

.compact-hero .kicker {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.compact-hero p {
    color: rgba(255, 255, 255, 0.9);
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-bottom: 46px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 20px 45px rgba(60, 18, 13, 0.22);
}

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

.detail-one-line {
    margin: 18px 0 22px;
    color: var(--muted);
    font-size: 20px;
}

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

.detail-meta-list div {
    padding: 14px;
    border-radius: 16px;
    background: #fff4ef;
}

.detail-meta-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.detail-meta-list dd {
    margin: 3px 0 0;
    font-weight: 850;
}

.detail-tags {
    margin: 0;
    padding: 0;
    list-style: none;
}

.player-section {
    margin-bottom: 46px;
}

.slim-heading {
    margin-bottom: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #100706;
    box-shadow: 0 24px 58px rgba(50, 11, 8, 0.28);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #100706;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.52));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 88px;
    height: 88px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-orange));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
    font-size: 36px;
    transform: translateX(3px);
}

.article-content {
    margin-bottom: 56px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 36px rgba(151, 62, 36, 0.08);
}

.article-content h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.article-content h2:not(:first-child) {
    margin-top: 30px;
}

.article-content p {
    margin: 0;
    color: #493834;
    font-size: 17px;
}

.site-footer {
    margin-top: 40px;
    padding: 38px 0;
    border-top: 1px solid rgba(231, 71, 46, 0.16);
    background: #fff;
}

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

.footer-inner strong {
    font-size: 20px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
    max-width: 460px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff0e9;
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 13px;
}

.is-filtered-out {
    display: none;
}

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

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

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

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(231, 71, 46, 0.14);
        border-radius: 22px;
        background: rgba(255, 250, 247, 0.96);
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        text-align: center;
    }

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

    .hero-content {
        bottom: 118px;
    }

    .hero-dots {
        left: 32px;
        right: auto;
        bottom: 64px;
    }

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

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

    .category-grid,
    .compact-list,
    .detail-hero {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .header-inner {
        min-height: 66px;
    }

    .logo-text {
        font-size: 17px;
    }

    .hero-slider {
        min-height: 600px;
    }

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

    .movie-grid,
    .small-grid,
    .full-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

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

    .movie-card p {
        font-size: 13px;
    }

    .compact-hero,
    .article-content,
    .detail-hero {
        padding: 22px;
        border-radius: 26px;
    }

    .detail-one-line {
        font-size: 17px;
    }

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

    .play-icon {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
