:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --paper: #ffffff;
    --ink: #431407;
    --muted: #8a6240;
    --brand: #b45309;
    --brand-strong: #92400e;
    --accent: #dc2626;
    --line: rgba(180, 83, 9, 0.18);
    --shadow: 0 24px 60px rgba(67, 20, 7, 0.15);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--brand-strong);
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff7ed;
    background: linear-gradient(135deg, #b91c1c, #d97706 65%, #f59e0b);
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(180, 83, 9, 0.32);
}

.brand-text {
    font-size: 22px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    color: var(--brand-strong);
    font-weight: 700;
}

.main-nav a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent);
    border-color: rgba(220, 38, 38, 0.42);
}

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

.header-search input,
.filter-bar input {
    width: 260px;
    border: 2px solid #fcd34d;
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.filter-bar input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.header-search button,
.filter-bar button,
.btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.btn.primary,
.filter-bar button.is-active {
    color: #fff7ed;
    background: linear-gradient(135deg, #b91c1c, #d97706);
    box-shadow: 0 14px 28px rgba(185, 28, 28, 0.24);
}

.btn.ghost,
.filter-bar button {
    color: var(--brand-strong);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
}

.header-search button:hover,
.filter-bar button:hover,
.btn:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: rgba(251, 191, 36, 0.18);
    color: var(--brand-strong);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 24px;
}

.hero-slider {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #1c1917;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.56) 46%, rgba(28, 25, 23, 0.12)), linear-gradient(0deg, rgba(28, 25, 23, 0.84), transparent 46%);
}

.hero-content {
    position: absolute;
    left: max(7vw, 24px);
    bottom: 13vh;
    width: min(760px, calc(100% - 48px));
    color: #fff7ed;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(120, 53, 15, 0.52);
    border: 1px solid rgba(253, 230, 138, 0.28);
    font-weight: 800;
}

.hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.46);
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 26px;
    color: #ffedd5;
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 237, 213, 0.3);
    border-radius: 50%;
    color: #fff7ed;
    background: rgba(28, 25, 23, 0.32);
    font-size: 36px;
    cursor: pointer;
}

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

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

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

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

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

.quick-categories,
.content-section,
.page-main,
.detail-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: -34px;
    position: relative;
    z-index: 4;
}

.quick-categories a,
.category-panel,
.movie-card,
.related-side,
.detail-article,
.player-frame,
.page-hero {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quick-categories a {
    padding: 18px;
    display: grid;
    gap: 6px;
    min-height: 112px;
}

.quick-categories strong {
    font-size: 18px;
    color: var(--brand-strong);
}

.quick-categories span {
    color: var(--muted);
    font-size: 13px;
}

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

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

.section-title-row h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 72px rgba(67, 20, 7, 0.22);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #292524;
}

.poster-link img,
.rank-poster img,
.side-link img,
.category-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.poster-link img,
.category-panel img {
    transition: transform 0.28s ease;
}

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(185, 28, 28, 0.86);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
    color: var(--ink);
}

.card-body h3:hover,
.side-link:hover span,
.rank-body h3:hover {
    color: var(--accent);
}

.card-meta,
.card-desc {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.card-desc {
    color: #6b4e35;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #7f1d1d;
    background: #fee2e2;
    font-size: 12px;
    font-weight: 800;
}

.page-main,
.detail-main {
    padding: 28px 0 64px;
}

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

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

.page-hero {
    padding: 34px;
    margin-bottom: 28px;
    background: radial-gradient(circle at top left, #fde68a 0, rgba(255, 255, 255, 0.92) 40%), #fff;
}

.page-hero p {
    max-width: 780px;
    color: var(--muted);
    font-size: 17px;
}

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

.category-panel {
    overflow: hidden;
    min-height: 260px;
}

.category-panel img {
    height: 160px;
}

.category-panel span,
.category-panel p {
    display: block;
    margin: 16px 18px 0;
}

.category-panel span {
    color: var(--brand-strong);
    font-size: 22px;
    font-weight: 900;
}

.category-panel p {
    margin-top: 8px;
    color: var(--muted);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.search-wide input {
    width: min(540px, 100%);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 168px 1fr;
    align-items: center;
    gap: 18px;
    padding: 12px;
}

.rank-num {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #fff7ed;
    background: linear-gradient(135deg, #b91c1c, #f59e0b);
    font-size: 20px;
    font-weight: 900;
}

.rank-poster {
    display: block;
    height: 96px;
    border-radius: 16px;
    overflow: hidden;
}

.rank-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-body p,
.rank-body span {
    display: block;
    margin: 0 0 6px;
    color: var(--muted);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    min-height: 520px;
    background: #1c1917;
    margin-bottom: 28px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) saturate(1.08);
    transform: scale(1.04);
    opacity: 0.62;
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.62)), linear-gradient(0deg, rgba(28, 25, 23, 0.82), transparent);
}

.detail-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: end;
    min-height: 520px;
    padding: 52px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-info {
    color: #fff7ed;
}

.detail-info h1 {
    color: #fff7ed;
    font-size: clamp(38px, 6vw, 70px);
}

.detail-one-line {
    max-width: 760px;
    color: #ffedd5;
    font-size: 19px;
    line-height: 1.75;
}

.tag-row.large {
    margin: 22px 0 28px;
}

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

.player-frame {
    position: relative;
    overflow: hidden;
    background: #0c0a09;
}

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

.play-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    color: #fff7ed;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.96), rgba(217, 119, 6, 0.96));
    font-size: 34px;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.play-overlay.is-hidden {
    display: none;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 28px;
    margin-bottom: 36px;
}

.detail-article,
.related-side {
    padding: 26px;
}

.detail-article h2,
.related-side h2 {
    margin: 0 0 14px;
    color: var(--brand-strong);
    font-size: 24px;
}

.detail-article p {
    color: #5f432c;
    line-height: 1.9;
    font-size: 16px;
}

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

.info-list div {
    padding: 14px;
    border-radius: 16px;
    background: #fff7ed;
}

.info-list dt {
    color: var(--muted);
    font-size: 12px;
}

.info-list dd {
    margin: 4px 0 0;
    font-weight: 900;
}

.side-link {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.side-link img {
    height: 68px;
    border-radius: 14px;
}

.side-link span {
    font-weight: 800;
    line-height: 1.35;
}

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

.site-footer {
    margin-top: 52px;
    padding: 38px 0;
    color: #fed7aa;
    background: #431407;
}

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

.footer-grid p {
    max-width: 560px;
    color: #fdba74;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
}

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

@media (max-width: 980px) {
    .header-inner {
        gap: 12px;
    }

    .main-nav,
    .header-search {
        display: none;
    }

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

    .main-nav.is-open {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: grid;
        gap: 0;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 251, 235, 0.98);
        box-shadow: var(--shadow);
    }

    .quick-categories,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

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

@media (max-width: 640px) {
    .brand-text {
        font-size: 18px;
    }

    .hero-slider {
        min-height: 76vh;
    }

    .hero-content {
        bottom: 96px;
    }

    .hero-arrow {
        top: auto;
        bottom: 26px;
        transform: none;
    }

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

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

    .quick-categories,
    .movie-grid,
    .listing-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 54px 100px 1fr;
        gap: 12px;
    }

    .rank-poster {
        height: 76px;
    }

    .detail-content {
        padding: 28px;
    }

    .detail-hero,
    .detail-content {
        min-height: 620px;
    }

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