:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fffaf5;
    --text: #111827;
    --muted: #6b7280;
    --line: #f1e4d9;
    --accent: #f97316;
    --accent-deep: #dc2626;
    --dark: #111827;
    --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
}

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

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

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--accent);
}

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

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 11px 14px;
    outline: none;
    background: #fff;
    color: #111827;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.rank-action,
.player-overlay span {
    border: none;
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
}

.header-search button,
.mobile-search button,
.primary-btn,
.rank-action {
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

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

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 28px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #ffedd5;
    padding: 12px 16px 18px;
    background: #fff;
}

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

.mobile-search {
    display: flex;
    gap: 8px;
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 30%, rgba(249, 115, 22, 0.38), transparent 32%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.72) 46%, rgba(17, 24, 39, 0.36)),
        linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.72) 100%);
}

.hero-content {
    position: relative;
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.06fr 0.54fr;
    align-items: center;
    gap: 46px;
    color: #fff;
    padding: 74px 0;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 14px;
    margin-bottom: 18px;
    background: rgba(249, 115, 22, 0.18);
    color: #fed7aa;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 22px 0 0;
    max-width: 690px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.tag-list span,
.detail-tags span {
    border-radius: 999px;
    padding: 6px 10px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 750;
}

.hero-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster {
    align-self: center;
    justify-self: end;
    width: min(360px, 100%);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

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

.hero-poster span {
    display: block;
    padding: 14px 18px;
    color: #fff;
    font-weight: 800;
}

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

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

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

.section {
    padding: 58px 0;
}

.section.alt {
    background: rgba(255, 237, 213, 0.36);
}

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

.section-kicker {
    color: var(--accent);
    font-weight: 900;
    margin: 0 0 4px;
}

.section-heading h2,
.page-title h1,
.detail-info h1 {
    margin: 0;
    color: #111827;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading h2,
.page-title h1 {
    font-size: clamp(30px, 4vw, 48px);
}

.section-heading p,
.page-title p {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 740px;
}

.link-more {
    color: var(--accent);
    font-weight: 900;
    white-space: nowrap;
}

.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: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover .poster-image {
    transform: scale(1.05);
    opacity: 0.88;
}

.year-badge,
.play-chip {
    position: absolute;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
    font-size: 12px;
}

.year-badge {
    left: 12px;
    top: 12px;
    color: #fff;
    background: rgba(17, 24, 39, 0.74);
    backdrop-filter: blur(8px);
}

.play-chip {
    right: 12px;
    bottom: 12px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #ef4444);
}

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

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.movie-card h3,
.rank-content h3 {
    margin: 8px 0 7px;
    font-size: 19px;
    line-height: 1.28;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover {
    color: var(--accent);
}

.movie-card p,
.rank-content p {
    margin: 0 0 13px;
    color: #4b5563;
    font-size: 14px;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 24px;
    padding: 18px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: end;
    isolation: isolate;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.35s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.86));
}

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

.category-card span {
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.page-title {
    padding: 54px 0 30px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #7c2d12;
    font-weight: 750;
    margin-bottom: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #fed7aa;
    border-radius: 22px;
    background: #fff;
}

.filter-bar label {
    display: grid;
    gap: 7px;
    color: #9a3412;
    font-weight: 800;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 66px 86px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
}

.rank-number {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, #fb923c, #ef4444);
}

.rank-cover img {
    width: 86px;
    height: 112px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.detail-top {
    position: relative;
    overflow: hidden;
    padding: 54px 0;
    color: #fff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.26;
    filter: blur(2px) saturate(1.1);
}

.detail-top::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.76));
}

.detail-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.detail-info h1 {
    color: #fff;
    font-size: clamp(36px, 5.5vw, 66px);
}

.detail-info .lead {
    margin: 18px 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    max-width: 820px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 26px;
}

.player-section {
    padding: 52px 0;
    background: #0f172a;
}

.player-shell {
    max-width: 980px;
    margin: 0 auto;
}

.player-title {
    color: #fff;
    margin: 0 0 18px;
    font-size: 30px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    z-index: 2;
}

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

.player-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 34px;
    padding-left: 5px;
}

.content-block {
    display: grid;
    gap: 22px;
    padding: 52px 0;
}

.prose-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.prose-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.prose-card p {
    margin: 0;
    color: #374151;
}

.no-results {
    display: none;
    border: 1px dashed #fdba74;
    border-radius: 22px;
    padding: 28px;
    text-align: center;
    color: #9a3412;
    background: #fff7ed;
    font-weight: 800;
}

.no-results.is-visible {
    display: block;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
    padding-top: 48px;
}

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

.footer-brand {
    color: #fff;
    font-size: 22px;
}

.footer-main p {
    max-width: 560px;
    color: #9ca3af;
}

.site-footer h3 {
    color: #fff;
    margin: 0 0 14px;
}

.site-footer a {
    display: block;
    color: #d1d5db;
    margin: 8px 0;
}

.site-footer a:hover {
    color: #fb923c;
}

.footer-bottom {
    margin-top: 34px;
    padding: 18px 0;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero-poster {
        justify-self: start;
        max-width: 280px;
    }

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

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

@media (max-width: 720px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding: 48px 0 86px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-actions,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

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

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

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

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

    .rank-row {
        grid-template-columns: 46px 70px 1fr;
    }

    .rank-action {
        grid-column: 2 / 4;
    }

    .rank-number {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 14px;
    }

    .rank-cover img {
        width: 70px;
        height: 94px;
    }

    .detail-grid {
        gap: 22px;
    }

    .detail-poster img {
        max-width: 230px;
    }

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

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

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

    .hero-poster {
        width: 220px;
    }
}
