:root {
    --stone-950: #1c1917;
    --stone-900: #292524;
    --stone-800: #44403c;
    --stone-700: #57534e;
    --stone-600: #78716c;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --orange-600: #ea580c;
    --rose-600: #e11d48;
    --white: #ffffff;
    --shadow: 0 20px 40px rgba(41, 37, 36, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--stone-100), var(--stone-50) 38%, #ffffff);
    color: var(--stone-800);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 12px 28px rgba(180, 83, 9, 0.22);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    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: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 650;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #ffedd5;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    padding: 9px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

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

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: var(--stone-900);
}

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.55), rgba(28, 25, 23, 0.12)), linear-gradient(0deg, rgba(28, 25, 23, 0.88), transparent 42%);
}

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

.hero-kicker,
.eyebrow {
    color: var(--amber-300);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    font-weight: 900;
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: #e7e5e4;
    font-size: clamp(17px, 2.5vw, 22px);
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 24px 0 30px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(245, 158, 11, 0.13);
    color: var(--amber-700);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.home-search button,
.cta-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search button,
.cta-actions a:first-child {
    color: #fff;
    background: var(--amber-600);
    box-shadow: 0 14px 24px rgba(217, 119, 6, 0.32);
}

.primary-btn:hover,
.home-search button:hover,
.cta-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(217, 119, 6, 0.35);
}

.primary-btn.dark {
    background: var(--stone-900);
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(10px);
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

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

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

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

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

.section-link {
    color: var(--amber-700);
    font-weight: 800;
    white-space: nowrap;
}

.search-entrance {
    padding-top: 30px;
    padding-bottom: 18px;
}

.home-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.home-search input,
.filter-bar input,
.filter-bar select {
    min-height: 48px;
    border: 1px solid #e7e5e4;
    border-radius: 14px;
    padding: 0 16px;
    color: var(--stone-800);
    background: #fff;
    outline: none;
}

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

.feature-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 34px;
    align-items: center;
    padding: clamp(22px, 4vw, 36px);
    border-radius: 28px;
    background: linear-gradient(110deg, #fffbeb, #fff7ed);
    box-shadow: var(--shadow);
}

.feature-poster,
.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--stone-200);
}

.feature-poster {
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    box-shadow: 0 24px 50px rgba(28, 25, 23, 0.16);
}

.feature-poster img,
.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.feature-poster:hover img,
.movie-card:hover .poster-wrap img,
.rank-item:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.feature-copy h2 {
    margin: 0 0 14px;
    color: var(--stone-900);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
}

.feature-copy p,
.article-card p {
    color: var(--stone-700);
    line-height: 1.9;
}

.wide {
    margin: 20px 0 26px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(41, 37, 36, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 40px rgba(41, 37, 36, 0.15);
}

.poster-wrap {
    aspect-ratio: 3 / 4;
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 42%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card:hover .poster-wrap::after,
.feature-poster:hover::after {
    opacity: 1;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--amber-600);
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.play-badge.large {
    width: 68px;
    height: 68px;
    font-size: 28px;
}

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

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--amber-700);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3,
.movie-list-content h3 {
    margin: 10px 0 8px;
    color: var(--stone-900);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card p,
.movie-list-content p {
    display: -webkit-box;
    margin: 0 0 12px;
    color: var(--stone-600);
    line-height: 1.7;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-section {
    background: var(--stone-900);
    color: #fff;
}

.dark-section .section-head h2,
.dark-section .section-head p {
    color: #fff;
}

.dark-section .section-link {
    color: var(--amber-300);
}

.cta-panel {
    border-radius: 28px;
    padding: clamp(32px, 6vw, 58px);
    text-align: center;
    color: #fff;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 26px 60px rgba(217, 119, 6, 0.25);
}

.cta-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 900;
}

.cta-panel p {
    margin: 0 0 26px;
    color: #fff7ed;
    font-size: 18px;
}

.cta-actions {
    justify-content: center;
}

.cta-actions a {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.page-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 330px;
    color: #fff;
    text-align: center;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.52), transparent 32%), linear-gradient(135deg, var(--stone-950), var(--stone-800));
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(217, 119, 6, 0.18), transparent 50%, rgba(225, 29, 72, 0.16));
}

.page-hero div {
    position: relative;
    z-index: 1;
    width: min(820px, calc(100% - 32px));
}

.page-hero span {
    color: var(--amber-300);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 950;
}

.page-hero p {
    margin: 0;
    color: #e7e5e4;
    line-height: 1.8;
    font-size: 18px;
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--stone-800);
    box-shadow: var(--shadow);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(28, 25, 23, 0.88), rgba(28, 25, 23, 0.08));
}

.category-card-copy {
    position: absolute;
    inset: auto 0 0;
    padding: 24px;
    color: #fff;
}

.category-card-copy strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 900;
}

.category-card-copy em {
    display: block;
    color: #e7e5e4;
    font-style: normal;
    line-height: 1.65;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 160px 160px 180px;
    gap: 12px;
    margin-bottom: 26px;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.filter-bar select:empty {
    display: none;
}

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

.movie-card-list {
    border-radius: 18px;
}

.movie-list-link {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 140px;
}

.list-poster {
    aspect-ratio: auto;
    height: 100%;
}

.movie-list-content {
    padding: 20px;
}

.empty-state {
    display: none;
    margin: 36px auto 0;
    padding: 28px;
    border-radius: 22px;
    color: var(--stone-600);
    text-align: center;
    background: #fff;
    box-shadow: var(--shadow);
}

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

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

.rank-item {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(41, 37, 36, 0.08);
}

.rank-item a {
    display: grid;
    grid-template-columns: 76px 168px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
}

.rank-num {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), var(--rose-600));
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 168px;
    height: 104px;
    border-radius: 14px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rank-copy strong {
    display: block;
    margin-bottom: 6px;
    color: var(--stone-900);
    font-size: 20px;
}

.rank-copy em {
    display: block;
    margin-bottom: 10px;
    color: var(--stone-600);
    font-style: normal;
    line-height: 1.65;
}

.detail-hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    color: #fff;
    background: var(--stone-950);
}

.detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px);
    transform: scale(1.04);
}

.detail-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.58), rgba(28, 25, 23, 0.18)), linear-gradient(0deg, rgba(28, 25, 23, 0.9), transparent 55%);
}

.detail-hero-copy {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: 540px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0;
}

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

.breadcrumb a {
    color: var(--amber-300);
}

.detail-hero h1 {
    max-width: 850px;
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 950;
}

.detail-hero p {
    max-width: 760px;
    margin: 0;
    color: #e7e5e4;
    font-size: 19px;
    line-height: 1.85;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.72fr);
    gap: 28px;
    align-items: start;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
}

.player-shell,
.article-card,
.info-card {
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.player-shell {
    overflow: hidden;
    padding: 14px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.72));
    cursor: pointer;
}

.player-start span {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--amber-600);
    font-size: 30px;
    box-shadow: 0 16px 34px rgba(217, 119, 6, 0.34);
}

.player-start strong {
    font-size: 20px;
}

.player-box.is-playing .player-start {
    display: none;
}

.article-card,
.info-card {
    padding: clamp(22px, 4vw, 32px);
}

.article-card h2,
.info-card h2 {
    margin: 0 0 16px;
    color: var(--stone-900);
    font-size: 24px;
    font-weight: 900;
}

.article-card p {
    margin: 0;
    font-size: 16px;
}

.info-card {
    position: sticky;
    top: 92px;
}

.info-card dl {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px 14px;
    margin: 0;
}

.info-card dt {
    color: var(--stone-600);
    font-weight: 800;
}

.info-card dd {
    margin: 0;
    color: var(--stone-900);
    line-height: 1.65;
}

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

.site-footer {
    margin-top: 40px;
    color: #d6d3d1;
    background: var(--stone-900);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 36px;
    padding: 48px 0;
}

.footer-col h3,
.footer-brand {
    margin: 0 0 14px;
    color: #fff;
}

.footer-col p {
    margin: 0;
    line-height: 1.8;
}

.footer-col a {
    display: block;
    margin: 8px 0;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--amber-300);
}

.footer-bottom {
    border-top: 1px solid rgba(214, 211, 209, 0.15);
    padding: 22px 16px;
    text-align: center;
    color: #a8a29e;
    font-size: 14px;
}

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

    .menu-toggle {
        display: block;
    }

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

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

    .info-card {
        position: static;
    }

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

@media (max-width: 720px) {
    .header-inner {
        min-height: 62px;
    }

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

    .hero,
    .hero-content {
        min-height: 520px;
    }

    .hero-content {
        padding-left: 4px;
        padding-right: 4px;
    }

    .hero-nav {
        display: none;
    }

    .section {
        padding: 38px 0;
    }

    .section-head {
        display: block;
    }

    .section-link {
        display: inline-block;
        margin-top: 12px;
    }

    .home-search,
    .filter-bar,
    .movie-list-link,
    .rank-item a,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .rank-item img {
        width: 100%;
        height: 190px;
    }

    .rank-num {
        position: absolute;
        margin: 10px;
        z-index: 2;
    }

    .rank-item {
        position: relative;
    }

    .list-poster {
        height: 230px;
    }

    .detail-hero,
    .detail-hero-copy {
        min-height: 500px;
    }

    .player-start span {
        width: 64px;
        height: 64px;
    }
}
