@charset "UTF-8";

:root {
    --color-bg: #fff7e6;
    --color-bg-soft: #fffaf0;
    --color-card: #ffffff;
    --color-ink: #111827;
    --color-muted: #6b7280;
    --color-line: rgba(17, 24, 39, 0.12);
    --color-brand: #facc15;
    --color-brand-deep: #f59e0b;
    --color-brand-hot: #fb923c;
    --color-dark: #111827;
    --shadow-soft: 0 16px 45px rgba(17, 24, 39, 0.12);
    --shadow-strong: 0 25px 70px rgba(17, 24, 39, 0.22);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--color-ink);
    background: linear-gradient(180deg, #fff7d6 0%, #ffffff 28%, #fffaf0 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #facc15 0%, #fb923c 50%, #f59e0b 100%);
    box-shadow: 0 14px 35px rgba(180, 83, 9, 0.28);
}

.nav-wrap {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand {
    color: #ffffff;
    font-size: 26px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #111827;
    background: #ffffff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45), 0 12px 28px rgba(0, 0, 0, 0.18);
    font-size: 16px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #fff7c2;
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-button span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px 16px;
    color: #ffffff;
    font-weight: 700;
}

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

.page-space {
    padding: 36px 0 72px;
}

.hero-shell {
    margin-bottom: 32px;
}

.hero-slider {
    position: relative;
    min-height: 560px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #111827;
    box-shadow: var(--shadow-strong);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 0.7s ease;
    display: flex;
    align-items: center;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.58) 44%, rgba(0, 0, 0, 0.15) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.02) 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 70px clamp(24px, 6vw, 72px);
    color: #ffffff;
}

.hero-eyebrow,
.detail-eyebrow,
.page-hero span,
.section-heading span,
.search-hero-card span,
.feature-panel span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 14px;
    border-radius: 999px;
    color: #111827;
    background: var(--color-brand);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.hero-content h1 {
    margin: 18px 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.02;
    font-weight: 950;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.hero-summary {
    margin: 0 0 24px;
    max-width: 620px;
    font-size: clamp(18px, 2vw, 24px);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.hero-tags,
.detail-tag-row,
.movie-tags,
.genre-pills,
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tag-row span,
.genre-pills span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.small-button,
.quick-search button,
.search-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    min-height: 46px;
    padding: 0 24px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.quick-search button,
.search-panel button,
.small-button {
    color: #111827;
    background: var(--color-brand);
    box-shadow: 0 14px 30px rgba(250, 204, 21, 0.34);
}

.primary-button:hover,
.quick-search button:hover,
.search-panel button:hover,
.small-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: #fde047;
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.08);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

.hero-dot.is-active {
    width: 32px;
    background: var(--color-brand);
}

.search-hero-card,
.split-section,
.page-hero,
.content-section,
.rank-panel,
.feature-panel,
.detail-copy,
.player-section {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.76);
}

.search-hero-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 26px;
    align-items: center;
    padding: clamp(24px, 5vw, 44px);
    margin-bottom: 32px;
}

.search-hero-card h2,
.feature-panel h2,
.page-hero h1,
.section-heading h2 {
    margin: 12px 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.search-hero-card p,
.page-hero p,
.feature-panel p {
    color: var(--color-muted);
    line-height: 1.8;
}

.quick-search,
.search-panel,
.page-filter {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quick-search input,
.search-panel input,
.search-panel select,
.page-filter input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
    background: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.search-panel input:focus,
.search-panel select:focus,
.page-filter input:focus {
    border-color: var(--color-brand-deep);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.22);
}

.content-section {
    padding: clamp(22px, 4vw, 34px);
    margin-bottom: 32px;
}

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

.section-heading h2 {
    margin-bottom: 0;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-card);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 50px rgba(17, 24, 39, 0.18);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #111827, #f59e0b);
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-cover img {
    transform: scale(1.08);
    filter: brightness(0.78);
}

.movie-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.movie-badge,
.movie-play {
    position: absolute;
    z-index: 2;
}

.movie-badge {
    left: 10px;
    top: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.95);
    color: #111827;
    font-size: 12px;
    font-weight: 900;
}

.movie-play {
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #111827;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-meta-line,
.movie-genre {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--color-muted);
    font-size: 13px;
}

.movie-card h2 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.28;
}

.movie-card h2 a {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card p {
    display: -webkit-box;
    min-height: 62px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--color-muted);
    line-height: 1.55;
    font-size: 14px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.movie-tags span,
.filter-pills button {
    padding: 5px 9px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 700;
}

.movie-genre {
    margin-top: 12px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    padding-top: 10px;
}

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

.category-card,
.category-overview-card {
    position: relative;
    min-height: 210px;
    display: flex;
    align-items: end;
    overflow: hidden;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-soft);
}

.category-card::before,
.category-overview-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.16));
}

.category-card span,
.category-card strong,
.category-overview-card div {
    position: relative;
    z-index: 1;
}

.category-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 950;
}

.category-card strong {
    display: block;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.55;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.category-samples span {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(12px);
    font-size: 12px;
}

.split-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    padding: clamp(22px, 4vw, 34px);
    margin-bottom: 32px;
}

.rank-panel,
.feature-panel {
    padding: clamp(20px, 3vw, 30px);
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: auto 58px 1fr;
    align-items: center;
    gap: 12px;
    padding: 9px;
    border-radius: 16px;
    background: rgba(255, 250, 240, 0.82);
    border: 1px solid rgba(17, 24, 39, 0.07);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    background: #fff7d6;
}

.rank-row img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.rank-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #111827;
    background: var(--color-brand);
    font-weight: 950;
}

.rank-row strong,
.rank-row em {
    display: block;
}

.rank-row strong {
    margin-bottom: 4px;
}

.rank-row em {
    color: var(--color-muted);
    font-style: normal;
    font-size: 13px;
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: #b45309;
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 6vw, 58px);
    margin-bottom: 32px;
    background:
        radial-gradient(circle at 20% 15%, rgba(250, 204, 21, 0.34), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fff7d6 100%);
}

.page-hero h1 {
    max-width: 780px;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    font-size: 18px;
}

.page-filter,
.search-panel {
    margin-top: 24px;
}

.filter-pills {
    margin-top: 16px;
}

.filter-pills button {
    border: 0;
    cursor: pointer;
}

.filter-pills button.is-active {
    color: #111827;
    background: var(--color-brand);
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 180px 160px auto;
}

.search-status {
    margin-top: 14px;
    color: #92400e;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: end;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: end;
    padding: 92px 0 58px;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    background: #111827;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--color-brand);
}

.detail-info h1 {
    margin: 18px 0;
    max-width: 820px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.02;
}

.detail-one-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.7;
}

.detail-layout {
    display: grid;
    gap: 32px;
}

.player-section {
    padding: clamp(22px, 4vw, 34px);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: var(--shadow-strong);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-trigger {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.26));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-trigger span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #111827;
    background: var(--color-brand);
    font-size: 34px;
    box-shadow: 0 22px 48px rgba(250, 204, 21, 0.36);
}

.player-trigger strong {
    font-size: clamp(24px, 4vw, 42px);
}

.player-trigger.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-copy {
    padding: clamp(24px, 4vw, 38px);
}

.detail-copy h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.detail-copy p {
    margin: 0 0 26px;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

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

.detail-facts div {
    padding: 16px;
    border-radius: 18px;
    background: #fff7d6;
}

.detail-facts strong,
.detail-facts span {
    display: block;
}

.detail-facts strong {
    margin-bottom: 8px;
    color: #92400e;
}

.genre-pills span {
    color: #92400e;
    background: #fef3c7;
}

.searchable.is-hidden {
    display: none;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 12px;
        font-size: 14px;
    }

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

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

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero-slider {
        min-height: 500px;
    }

    .hero-control {
        display: none;
    }

    .search-hero-card,
    .split-section,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

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

    .category-grid,
    .category-overview-grid,
    .two-column,
    .detail-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .brand {
        font-size: 22px;
    }

    .hero-slider {
        min-height: 520px;
        border-radius: 22px;
    }

    .hero-content {
        padding: 48px 22px;
    }

    .hero-content h1,
    .detail-info h1 {
        font-size: 40px;
    }

    .quick-search,
    .search-panel,
    .page-filter,
    .hero-actions,
    .detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .large-grid,
    .category-grid,
    .category-overview-grid,
    .detail-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .movie-card h2 {
        font-size: 16px;
    }

    .movie-card p {
        min-height: 58px;
        font-size: 13px;
    }

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

    .detail-hero {
        min-height: auto;
    }

    .detail-hero-inner {
        padding-top: 74px;
    }
}
