:root {
    --bg: #fafaf9;
    --panel: #ffffff;
    --text: #1c1917;
    --muted: #6b7280;
    --line: #e7e5e4;
    --brand: #b45309;
    --brand-strong: #92400e;
    --brand-soft: #fef3c7;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.20), transparent 34rem),
        linear-gradient(135deg, #fafaf9 0%, #ffffff 45%, #fff7ed 100%);
    color: var(--text);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(231, 229, 228, 0.86);
    box-shadow: 0 10px 30px rgba(68, 64, 60, 0.06);
}

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

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, #d97706, #92400e);
    box-shadow: 0 12px 28px rgba(180, 83, 9, 0.24);
}

.brand-name {
    display: block;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.brand-sub {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.site-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
}

.site-nav a {
    color: #4b5563;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

.header-search {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-search input {
    width: 210px;
    border: 1px solid #d6d3d1;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.88);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.header-search button,
.primary-btn,
.secondary-btn,
.small-btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.header-search button,
.primary-btn {
    background: linear-gradient(135deg, #d97706, #92400e);
    color: #ffffff;
    padding: 11px 18px;
    box-shadow: 0 12px 28px rgba(180, 83, 9, 0.22);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 11px 18px;
}

.small-btn {
    background: #fff7ed;
    color: #92400e;
    padding: 8px 12px;
    font-size: 13px;
}

.primary-btn:hover,
.secondary-btn:hover,
.small-btn:hover,
.header-search button:hover {
    transform: translateY(-2px);
}

.site-menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: #fff7ed;
    color: #92400e;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 22px;
    font-weight: 900;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 14px 16px 18px;
    background: #ffffff;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 14px;
    background: #fafaf9;
    color: #44403c;
    font-weight: 700;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.72s ease, visibility 0.72s ease;
    background-size: cover;
    background-position: center;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 30%, rgba(245, 158, 11, 0.28), transparent 22rem),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.64) 48%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 36px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.92);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.20);
}

.hero-title {
    margin: 22px 0 16px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-desc {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta,
.meta-row,
.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.meta-pill,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 251, 235, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
}

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

.hero-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.hero-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-card-badge {
    position: absolute;
    right: 16px;
    top: 16px;
    background: rgba(0, 0, 0, 0.62);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 900;
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    padding: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.32);
}

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

.section {
    padding: 58px 0;
}

.section.alt {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.70), rgba(255, 247, 237, 0.80));
}

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

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid rgba(231, 229, 228, 0.86);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 60px rgba(120, 53, 15, 0.18);
    border-color: rgba(245, 158, 11, 0.42);
}

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #292524;
}

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

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
    transition: opacity 0.24s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.card-badge,
.card-score {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.66);
}

.card-badge {
    left: 12px;
}

.card-score {
    right: 12px;
    background: rgba(217, 119, 6, 0.94);
}

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 180px;
}

.card-title {
    margin: 0;
    color: #1c1917;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.card-desc {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
}

.card-meta span {
    color: #78716c;
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

.feature-list {
    display: grid;
    gap: 18px;
}

.feature-card,
.rank-card,
.category-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    background: #ffffff;
    border: 1px solid rgba(231, 229, 228, 0.92);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.rank-card:hover,
.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.45);
}

.feature-card .card-cover,
.rank-card .card-cover {
    border-radius: 18px;
}

.feature-body {
    min-width: 0;
}

.feature-body h3,
.rank-card h3,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.35;
}

.feature-body p,
.rank-card p,
.category-card p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.7;
}

.rank-num {
    color: rgba(180, 83, 9, 0.24);
    font-size: 48px;
    font-weight: 950;
    line-height: 1;
}

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

.category-card {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.page-title {
    padding: 52px 0 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #78716c;
    font-size: 14px;
    margin-bottom: 18px;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.filter-bar input,
.filter-bar select,
.search-box input {
    width: 100%;
    border: 1px solid #d6d3d1;
    border-radius: 16px;
    padding: 12px 14px;
    outline: none;
    background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-box input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.detail-hero {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 32px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(28, 25, 23, 0.94), rgba(120, 53, 15, 0.80)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.34), transparent 24rem);
    color: #ffffff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.18);
}

.detail-cover {
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

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

.detail-info h1 {
    margin: 16px 0;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

.detail-info p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    line-height: 1.8;
}

.detail-meta span {
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
}

.player-section {
    margin: 34px 0;
}

.player-shell {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    border: 1px solid #292524;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    background: #000000;
    z-index: 2;
}

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

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    filter: saturate(1.08);
}

.play-mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.play-mark span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #d97706, #92400e);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
    font-size: 34px;
    padding-left: 6px;
}

.content-panel {
    margin: 28px 0;
    padding: 28px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.content-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.content-panel p {
    margin: 0;
    color: #44403c;
    line-height: 1.9;
    font-size: 16px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tags .tag {
    color: #92400e;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin: 24px 0 30px;
}

.search-results {
    display: grid;
    gap: 16px;
}

.search-result {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.search-result img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
}

.search-result h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.search-result p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.6;
}

.archive-list {
    columns: 4 240px;
    column-gap: 26px;
}

.archive-list a {
    display: block;
    break-inside: avoid;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: #44403c;
    font-weight: 700;
}

.archive-list a:hover {
    color: #92400e;
    background: #fff7ed;
}

.site-footer {
    margin-top: 60px;
    padding: 46px 0 32px;
    color: #d6d3d1;
    background: linear-gradient(135deg, #1c1917, #292524);
}

.footer-inner {
    display: grid;
    gap: 26px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 22px;
}

.footer-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 950;
    margin-bottom: 10px;
}

.footer-inner p {
    margin: 0;
    color: #a8a29e;
    line-height: 1.8;
}

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

.footer-links a {
    color: #d6d3d1;
}

.footer-links a:hover {
    color: #f59e0b;
}

.footer-bottom {
    border-top: 1px solid rgba(214, 211, 209, 0.18);
    padding-top: 20px;
    color: #a8a29e;
    font-size: 14px;
}

.hidden-by-filter {
    display: none;
}

@media (max-width: 1024px) {
    .site-nav,
    .header-search {
        display: none;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        padding: 80px 0;
    }

    .hero-card {
        display: none;
    }

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

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

@media (max-width: 760px) {
    .header-inner,
    .footer-inner,
    .section-wrap,
    .page-wrap {
        width: min(100% - 24px, 1180px);
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-sub {
        display: none;
    }

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

    .hero-title {
        font-size: 36px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .section {
        padding: 42px 0;
    }

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

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

    .feature-card,
    .rank-card,
    .search-result {
        grid-template-columns: 1fr;
    }

    .feature-card .card-cover,
    .rank-card .card-cover {
        aspect-ratio: 16 / 9;
    }

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

    .filter-bar,
    .search-box {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        padding: 20px;
        border-radius: 24px;
    }

    .content-panel {
        padding: 22px;
    }

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

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

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

    .play-mark span {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
