:root {
    --stone-950: #1c1917;
    --stone-900: #292524;
    --stone-800: #44403c;
    --stone-700: #57534e;
    --stone-600: #78716c;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(41, 37, 36, 0.16);
    --soft-shadow: 0 12px 32px rgba(41, 37, 36, 0.10);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--stone-900);
    font-weight: 900;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

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

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

.nav-link {
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--stone-700);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber-700);
    background: var(--amber-100);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--stone-100);
    border-radius: 12px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--stone-800);
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-700), var(--amber-500));
}

.hero-slider,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.36), transparent 35%),
        linear-gradient(90deg, rgba(28, 25, 23, 0.90), rgba(28, 25, 23, 0.58) 45%, rgba(28, 25, 23, 0.24));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    padding: 80px 0 120px;
    color: var(--white);
}

.hero-pill,
.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--amber-100);
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
}

.hero-content h1 {
    max-width: 920px;
    margin: 22px 0 8px;
    font-size: clamp(38px, 7vw, 82px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-content h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 48px);
}

.hero-content p {
    max-width: 700px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 700;
}

.card-tags span {
    color: var(--amber-700);
    background: var(--amber-100);
}

.detail-tags span {
    color: var(--amber-700);
    background: var(--amber-100);
}

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

.btn,
.search-box button,
.inline-filter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    padding: 0 20px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.search-box button:hover,
.inline-filter button:hover {
    transform: translateY(-2px);
}

.btn.primary,
.search-box button,
.inline-filter button {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
}

.btn.ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--stone-900);
    background: rgba(255, 255, 255, 0.88);
    font-size: 42px;
    line-height: 1;
    box-shadow: var(--soft-shadow);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--white);
}

.quick-search,
.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-search {
    position: relative;
    z-index: 10;
    margin-top: -58px;
}

.quick-search-inner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 22px;
    align-items: center;
    padding: 24px;
    border: 1px solid rgba(231, 229, 228, 0.9);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.quick-search strong {
    display: block;
    color: var(--stone-900);
    font-size: 22px;
}

.quick-search span {
    color: var(--stone-600);
}

.search-box,
.inline-filter {
    display: flex;
    gap: 10px;
}

.search-box input,
.inline-filter input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    outline: none;
    padding: 0 16px;
    background: var(--white);
}

.search-box input:focus,
.inline-filter input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.content-section {
    padding: 72px 0 0;
}

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

.section-head h2 {
    margin: 0;
    color: var(--stone-900);
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.2;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--stone-600);
}

.section-more,
.text-link {
    color: var(--amber-700);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(231, 229, 228, 0.92);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--stone-200));
}

.poster img,
.result-cover img,
.ranking-cover img,
.detail-poster img,
.category-card img,
.category-thumb-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: var(--amber-600);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.card-body {
    padding: 15px;
}

.meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--stone-600);
    font-size: 13px;
}

.meta-line span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
}

.movie-card h3 {
    margin: 8px 0 8px;
    color: var(--stone-900);
    font-size: 17px;
    line-height: 1.35;
}

.movie-card p,
.result-info p,
.ranking-main p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    color: var(--stone-600);
    font-size: 14px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius-md);
    padding: 18px;
    color: var(--white);
    background: var(--stone-900);
    box-shadow: var(--soft-shadow);
}

.category-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.10), rgba(28, 25, 23, 0.88));
}

.category-card img {
    position: absolute;
    inset: 0;
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card span {
    display: block;
    margin-top: 92px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.highlight-section {
    width: 100%;
    max-width: none;
    padding: 72px max(16px, calc((100% - 1180px) / 2)) 80px;
    margin-top: 72px;
    background: linear-gradient(135deg, #fff7ed, #ffffff 45%, #fef3c7);
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    gap: 28px;
    align-items: end;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 86px 0 36px;
}

.page-hero h1 {
    margin: 18px 0 10px;
    color: var(--stone-900);
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 700px;
    margin: 0;
    color: var(--stone-600);
    font-size: 18px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    border: 1px solid rgba(231, 229, 228, 0.94);
    border-radius: var(--radius-md);
    padding: 18px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.category-thumb-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-thumb-stack img {
    aspect-ratio: 3 / 4;
    border-radius: 12px;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    color: var(--stone-900);
}

.category-overview-card p {
    margin: 0 0 12px;
    color: var(--stone-600);
}

.ranking-list,
.search-results {
    padding-bottom: 80px;
}

.ranking-row,
.result-row {
    display: grid;
    grid-template-columns: 56px 92px minmax(0, 1fr) 110px;
    gap: 18px;
    align-items: center;
    margin-bottom: 14px;
    padding: 14px;
}

.result-row {
    grid-template-columns: 92px minmax(0, 1fr);
}

.ranking-number,
.row-rank {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: var(--amber-600);
    font-weight: 900;
}

.ranking-cover,
.result-cover {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: var(--stone-200);
}

.ranking-main h2,
.result-info h3 {
    margin: 0 0 8px;
    color: var(--stone-900);
    font-size: 20px;
}

.ranking-score {
    text-align: right;
}

.ranking-score strong {
    display: block;
    color: var(--amber-700);
    font-size: 28px;
}

.ranking-score span {
    color: var(--stone-600);
    font-size: 13px;
}

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

.empty-state {
    display: none;
    margin: 32px 0;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    color: var(--stone-600);
    background: var(--white);
}

.empty-state.is-visible {
    display: block;
}

.detail-hero {
    padding: 32px max(16px, calc((100% - 1180px) / 2)) 44px;
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.24), transparent 34%),
        linear-gradient(135deg, #fff7ed, #ffffff 52%, #fef3c7);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    color: var(--stone-600);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber-700);
    font-weight: 800;
}

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

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    background: var(--stone-200);
    box-shadow: var(--shadow);
}

.detail-info h1 {
    margin: 18px 0 12px;
    color: var(--stone-900);
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.08;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: var(--stone-700);
    font-size: 20px;
}

.detail-meta {
    margin-bottom: 16px;
    font-weight: 800;
}

.detail-tags {
    margin-bottom: 28px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--stone-950);
    box-shadow: var(--shadow);
}

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

.play-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 94px;
    height: 94px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(217, 119, 6, 0.92);
    font-weight: 900;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.30);
    transform: translate(-50%, -50%);
}

.play-overlay.is-hidden {
    display: none;
}

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

.copy-card {
    border: 1px solid rgba(231, 229, 228, 0.94);
    border-radius: var(--radius-md);
    padding: 26px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.copy-card h2 {
    margin: 0 0 14px;
    color: var(--stone-900);
    font-size: 26px;
}

.copy-card p {
    margin: 0;
    color: var(--stone-700);
    font-size: 17px;
}

.site-footer {
    margin-top: 82px;
    padding: 42px 0;
    color: rgba(255, 255, 255, 0.78);
    background: var(--stone-950);
}

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

.footer-brand {
    color: var(--white);
    font-size: 22px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
    max-width: 460px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

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

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

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--stone-200);
        border-radius: 18px;
        padding: 12px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        text-align: center;
    }

    .hero {
        min-height: 620px;
    }

    .hero-control {
        display: none;
    }

    .quick-search-inner,
    .page-hero,
    .detail-layout,
    .detail-copy,
    .category-overview-grid,
    .category-overview-card,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .quick-search-inner,
    .footer-inner {
        display: grid;
    }

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

    .ranking-row {
        grid-template-columns: 42px 78px minmax(0, 1fr);
    }

    .ranking-score {
        grid-column: 2 / -1;
        text-align: left;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .hero-content {
        padding: 72px 0 110px;
    }

    .hero-tags,
    .detail-tags,
    .card-tags {
        display: none;
    }

    .section-head,
    .search-box,
    .inline-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid {
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .result-row {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .detail-poster {
        max-width: 260px;
    }
}
