
:root {
    --site-amber: #d97706;
    --site-amber-dark: #92400e;
    --site-amber-soft: #fff7ed;
    --site-gray: #111827;
    --site-muted: #6b7280;
    --site-border: #e5e7eb;
    --site-radius: 16px;
    --site-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

body {
    background: #ffffff;
    color: #111827;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.is-menu-open {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    width: min(1280px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--site-amber-dark);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.25);
}

.brand-text {
    font-size: 20px;
    letter-spacing: -0.02em;
}

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

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

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

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 220px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.75);
}

.header-search button,
.mobile-search button {
    height: 40px;
    border-radius: 999px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--site-amber);
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #111827;
    font-size: 24px;
}

.mobile-menu-button:hover {
    background: #f3f4f6;
}

.mobile-panel {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 20px;
    border-top: 1px solid #e5e7eb;
}

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

.mobile-search {
    margin-bottom: 16px;
}

.mobile-search input {
    flex: 1;
}

.mobile-nav {
    display: grid;
    gap: 14px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-slide img,
.detail-hero-bg img,
.category-cover img,
.poster-wrap img,
.list-poster img,
.mini-poster img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.1));
}

.hero-content-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-content {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 720px;
    color: #ffffff;
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-tags span,
.detail-tags span,
.pill,
.meta-pill,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span:first-child,
.detail-tags span:first-child,
.pill {
    background: var(--site-amber);
    color: #ffffff;
}

.hero-tags span:not(:first-child),
.detail-tags span:not(:first-child),
.meta-pill {
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    margin: 0 0 20px;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 680px;
    font-size: 19px;
    line-height: 1.8;
    color: #e5e7eb;
    margin-bottom: 30px;
}

.hero-actions,
.section-title-row,
.detail-meta-grid,
.card-meta,
.list-heading {
    display: flex;
    align-items: center;
}

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

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    min-height: 46px;
    padding: 0 28px;
    color: #ffffff;
    background: var(--site-amber);
    box-shadow: 0 14px 24px rgba(217, 119, 6, 0.25);
}

.primary-button:hover {
    background: #b45309;
    transform: translateY(-1px);
}

.ghost-button {
    min-height: 46px;
    padding: 0 24px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.52);
    font-size: 36px;
    line-height: 1;
}

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

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
    padding: 72px 0;
}

.section-white {
    background: #ffffff;
}

.section-amber {
    background: linear-gradient(180deg, #fffbeb, #ffffff);
}

.section-gray {
    background: #f3f4f6;
}

.section-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.section-title-row {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.compact-title {
    margin-bottom: 22px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--site-amber);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-title-row h2,
.page-hero h1,
.detail-copy h1,
.detail-sidebar h2,
.detail-text-block h2,
.category-overview-body h2 {
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-title-row h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.section-more {
    min-height: 40px;
    padding: 0 18px;
    color: var(--site-amber-dark);
    background: #ffffff;
    border: 1px solid #fbbf24;
}

.section-more:hover {
    background: var(--site-amber);
    color: #ffffff;
}

.featured-grid,
.movie-grid,
.category-grid,
.category-overview-grid,
.mini-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

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

.movie-card,
.movie-card-large,
.movie-mini-card,
.movie-list-card,
.category-overview-card,
.category-tile {
    background: #ffffff;
    border-radius: var(--site-radius);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.movie-card-large:hover,
.movie-mini-card:hover,
.movie-list-card:hover,
.category-overview-card:hover,
.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

.poster-wrap,
.large-poster,
.list-poster,
.mini-poster,
.category-cover {
    position: relative;
    overflow: hidden;
    background: #111827;
}

.poster-wrap {
    height: 220px;
}

.large-poster {
    height: 390px;
}

.list-poster {
    width: 180px;
    height: 128px;
    flex: 0 0 180px;
}

.mini-poster {
    height: 150px;
}

.poster-wrap img,
.large-poster img,
.list-poster img,
.mini-poster img,
.category-cover img,
.detail-poster img {
    transition: transform 0.5s ease;
}

.movie-card:hover img,
.movie-card-large:hover img,
.movie-mini-card:hover img,
.movie-list-card:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.75));
}

.poster-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 24px;
    color: #ffffff;
}

.poster-caption h3 {
    margin: 12px 0 8px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
}

.poster-caption p,
.movie-card-body p,
.list-content p,
.category-overview-body p,
.category-tile p,
.detail-one-line,
.detail-text-block p,
.footer-about p {
    color: #6b7280;
    line-height: 1.75;
}

.poster-caption p {
    color: #e5e7eb;
}

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

.movie-card-body h3,
.movie-mini-card h3,
.list-content h3 {
    color: #111827;
    font-weight: 900;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover h3,
.movie-mini-card:hover h3,
.movie-list-card:hover h3 {
    color: var(--site-amber-dark);
}

.movie-card-body h3 {
    min-height: 44px;
    margin-bottom: 8px;
    font-size: 17px;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 50px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.year-badge,
.category-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.68);
}

.category-badge {
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: var(--site-amber);
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.card-meta {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
}

.movie-list-card a {
    display: flex;
    color: inherit;
}

.list-content {
    flex: 1;
    min-width: 0;
    padding: 18px;
}

.list-heading {
    gap: 12px;
    margin-bottom: 6px;
}

.list-heading .rank-badge {
    position: static;
    flex: 0 0 auto;
}

.list-content h3 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 18px;
}

.movie-mini-card a {
    display: block;
    padding-bottom: 14px;
}

.movie-mini-card h3 {
    display: -webkit-box;
    margin: 12px 14px 4px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 15px;
}

.movie-mini-card p {
    margin: 0 14px;
    color: #6b7280;
    font-size: 12px;
}

.category-tile {
    display: block;
    padding: 24px;
    border: 1px solid #f3d08a;
    background: linear-gradient(135deg, #ffffff, #fffbeb);
}

.category-tile span {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
    gap: 38px;
    align-items: start;
}

.list-stack {
    display: grid;
    gap: 16px;
}

.latest-panel {
    position: sticky;
    top: 92px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.small-page-hero {
    padding: 76px 0;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.35), transparent 32%), linear-gradient(135deg, #111827, #1f2937 55%, #78350f);
}

.page-hero-inner {
    width: min(1024px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    max-width: 780px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    margin-bottom: 32px;
    padding: 18px;
    border: 1px solid #fde68a;
    border-radius: 22px;
    background: #fffbeb;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
}

.empty-state {
    margin-top: 32px;
    padding: 28px;
    border-radius: 18px;
    background: #f9fafb;
    color: #6b7280;
    text-align: center;
}

.category-overview-card a {
    display: block;
}

.category-cover {
    height: 220px;
}

.category-overview-body {
    padding: 22px;
}

.category-overview-body h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.category-overview-body span {
    display: inline-flex;
    margin-top: 16px;
    color: var(--site-amber-dark);
    font-weight: 900;
}

.detail-hero {
    min-height: 620px;
}

.detail-hero-bg,
.detail-hero-overlay {
    position: absolute;
    inset: 0;
}

.detail-hero-bg {
    opacity: 0.38;
    filter: blur(2px);
    transform: scale(1.02);
}

.detail-hero-overlay {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.5));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
    color: #d1d5db;
    font-size: 14px;
}

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

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

.detail-poster {
    height: 430px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.35);
}

.detail-copy h1 {
    max-width: 880px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 64px);
}

.detail-one-line {
    max-width: 820px;
    margin-bottom: 24px;
    color: #e5e7eb;
    font-size: 19px;
}

.detail-meta-grid {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.detail-meta-grid span {
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.tag-list span {
    color: #fef3c7;
    background: rgba(217, 119, 6, 0.22);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.detail-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 38px;
    align-items: start;
}

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

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.96);
    font-size: 42px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

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

.detail-article {
    margin-top: 28px;
    display: grid;
    gap: 22px;
}

.detail-text-block {
    padding: 28px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.detail-text-block h2,
.detail-sidebar h2 {
    margin-bottom: 14px;
    font-size: 28px;
}

.detail-text-block p {
    color: #374151;
    font-size: 16px;
}

.detail-sidebar {
    position: sticky;
    top: 92px;
}

.sidebar-mini-grid {
    grid-template-columns: 1fr 1fr;
}

.ranking-list {
    margin-top: 28px;
}

.ranking-mini-grid {
    margin-top: 28px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 220px 220px;
    gap: 42px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #f59e0b;
    font-size: 20px;
}

.footer-about p {
    color: #9ca3af;
}

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

.footer-links h2 {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

.footer-links a {
    color: #d1d5db;
    font-size: 14px;
}

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

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding: 20px 0;
    color: #6b7280;
    text-align: center;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1120px) {
    .movie-grid,
    .category-movie-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .latest-panel,
    .detail-sidebar {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        min-height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .featured-grid,
    .category-overview-grid,
    .footer-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(320px, 100%);
        height: 420px;
    }

    .detail-hero-inner {
        padding-bottom: 46px;
    }
}

@media (max-width: 680px) {
    .site-header-inner {
        width: min(100% - 24px, 1280px);
    }

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

    .section {
        padding: 48px 0;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

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

    .poster-wrap {
        height: 190px;
    }

    .large-poster {
        height: 320px;
    }

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

    .movie-list-card a {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .list-poster {
        width: 120px;
        height: 100%;
    }

    .list-content {
        padding: 14px;
    }

    .list-content p {
        display: none;
    }

    .detail-poster {
        height: 380px;
    }

    .detail-main-section {
        padding-top: 32px;
    }

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

    .play-overlay span {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }
}

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

    .hero h1,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .hero p,
    .detail-one-line,
    .page-hero p {
        font-size: 16px;
    }
}
