:root {
    --site-bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f3d7b5;
    --brand: #ea580c;
    --brand-dark: #9a3412;
    --brand-light: #f59e0b;
    --shadow: 0 18px 40px rgba(154, 52, 18, 0.15);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 0%, rgba(251, 146, 60, 0.2), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.18), transparent 34%);
    z-index: -1;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #7c2d12, #f59e0b);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(251, 191, 36, 0.28);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(120, 53, 15, 0.08);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--brand-dark);
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 15px;
    background: linear-gradient(135deg, #fbbf24, #f97316 52%, #c2410c);
    box-shadow: 0 12px 22px rgba(234, 88, 12, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    font-weight: 700;
    color: #374151;
}

.desktop-nav > a,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 8px 0;
}

.desktop-nav a:hover,
.nav-dropdown:hover > button,
.desktop-nav .is-active {
    color: var(--brand);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 38px;
    left: 0;
    width: 180px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #4b5563;
}

.nav-dropdown-menu a:hover {
    color: var(--brand-dark);
    background: #fff7ed;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 310px;
    padding: 6px;
    background: #fff7ed;
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 999px;
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 7px 10px;
    color: var(--text);
}

.header-search button,
.primary-button,
.secondary-button,
.text-link {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316 58%, #c2410c);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.24);
}

.header-search button {
    padding: 8px 16px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
}

.secondary-button {
    color: #9a3412;
    background: rgba(255, 247, 237, 0.88);
    border: 1px solid rgba(251, 191, 36, 0.5);
}

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

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: var(--brand-dark);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(251, 191, 36, 0.25);
}

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

.hero-section {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(124, 45, 18, 0.96), rgba(154, 52, 18, 0.78) 42%, rgba(251, 146, 60, 0.45)),
        radial-gradient(circle at 80% 20%, rgba(253, 186, 116, 0.55), transparent 28%);
    z-index: -2;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, #000, transparent);
}

.hero-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 86px 24px 72px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    gap: 48px;
    align-items: center;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeInUp 0.55s ease both;
}

.hero-copy {
    color: #fff7ed;
}

.hero-kicker,
.section-heading p,
.page-hero p,
.detail-kicker,
.movie-card-kicker,
.ranking-card p,
.category-overview-card > div > p {
    color: var(--brand);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy .hero-kicker {
    color: #fed7aa;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 14px 0 16px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 900;
    color: #fde68a;
}

.hero-copy p:not(.hero-kicker) {
    max-width: 720px;
    font-size: 18px;
    line-height: 1.9;
    color: rgba(255, 247, 237, 0.88);
}

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

.hero-tags {
    margin: 22px 0 28px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

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

.tag-row span {
    color: #9a3412;
    background: #ffedd5;
}

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

.hero-poster {
    position: relative;
    display: block;
    height: 520px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(67, 20, 7, 0.45);
    border: 1px solid rgba(255, 237, 213, 0.34);
    transform: rotate(1deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(67, 20, 7, 0.76));
}

.hero-poster span {
    position: absolute;
    left: 22px;
    bottom: 22px;
    z-index: 1;
    color: #ffffff;
    font-weight: 900;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.88);
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 237, 213, 0.5);
}

.hero-dots button.is-active {
    width: 36px;
    background: #fbbf24;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 74px 24px 0;
}

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

.section-heading:not(.align-left) {
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-content h2,
.article-text h2,
.category-overview-card h2,
.ranking-card h2 {
    margin: 4px 0 0;
    color: #1f2937;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
    color: var(--brand-dark);
    font-weight: 900;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 18px;
    border-radius: 24px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: var(--shadow);
    background: #7c2d12;
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 0.28s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(67, 20, 7, 0.82));
}

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

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

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

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

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

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

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

.movie-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(154, 52, 18, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(154, 52, 18, 0.18);
}

.movie-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #7c2d12, #f97316);
}

.movie-card-cover img {
    transition: transform 0.28s ease;
}

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

.movie-year,
.movie-play {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    font-weight: 900;
}

.movie-year {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    color: #9a3412;
    background: #fffbeb;
}

.movie-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.9);
    box-shadow: 0 10px 22px rgba(67, 20, 7, 0.25);
}

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

.movie-card-body h3 {
    margin: 8px 0;
    font-size: 19px;
    line-height: 1.28;
    font-weight: 950;
}

.movie-card-body h3 a:hover,
.ranking-card h2 a:hover,
.category-overview-card h2 a:hover {
    color: var(--brand);
}

.movie-card-meta,
.movie-card-desc {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.movie-card-desc {
    min-height: 48px;
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, #431407, #7c2d12);
    color: #fffbeb;
    box-shadow: var(--shadow);
}

.ranking-panel .section-heading h2,
.ranking-panel .section-heading p,
.ranking-panel .section-heading a {
    color: #fffbeb;
}

.compact-heading {
    display: block;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
}

.rank-item span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #7c2d12;
    background: #fbbf24;
    font-weight: 950;
}

.rank-item strong,
.rank-item em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item em {
    color: #fed7aa;
    font-style: normal;
    font-size: 13px;
}

.page-hero,
.detail-hero {
    max-width: 1280px;
    margin: 28px auto 0;
    padding: 58px 24px 0;
}

.page-hero > div,
.detail-layout {
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.88)),
        radial-gradient(circle at 85% 10%, rgba(251, 146, 60, 0.32), transparent 32%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: var(--shadow);
}

.page-hero > div {
    padding: 54px;
}

.page-hero span {
    display: block;
    max-width: 780px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.slim-hero > div {
    padding: 44px 54px;
}

.filter-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(251, 191, 36, 0.32);
    box-shadow: 0 10px 28px rgba(154, 52, 18, 0.09);
}

.filter-panel label {
    color: var(--brand-dark);
    font-weight: 950;
    white-space: nowrap;
}

.filter-panel input {
    flex: 1;
    min-width: 0;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    outline: 0;
    padding: 13px 18px;
    background: #fff7ed;
}

.prominent-filter {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 18px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(251, 191, 36, 0.32);
    box-shadow: var(--shadow);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-cover-stack img {
    aspect-ratio: 1 / 1.2;
    border-radius: 16px;
}

.category-overview-card h2 {
    font-size: 30px;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.8;
}

.ranking-grid {
    display: grid;
    gap: 18px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    padding: 16px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(251, 191, 36, 0.32);
    box-shadow: 0 12px 30px rgba(154, 52, 18, 0.1);
}

.ranking-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    overflow: hidden;
}

.ranking-cover span {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #7c2d12;
    background: #fbbf24;
    font-weight: 950;
}

.ranking-card h2 {
    font-size: 28px;
}

.ranking-card p {
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #9a3412;
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    padding: 28px;
    align-items: center;
}

.detail-cover {
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 44px rgba(154, 52, 18, 0.2);
}

.detail-info h1 {
    margin: 12px 0 18px;
    font-size: clamp(36px, 5vw, 62px);
}

.detail-one-line {
    max-width: 780px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.9;
}

.detail-tags {
    margin: 24px 0;
}

.detail-content {
    padding-top: 48px;
}

.detail-content > h2 {
    margin-bottom: 20px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.28);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.26), rgba(17, 24, 39, 0.64));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
    font-size: 28px;
}

.player-overlay span:last-child {
    font-size: 20px;
    font-weight: 950;
}

.article-text {
    margin-top: 30px;
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(251, 191, 36, 0.32);
    box-shadow: var(--shadow);
}

.article-text h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 30px;
}

.article-text p {
    color: #4b5563;
    line-height: 2;
    font-size: 17px;
}

.filter-empty {
    margin: 28px 0 0;
    padding: 18px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(251, 191, 36, 0.32);
}

.site-footer {
    margin-top: 90px;
    color: #fffbeb;
    background: linear-gradient(180deg, #7c2d12, #431407);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 220px 220px;
    gap: 36px;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 14px;
    color: #fffbeb;
}

.footer-inner p,
.footer-links a {
    color: #fed7aa;
    line-height: 1.8;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 237, 213, 0.16);
    padding: 18px 24px;
    text-align: center;
    color: #fed7aa;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .hero-slide,
    .two-column-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        height: 420px;
        transform: none;
    }

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

    .ranking-panel {
        position: static;
    }

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

@media (max-width: 760px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

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

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .hero-shell {
        padding: 48px 16px 72px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .hero-copy p:not(.hero-kicker) {
        font-size: 16px;
    }

    .hero-poster {
        height: 360px;
    }

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

    .page-hero > div,
    .detail-layout {
        padding: 24px;
        border-radius: 24px;
    }

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

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

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

    .movie-card-desc {
        display: none;
    }

    .filter-panel,
    .ranking-card,
    .category-overview-card,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .ranking-card {
        gap: 14px;
    }

    .ranking-cover {
        max-width: 220px;
    }

    .article-text {
        padding: 22px;
    }

    .footer-inner {
        padding: 34px 16px;
    }
}

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

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

    .primary-button,
    .secondary-button {
        width: 100%;
    }
}
