* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 24%, #f9fafb 100%);
    color: #111827;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-weight: 800;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #b45309, #f59e0b);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(180, 83, 9, 0.28);
}

.brand-text {
    font-size: 20px;
    color: #111827;
    transition: color 0.2s ease;
}

.brand:hover .brand-text {
    color: #b45309;
}

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

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #b45309;
}

.header-search {
    display: flex;
    align-items: center;
    width: 270px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.search-hero input,
.filter-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.header-search input {
    padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.search-hero button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: #b45309;
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.header-search button:hover,
.mobile-search button:hover,
.search-hero button:hover {
    background: #92400e;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #92400e;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px 22px;
    background: #ffffff;
}

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

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

.mobile-search {
    margin-top: 16px;
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.mobile-search input {
    padding: 12px 14px;
}

.mobile-search button {
    padding: 0 18px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    background-position: center;
    background-size: cover;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.1s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 90px 24px 110px;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.hero-kicker,
.category-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(180, 83, 9, 0.94);
    color: #ffffff;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    font-size: clamp(38px, 6vw, 68px);
}

.hero-copy p {
    max-width: 690px;
    margin: 0;
    color: #e5e7eb;
    font-size: clamp(18px, 2.2vw, 22px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 32px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

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

.btn,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn {
    background: #b45309;
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(180, 83, 9, 0.28);
}

.btn:hover {
    background: #92400e;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.btn-light {
    background: #ffffff;
    color: #b45309;
}

.btn-light:hover {
    transform: translateY(-2px);
}

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

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section,
.page-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.section-soft {
    background: linear-gradient(90deg, #fff7ed 0%, #fffbeb 100%);
}

.section-soft .section {
    padding-top: 68px;
    padding-bottom: 68px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #111827;
}

.section-head p,
.page-title p,
.category-card p,
.detail-title p {
    margin: 10px 0 0;
    color: #6b7280;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b45309;
    font-weight: 800;
}

.section-more span {
    transition: transform 0.2s ease;
}

.section-more:hover span {
    transform: translateX(4px);
}

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

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

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

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.14);
}

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

.movie-card-compact .movie-poster {
    aspect-ratio: 2 / 3;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, 0.76) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(180, 83, 9, 0.92);
    color: #ffffff;
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-year {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.28;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-body h3 a:hover {
    color: #b45309;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.ranking-meta,
.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta span,
.ranking-meta span,
.detail-meta span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: #fff7ed;
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
}

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

.category-card {
    min-height: 250px;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.13);
}

.category-card h2 {
    margin: 18px 0 8px;
    font-size: 26px;
}

.category-samples {
    display: grid;
    gap: 7px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.category-samples a {
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-samples a:hover {
    color: #b45309;
}

.page-hero {
    background: linear-gradient(135deg, #7c2d12 0%, #b45309 45%, #f59e0b 100%);
    color: #ffffff;
}

.page-title {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.page-title h1,
.page-title p {
    color: #ffffff;
}

.page-title p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.filter-box {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(17, 24, 39, 0.08);
}

.filter-box input {
    padding: 13px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 86px 54px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(17, 24, 39, 0.08);
}

.ranking-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-number {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #b45309, #f59e0b);
    font-weight: 900;
}

.ranking-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-info h3 a:hover {
    color: #b45309;
}

.ranking-info p {
    margin: 0 0 10px;
    color: #6b7280;
}

.search-hero {
    background: linear-gradient(135deg, #6d28d9, #db2777);
    color: #ffffff;
}

.search-hero .page-title {
    padding-bottom: 82px;
}

.search-hero form {
    display: flex;
    max-width: 760px;
    margin-top: 28px;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.search-hero input {
    padding: 18px 20px;
    color: #111827;
    font-size: 18px;
}

.search-hero button {
    min-width: 130px;
    font-weight: 800;
}

.search-empty {
    padding: 60px 24px;
    text-align: center;
    color: #6b7280;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 8px 26px rgba(17, 24, 39, 0.08);
}

.detail-shell {
    background: #f9fafb;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 68px 24px;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

.detail-title h1 {
    max-width: 920px;
    color: #ffffff;
}

.detail-title p {
    max-width: 860px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.detail-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 78px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #030712;
    box-shadow: 0 24px 68px rgba(17, 24, 39, 0.24);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #030712;
}

.player-start {
    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(3, 7, 18, 0.16), rgba(3, 7, 18, 0.74));
    cursor: pointer;
}

.player-start.is-hidden {
    display: none;
}

.player-start span:first-child {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #b45309;
    box-shadow: 0 18px 42px rgba(180, 83, 9, 0.42);
    font-size: 30px;
    text-indent: 4px;
}

.player-start span:last-child {
    font-weight: 800;
    font-size: 18px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    margin-top: 36px;
}

.detail-panel {
    padding: 28px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(17, 24, 39, 0.08);
}

.detail-panel h2,
.detail-panel h3 {
    margin: 0 0 14px;
    color: #111827;
}

.detail-panel p {
    margin: 0 0 18px;
    color: #4b5563;
}

.detail-panel dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-panel div.info-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.detail-panel dt {
    color: #6b7280;
}

.detail-panel dd {
    margin: 0;
    color: #111827;
    text-align: right;
    font-weight: 700;
}

.related-section {
    margin-top: 54px;
}

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

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 14px;
    }

    .header-search {
        display: none;
    }

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

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

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

    .mobile-toggle {
        display: block;
    }

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

    .hero {
        min-height: 680px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: clamp(38px, 12vw, 58px);
    }

    .section-head {
        display: block;
    }

    .section-more {
        margin-top: 12px;
    }

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

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

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

    .ranking-item {
        grid-template-columns: 72px 44px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-info p {
        display: none;
    }
}

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

    .brand-text {
        max-width: 230px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

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

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

    .hero-dots {
        bottom: 22px;
    }

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

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

    .movie-card-body p {
        display: none;
    }

    .detail-panel {
        padding: 20px;
    }

    .ranking-item {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .ranking-number {
        display: none;
    }
}
