* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #f3f4f6;
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: #111827;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.32);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
    color: #4b5563;
}

.main-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
    color: #d97706;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fffbeb;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #92400e;
}

.mobile-panel {
    display: none;
    padding: 14px 20px 22px;
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
}

.mobile-panel a {
    display: block;
    padding: 10px 0;
    font-weight: 700;
    color: #4b5563;
}

.mobile-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    margin-top: 8px;
    padding-left: 10px;
}

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

.hero-stage {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 44px;
    align-items: center;
    max-width: 1220px;
    margin: 0 auto;
    padding: 74px 20px 112px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop,
.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.hero-backdrop::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.4), transparent 30%), linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.78) 100%);
}

.hero-copy,
.hero-poster,
.detail-copy,
.detail-poster {
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fbbf24;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 30px;
    color: #f3f4f6;
    font-size: 18px;
}

.hero-actions,
.category-panel-head,
.section-heading,
.detail-meta,
.tag-row,
.filter-bar,
.footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.side-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.36);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.primary-btn:hover,
.ghost-btn:hover,
.side-link:hover,
.movie-card:hover,
.compact-card:hover,
.category-tile:hover,
.category-panel:hover {
    transform: translateY(-3px);
}

.small-btn {
    min-height: 38px;
    padding: 9px 18px;
    font-size: 14px;
}

.hero-poster {
    display: block;
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.45);
}

.hero-poster img,
.poster-link img,
.detail-poster img,
.compact-card img {
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 76px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-controls button {
    width: 30px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-controls button.is-active {
    width: 56px;
    background: #fbbf24;
}

.hero-category-strip {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 20px;
    width: min(1180px, calc(100% - 40px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-category-strip a {
    flex: 0 0 auto;
    padding: 9px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.section {
    max-width: 1220px;
    margin: 0 auto;
    padding: 64px 20px;
}

.warm-section {
    max-width: none;
    padding-left: max(20px, calc((100% - 1220px) / 2));
    padding-right: max(20px, calc((100% - 1220px) / 2));
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-heading h2,
.category-panel h2,
.detail-main h2,
.detail-side h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
}

.section-heading a {
    color: #d97706;
    font-weight: 900;
}

.compact {
    margin-bottom: 18px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    box-shadow: 0 20px 34px rgba(17, 24, 39, 0.14);
}

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

.poster-link img {
    transition: transform 0.35s ease;
}

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

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

.movie-title {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-weight: 900;
    font-size: 18px;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.movie-meta span,
.detail-meta span,
.tag-row span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

.movie-card p,
.category-tile p,
.category-panel p,
.page-hero p,
.detail-main p,
.site-footer p {
    margin: 0;
    color: #6b7280;
}

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

.category-tile,
.category-panel {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile {
    padding: 22px;
}

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

.tile-links {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.tile-links a {
    color: #d97706;
    font-weight: 700;
    font-size: 14px;
}

.two-column {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 36px;
}

.compact-list {
    display: grid;
    gap: 14px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: auto 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compact-card img {
    width: 96px;
    height: 62px;
    border-radius: 12px;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    color: #111827;
}

.compact-card em {
    color: #6b7280;
    font-style: normal;
    font-size: 13px;
}

.rank-num {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-weight: 900;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #78350f);
}

.mini-hero {
    padding: 88px 20px;
    text-align: center;
}

.mini-hero h1 {
    max-width: 900px;
    margin: 0 auto 14px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.08;
}

.mini-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #f3f4f6;
    font-size: 18px;
}

.category-stack {
    display: grid;
    gap: 24px;
}

.category-panel {
    padding: 26px;
}

.category-panel-head {
    justify-content: space-between;
    margin-bottom: 20px;
}

.filter-bar {
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
}

.sticky-filter {
    position: sticky;
    top: 78px;
    z-index: 20;
}

.filter-bar label {
    display: grid;
    gap: 6px;
    min-width: min(100%, 310px);
    color: #374151;
    font-weight: 900;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 14px;
    color: #111827;
    font: inherit;
    background: #f9fafb;
}

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

.detail-wrap {
    position: relative;
    z-index: 2;
    max-width: 1220px;
    min-height: 560px;
    margin: 0 auto;
    padding: 78px 20px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 30px 68px rgba(0, 0, 0, 0.45);
}

.crumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: #fbbf24;
    font-weight: 900;
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
}

.lead-text {
    max-width: 760px;
    margin: 0 0 22px;
    color: #f3f4f6;
    font-size: 18px;
}

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

.detail-main,
.detail-side {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.detail-main {
    padding: 24px;
}

.detail-side {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    border-radius: 24px;
    background: #111827;
    aspect-ratio: 16 / 9;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    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.25), rgba(17, 24, 39, 0.76));
    cursor: pointer;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.42);
    font-size: 28px;
}

.detail-main h2,
.detail-side h2 {
    margin: 22px 0 12px;
    font-size: 26px;
}

.side-link {
    width: 100%;
    margin-top: 18px;
    color: #ffffff;
    background: #d97706;
}

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

.footer-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 34px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.site-footer strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 20px;
}

.footer-links a {
    color: #f9fafb;
    font-weight: 800;
}

.copyright {
    grid-column: 1 / -1;
    font-size: 13px;
}

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

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

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

    .detail-side {
        position: static;
    }
}

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

    .menu-toggle {
        display: inline-block;
    }

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 54px;
        text-align: left;
    }

    .hero-poster {
        width: min(260px, 70vw);
    }

    .movie-grid,
    .slim-grid,
    .category-grid,
    .two-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-poster {
        width: min(260px, 68vw);
    }

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

@media (max-width: 560px) {
    .site-logo {
        font-size: 18px;
    }

    .hero,
    .hero-stage {
        min-height: 760px;
    }

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

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

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

    .compact-card {
        grid-template-columns: auto 78px minmax(0, 1fr);
    }

    .compact-card img {
        width: 78px;
        height: 54px;
    }

    .filter-bar {
        display: grid;
    }
}
