:root {
    color-scheme: light;
    --bg: #fff7ed;
    --bg-soft: #fffaf5;
    --panel: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: rgba(17, 24, 39, 0.09);
    --brand: #f97316;
    --brand-strong: #dc2626;
    --brand-dark: #9a3412;
    --gold: #fbbf24;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fffaf5 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(17, 24, 39, 0.88);
    color: #ffffff;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

.brand-text {
    font-size: 1.08rem;
    white-space: nowrap;
}

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

.nav-link {
    padding: 10px 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.18);
    transform: translateY(-1px);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.header-search input,
.mobile-search input {
    width: 210px;
    padding: 10px 14px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.header-search button,
.mobile-search button,
.search-panel button,
.hero-search-panel button {
    border: 0;
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px 18px;
    gap: 8px;
    flex-direction: column;
}

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

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

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 20%, rgba(249, 115, 22, 0.35), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.78) 44%, rgba(17, 24, 39, 0.2));
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 112px 24px 240px;
    margin-left: max(24px, calc((100vw - 1240px) / 2));
}

.eyebrow,
.eyebrow-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fed7aa;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.eyebrow span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(249, 115, 22, 0.14);
    color: #ea580c;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 20px 0;
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.12rem;
    line-height: 1.9;
}

.hero-actions,
.hero-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-btn,
.ghost-btn,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    min-height: 46px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 16px 34px rgba(220, 38, 38, 0.28);
}

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

.primary-btn.full {
    width: 100%;
}

.ghost-btn {
    min-height: 46px;
    padding: 0 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-controls {
    position: absolute;
    left: max(24px, calc((100vw - 1240px) / 2));
    bottom: 158px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

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

.hero-dot.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.hero-search-panel {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 32px;
    z-index: 5;
    width: min(1192px, calc(100% - 48px));
    transform: translateX(-50%);
    padding: 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.hero-search-panel form,
.search-panel,
.page-filter {
    display: flex;
    gap: 12px;
}

.hero-search-panel input,
.search-panel input,
.page-filter input,
.search-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    outline: 0;
    color: var(--ink);
    background: #ffffff;
}

.hero-search-panel button,
.search-panel button {
    min-width: 118px;
    border-radius: 999px;
}

.hero-cats {
    margin-top: 14px;
}

.hero-cats a {
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(17, 24, 39, 0.32);
}

.content-section,
.page-main,
.detail-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 58px 24px;
}

.no-top {
    padding-top: 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.detail-side h2,
.category-list-card h2 {
    margin: 0;
    color: var(--ink);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.section-heading h2 {
    font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.section-heading p,
.page-hero p,
.category-list-card p,
.detail-one-line,
.movie-card-body p,
.detail-article p,
.detail-side strong {
    color: var(--muted);
    line-height: 1.75;
}

.section-more,
.text-link {
    color: #ea580c;
    background: #ffedd5;
    padding: 10px 15px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.09);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

.poster-link img,
.category-cover img,
.category-card img,
.ranking-lead-card img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .poster-link img,
.category-card:hover img,
.category-list-card:hover img,
.ranking-lead-card:hover img {
    transform: scale(1.06);
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.35);
}

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    color: var(--ink);
    font-weight: 950;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: #ea580c;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0;
    color: #9ca3af;
    font-size: 0.82rem;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 7px;
}

.movie-card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.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;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.9));
}

.category-card img {
    position: absolute;
    inset: 0;
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card span {
    font-size: 1.26rem;
    font-weight: 950;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin: 30px 0 36px;
    padding: 58px;
    border-radius: 30px;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 20%, rgba(251, 191, 36, 0.42), transparent 30%),
        linear-gradient(135deg, #ea580c, #dc2626 58%, #111827);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(2.25rem, 5vw, 4.4rem);
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

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

.category-list-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 18px;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.category-cover {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 20px;
    background: #111827;
}

.category-list-card h2 {
    font-size: 1.7rem;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.mini-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 0.9rem;
}

.search-panel {
    margin-top: 24px;
    max-width: 820px;
}

.search-panel select {
    max-width: 180px;
}

.no-result {
    display: none;
    margin: 28px 0;
    padding: 28px;
    border-radius: 22px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border: 1px dashed rgba(249, 115, 22, 0.35);
}

.no-result.active {
    display: block;
}

.ranking-leads {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ranking-lead-card {
    min-height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    display: flex;
    align-items: flex-end;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow);
}

.ranking-lead-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.86));
}

.ranking-lead-card img {
    position: absolute;
    inset: 0;
}

.ranking-lead-card div {
    position: relative;
    z-index: 2;
    padding: 22px;
}

.ranking-lead-card span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    font-weight: 950;
}

.ranking-lead-card h2 {
    margin: 10px 0;
    font-size: 1.5rem;
}

.ranking-lead-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    color: var(--muted);
}

.breadcrumb a:hover {
    color: #ea580c;
}

.detail-hero {
    min-height: 520px;
    border-radius: 32px;
    padding: 34px;
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: end;
    gap: 34px;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
    margin: 14px 0;
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 4.9rem);
}

.detail-one-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 1.08rem;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.detail-facts li,
.detail-side li {
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-facts span,
.detail-side span {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
}

.detail-facts strong,
.detail-side strong {
    display: block;
    margin-top: 3px;
    color: #ffffff;
    font-size: 0.92rem;
}

.player-section {
    padding: 46px 0 0;
}

.compact-heading {
    align-items: flex-start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #050505;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.32);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.28), rgba(17, 24, 39, 0.36));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 20px 45px rgba(220, 38, 38, 0.45);
    cursor: pointer;
}

.player-play span {
    width: 0;
    height: 0;
    margin-left: 7px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 28px solid #ffffff;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    padding-top: 42px;
}

.detail-article,
.detail-side {
    border-radius: 28px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 14px;
    font-size: 1.65rem;
}

.detail-article p {
    margin: 0 0 24px;
    font-size: 1.02rem;
}

.detail-side ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0 0 18px;
    list-style: none;
}

.detail-side li {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.detail-side span {
    color: #9a3412;
}

.detail-side strong {
    color: var(--ink);
}

.related-section {
    padding-left: 0;
    padding-right: 0;
}

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

.site-footer {
    margin-top: 40px;
    padding: 56px 24px 26px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.12rem;
}

.site-footer p {
    max-width: 520px;
    color: #9ca3af;
    line-height: 1.75;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fb923c;
    font-size: 1.04rem;
}

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

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

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

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

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

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

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

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

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

    .hero-carousel {
        min-height: 780px;
    }

    .hero-copy {
        padding: 90px 22px 300px;
        margin-left: 0;
    }

    .hero-controls {
        bottom: 228px;
        left: 24px;
    }

    .hero-search-panel,
    .page-hero {
        width: calc(100% - 28px);
        padding: 18px;
        border-radius: 22px;
    }

    .hero-search-panel form,
    .search-panel,
    .page-filter {
        flex-direction: column;
    }

    .hero-search-panel button,
    .search-panel button,
    .search-panel select {
        width: 100%;
        max-width: none;
        min-height: 48px;
    }

    .section-heading,
    .header-inner {
        align-items: flex-start;
    }

    .section-heading {
        flex-direction: column;
    }

    .movie-grid,
    .wide-grid,
    .category-grid,
    .ranking-leads,
    .related-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .detail-hero {
        padding: 20px;
        min-height: auto;
    }

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

@media (max-width: 520px) {
    .brand-text {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .movie-grid,
    .wide-grid,
    .category-grid,
    .ranking-leads,
    .related-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .content-section,
    .page-main,
    .detail-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .movie-card.compact {
        display: grid;
        grid-template-columns: 126px 1fr;
    }

    .movie-card.compact .poster-link {
        height: 100%;
        aspect-ratio: auto;
    }

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

    .player-play {
        width: 72px;
        height: 72px;
    }
}
