:root {
    --bg: #f9fafb;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --amber: #d97706;
    --amber-dark: #b45309;
    --amber-soft: #fef3c7;
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 25px 70px rgba(15, 23, 42, 0.2);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

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

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

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 12px 22px rgba(217, 119, 6, 0.35);
}

.logo-text {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

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

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber-dark);
    background: var(--amber-soft);
}

.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.nav-search input {
    width: 220px;
    border: 0;
    outline: 0;
    padding: 8px 10px;
    background: transparent;
}

.nav-search button,
.btn {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-search button {
    color: #ffffff;
    background: var(--amber);
    padding: 8px 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
}

.btn:hover,
.nav-search button:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: var(--amber);
    box-shadow: 0 12px 25px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
    background: var(--amber-dark);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.btn.full {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #111827;
}

.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.04));
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1180px) / 2));
    right: 32px;
    bottom: 58px;
    max-width: 760px;
    color: #ffffff;
}

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

.hero-tags span {
    padding: 5px 12px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(217, 119, 6, 0.7);
    border: 1px solid rgba(253, 230, 138, 0.25);
}

.hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: 1.1rem;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.site-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 76px;
}

.inner-page {
    padding-top: 36px;
}

.content-section {
    margin-bottom: 70px;
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--amber-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-more {
    color: var(--amber-dark);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937, #92400e);
}

.poster-frame img,
.small-poster img,
.rank-poster img,
.poster-aside img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shade,
.video-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 58%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

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

.play-badge,
.video-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--amber);
    transform: translate(-50%, -50%) scale(0.88);
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.play-badge {
    width: 56px;
    height: 56px;
    opacity: 0;
}

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

.card-body {
    padding: 18px;
}

.movie-card-compact .card-body {
    padding: 14px;
}

.card-meta {
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.82rem;
}

.card-meta span:first-child,
.detail-meta a,
.tag-pill {
    color: #92400e;
    background: var(--amber-soft);
}

.card-meta span:first-child {
    padding: 3px 9px;
    border-radius: 8px;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--amber-dark);
}

.movie-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-pill {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-style: normal;
}

.hot-panel {
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.category-cloud,
.page-hero,
.category-index,
.rank-list,
.search-panel,
.summary-box,
.review-box,
.tag-box,
.aside-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.category-cloud,
.page-hero {
    padding: 34px;
}

.soft-hero {
    margin-bottom: 32px;
    background: radial-gradient(circle at top left, #ffedd5, #ffffff 58%);
}

.page-hero p {
    max-width: 820px;
    margin: 12px 0 0;
    color: var(--muted);
}

.cloud-list,
.category-index,
.sub-nav,
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cloud-list a,
.sub-nav a,
.quick-filters button {
    padding: 9px 14px;
    border-radius: 999px;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid var(--border);
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cloud-list a:hover,
.sub-nav a:hover,
.quick-filters button:hover,
.quick-filters button.is-active {
    color: #92400e;
    background: var(--amber-soft);
    border-color: #fcd34d;
}

.category-index {
    padding: 24px;
}

.category-tile {
    flex: 1 1 180px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
}

.category-tile span {
    font-size: 1.15rem;
    font-weight: 800;
}

.category-tile em {
    color: var(--muted);
    font-style: normal;
}

.sub-nav {
    margin: 0 0 28px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.pagination a,
.pagination strong,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
}

.pagination strong {
    color: #ffffff;
    border-color: var(--amber);
    background: var(--amber);
}

.rank-list {
    padding: 18px;
}

.rank-row {
    display: grid;
    grid-template-columns: 58px 112px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    font-weight: 900;
}

.rank-poster {
    height: 76px;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
}

.rank-info h2 {
    margin: 0 0 5px;
    font-size: 1.08rem;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
}

.rank-score {
    color: var(--amber-dark);
    font-size: 1.45rem;
}

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

.search-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 12px;
    padding: 14px;
}

.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    outline: 0;
    background: #ffffff;
}

.empty-state {
    padding: 44px;
    text-align: center;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-page {
    padding-top: 36px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: 30px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 16 / 9;
}

.movie-video,
.video-cover,
.video-cover-bg,
.video-cover-bg img {
    width: 100%;
    height: 100%;
}

.movie-video {
    display: block;
    background: #000000;
}

.video-cover {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000000;
}

.video-cover-bg {
    position: absolute;
    inset: 0;
}

.video-cover-bg img {
    object-fit: cover;
}

.video-cover-shade {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22));
}

.video-play-icon {
    width: 82px;
    height: 82px;
    font-size: 2rem;
}

.video-shell.is-started .video-cover {
    display: none;
}

.movie-detail-card,
.aside-card {
    margin-top: 24px;
    padding: 28px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.movie-detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.detail-meta {
    gap: 12px;
    color: var(--muted);
    margin-bottom: 24px;
}

.detail-meta a,
.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
}

.detail-meta span {
    background: #f3f4f6;
}

.summary-box,
.review-box,
.tag-box {
    padding: 24px;
    margin-top: 20px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.review-box,
.tag-box {
    background: #ffffff;
    border: 1px solid var(--border);
}

.summary-box h2,
.review-box h2,
.tag-box h2,
.aside-card h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.summary-box p,
.review-box p {
    margin: 0;
    color: #374151;
}

.lead-text {
    margin-bottom: 12px !important;
    color: var(--muted) !important;
}

.detail-aside {
    align-self: start;
    position: sticky;
    top: 92px;
}

.poster-aside {
    overflow: hidden;
    padding: 0;
}

.poster-aside img {
    height: 360px;
    background: #111827;
}

.poster-aside .btn {
    width: calc(100% - 32px);
    margin: 16px;
}

.small-list {
    display: grid;
    gap: 12px;
}

.small-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: center;
}

.small-poster {
    height: 62px;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
}

.small-info strong {
    display: block;
    line-height: 1.35;
}

.small-info em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-style: normal;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 42px 0;
}

.footer-logo {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

.footer-inner p {
    max-width: 620px;
    margin: 12px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: #fcd34d;
}

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

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

    .detail-aside {
        position: static;
    }

    .search-panel {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .nav-shell {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        border-radius: 12px;
        background: #f9fafb;
    }

    .nav-search {
        order: 4;
        width: 100%;
        margin-left: 0;
    }

    .nav-search input {
        width: 100%;
    }

    .hero {
        height: 560px;
    }

    .hero-content {
        left: 24px;
        right: 24px;
        bottom: 62px;
    }

    .hero-arrow {
        display: none;
    }

    .section-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .rank-score {
        grid-column: 3;
    }
}

@media (max-width: 620px) {
    .site-main {
        width: min(100% - 24px, 1180px);
        padding-top: 34px;
    }

    .three-cols,
    .four-cols,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .hot-panel,
    .category-cloud,
    .page-hero,
    .movie-detail-card,
    .aside-card,
    .summary-box,
    .review-box,
    .tag-box {
        padding: 22px;
        border-radius: 20px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

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

    .rank-poster {
        display: none;
    }

    .rank-score {
        grid-column: 2;
    }
}
