:root {
    --bg: #f9fafb;
    --paper: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --orange: #f97316;
    --amber: #d97706;
    --yellow: #f59e0b;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
    --soft-shadow: 0 10px 25px rgba(31, 41, 55, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 247, 237, 0.94));
    border-bottom: 1px solid rgba(251, 146, 60, 0.22);
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 18px rgba(251, 146, 60, 0.08);
}

.nav-wrap {
    max-width: 1180px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-6deg);
}

.brand-text {
    font-size: 1.15rem;
}

.desktop-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link,
.mobile-link {
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #fff;
    background: linear-gradient(135deg, #f97316, #d97706);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(251, 146, 60, 0.12);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    padding: 12px 22px 18px;
    border-top: 1px solid rgba(251, 146, 60, 0.18);
}

.mobile-link {
    display: block;
    padding: 12px 16px;
    margin: 4px 0;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5 0%, #fffbeb 42%, #fef3c7 100%);
}

.hero-carousel:before,
.hero-carousel:after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    filter: blur(42px);
    opacity: 0.24;
}

.hero-carousel:before {
    top: 40px;
    left: 8%;
    background: #fb923c;
}

.hero-carousel:after {
    right: 8%;
    bottom: 25px;
    background: #facc15;
}

.hero-inner {
    position: relative;
    max-width: 1180px;
    min-height: 560px;
    margin: 0 auto;
    padding: 54px 22px 80px;
}

.hero-slide {
    position: absolute;
    inset: 54px 22px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
    gap: 42px;
    align-items: center;
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    color: #9a3412;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(251, 146, 60, 0.28);
    font-weight: 800;
    box-shadow: var(--soft-shadow);
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 760px;
    margin: 20px 0 18px;
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #1f2937;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 1.16rem;
}

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

.hero-tags span,
.tag,
.meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #78350f;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.22);
}

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

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

.primary-btn {
    padding: 14px 26px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #d97706);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.ghost-btn {
    padding: 12px 24px;
    color: #374151;
    background: rgba(255, 255, 255, 0.82);
    border: 2px solid rgba(229, 231, 235, 0.78);
}

.small-btn {
    padding: 10px 18px;
    color: #c2410c;
    background: #fff7ed;
}

.primary-btn:hover,
.ghost-btn:hover,
.small-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.hero-poster {
    position: relative;
    min-height: 360px;
    border-radius: 28px;
    overflow: hidden;
    background: #fff7ed;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-poster:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.48));
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-play,
.card-play {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.32);
}

.hero-play {
    left: 50%;
    top: 50%;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    font-size: 2rem;
    transform: translate(-50%, -50%);
}

.hero-dots {
    position: absolute;
    left: 22px;
    bottom: 26px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.25);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 58px;
    background: linear-gradient(135deg, #f97316, #d97706);
}

.section {
    padding: 72px 22px;
}

.section.white {
    background: #fff;
}

.section.soft {
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
}

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

.section-title {
    margin: 0;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    line-height: 1.15;
    color: var(--text);
}

.section-lead {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.card-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

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

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

.card-poster:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.32));
    opacity: 0;
    transition: opacity 0.24s ease;
}

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

.card-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(249, 115, 22, 0.92);
    font-size: 0.78rem;
    font-weight: 800;
}

.card-play {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 10px;
    min-height: 3.1em;
    font-size: 1.08rem;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--orange);
}

.card-body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 3.05em;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.tag {
    min-height: 24px;
    padding: 4px 9px;
    color: #6b4a05;
    background: #fef3c7;
    font-size: 0.76rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    color: #6b7280;
    font-size: 0.86rem;
}

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

.category-tile {
    min-height: 188px;
    padding: 26px;
    border-radius: 26px;
    color: #fff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.category-icon {
    display: block;
    margin-bottom: 14px;
    font-size: 2.5rem;
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 8px;
    font-size: 1.24rem;
}

.category-tile p {
    margin: 0;
    opacity: 0.94;
}

.grad-orange {
    background: linear-gradient(135deg, #fb923c, #d97706);
}

.grad-yellow {
    background: linear-gradient(135deg, #f59e0b, #eab308);
}

.grad-blue {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.grad-red {
    background: linear-gradient(135deg, #fb7185, #dc2626);
}

.grad-green {
    background: linear-gradient(135deg, #34d399, #059669);
}

.grad-purple {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.grad-rose {
    background: linear-gradient(135deg, #f472b6, #be123c);
}

.grad-cyan {
    background: linear-gradient(135deg, #22d3ee, #0891b2);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 118px 1fr 58px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.rank-number {
    color: #f97316;
    font-size: 1.65rem;
    font-weight: 900;
}

.rank-item img {
    height: 82px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-copy h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.rank-copy p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 0.78rem;
}

.score {
    color: #fff;
    background: linear-gradient(135deg, #f97316, #d97706);
    border-radius: 999px;
    padding: 8px 10px;
    text-align: center;
}

.page-hero {
    padding: 66px 22px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #d97706 56%, #f59e0b);
}

.page-hero .container {
    display: grid;
    gap: 18px;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    opacity: 0.92;
    font-size: 1.08rem;
}

.search-panel {
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    margin-bottom: 28px;
}

.search-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 18px;
    color: var(--text);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15);
}

.filter-empty {
    display: none;
    padding: 44px;
    text-align: center;
    color: var(--muted);
}

.detail-hero {
    padding: 52px 22px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.detail-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    background: #fed7aa;
}

.detail-cover img {
    height: 520px;
    object-fit: cover;
}

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

.breadcrumb a {
    font-weight: 800;
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3.9rem);
    line-height: 1.08;
}

.detail-copy .lead {
    max-width: 760px;
    margin: 20px 0;
    color: #4b5563;
    font-size: 1.12rem;
}

.player-section {
    padding: 56px 22px 28px;
    background: #111827;
    color: #fff;
}

.player-wrap {
    max-width: 1050px;
    margin: 0 auto;
}

.player-wrap h2 {
    margin: 0 0 18px;
    font-size: 1.8rem;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #030712;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
    aspect-ratio: 16 / 9;
}

.movie-player {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.78));
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.play-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #d97706);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.34);
    font-size: 2.2rem;
}

.play-layer strong {
    font-size: 1.18rem;
}

.article-section {
    padding: 54px 22px;
    background: #fff;
}

.article-grid {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 26px;
}

.content-card {
    padding: 30px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.content-card h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 1.55rem;
}

.content-card p {
    margin: 0;
    color: #4b5563;
    font-size: 1.03rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 22px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    color: #fff;
    font-size: 1.28rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.05rem;
}

.site-footer p {
    margin: 0;
    color: #d1d5db;
}

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

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

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 22px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

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

@media (max-width: 1024px) {
    .grid,
    .grid.three,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .detail-cover img {
        height: 420px;
    }
}

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

    .menu-toggle {
        display: block;
    }

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        inset: 32px 22px 80px;
        gap: 24px;
    }

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

    .hero-poster img {
        min-height: 280px;
    }

    .section-head {
        display: grid;
    }

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

    .detail-cover img {
        height: 360px;
    }

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

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

@media (max-width: 560px) {
    .brand-text {
        font-size: 1rem;
    }

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

    .rank-item {
        grid-template-columns: 40px 86px 1fr;
        align-items: start;
    }

    .rank-item .score {
        grid-column: 2 / 4;
        justify-self: start;
        margin-top: 4px;
    }

    .rank-item img {
        height: 72px;
    }

    .hero-actions,
    .search-box {
        display: grid;
    }

    .primary-btn,
    .ghost-btn,
    .small-btn {
        width: 100%;
    }

    .section {
        padding: 54px 16px;
    }

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