:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-900: #78350f;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --white: #ffffff;
    --shadow-sm: 0 8px 20px rgba(120, 53, 15, 0.08);
    --shadow-md: 0 16px 35px rgba(120, 53, 15, 0.14);
    --shadow-lg: 0 28px 60px rgba(28, 25, 23, 0.24);
    --radius-lg: 18px;
    --radius-xl: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--stone-800);
    background: var(--stone-50);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(217, 119, 6, 0.22);
    background: rgba(255, 251, 235, 0.94);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--amber-900);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--amber-900);
    font-weight: 700;
    white-space: nowrap;
}

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

.nav-links a:hover {
    color: var(--amber-600);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    color: var(--amber-900);
    background: rgba(245, 158, 11, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

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

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--amber-900);
    background: rgba(245, 158, 11, 0.1);
    font-weight: 700;
}

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

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.34), transparent 32%), linear-gradient(145deg, #1c1917, #451a03 58%, #78350f);
    color: var(--white);
}

.hero-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    gap: 52px;
    padding: 76px 0 58px;
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(251, 191, 36, 0.36);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(120, 53, 15, 0.4);
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    max-width: 790px;
    margin: 20px 0 18px;
    font-size: clamp(38px, 7vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: #fbbf24;
}

.hero p {
    max-width: 690px;
    margin: 0 0 28px;
    color: #e7e5e4;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--amber-500);
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: #fbbf24;
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.36);
}

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

.hero-search,
.toolbar-search {
    display: flex;
    width: min(560px, 100%);
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.hero-search input,
.toolbar-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 0 16px;
    color: inherit;
    background: transparent;
}

.hero-search input::placeholder,
.toolbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button,
.toolbar-search button {
    min-width: 92px;
}

.hero-slider {
    position: relative;
    z-index: 2;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(26px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-poster-card {
    position: relative;
    height: 560px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 34px;
    background: var(--stone-900);
    box-shadow: var(--shadow-lg);
}

.hero-poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-poster-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 24%, rgba(0, 0, 0, 0.88));
}

.hero-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px;
}

.hero-tags,
.meta-row,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-tags span,
.tag-list span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--amber-900);
    background: rgba(251, 191, 36, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.hero-card-content h2 {
    margin: 14px 0 8px;
    font-size: 34px;
    line-height: 1.14;
}

.hero-card-content p {
    margin: 0 0 18px;
    color: var(--stone-200);
    font-size: 15px;
}

.hero-dots {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: -34px;
    z-index: 3;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    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: 58px 0;
}

.section.alt {
    width: 100%;
    max-width: none;
    background: linear-gradient(135deg, var(--amber-100), #ffedd5);
}

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

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

.section-title h2,
.page-title h1 {
    margin: 8px 0 0;
    color: var(--stone-800);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.section-title p,
.page-title p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--stone-600);
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: flex;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--stone-200);
}

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

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

.poster-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s ease;
}

.movie-card-link:hover .poster-mask {
    background: rgba(0, 0, 0, 0.24);
}

.play-badge {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(245, 158, 11, 0.94);
    transform: scale(0);
    transition: transform 0.22s ease;
}

.movie-card-link:hover .play-badge {
    transform: scale(1);
}

.corner-tag,
.year-tag {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.corner-tag {
    left: 10px;
    background: rgba(217, 119, 6, 0.95);
}

.year-tag {
    right: 10px;
    background: rgba(0, 0, 0, 0.72);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
}

.movie-card-body strong {
    overflow: hidden;
    color: var(--stone-800);
    font-size: 16px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.movie-card-link:hover strong {
    color: var(--amber-700);
}

.movie-card-body span {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    color: var(--stone-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-body em {
    margin-top: auto;
    color: var(--stone-500);
    font-size: 12px;
    font-style: normal;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 24px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.92), rgba(217, 119, 6, 0.82));
    box-shadow: var(--shadow-md);
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    transition: transform 0.5s ease;
}

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

.category-card-content {
    position: relative;
    z-index: 1;
}

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

.category-card p {
    margin: 0 0 18px;
    color: var(--stone-200);
}

.page-hero {
    background: linear-gradient(145deg, var(--amber-100), #fff7ed);
    border-bottom: 1px solid rgba(217, 119, 6, 0.16);
}

.page-title {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 42px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--amber-700);
    font-size: 14px;
    font-weight: 700;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--stone-200);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.toolbar-search {
    width: min(420px, 100%);
    border-color: var(--stone-200);
    color: var(--stone-800);
    background: var(--stone-50);
}

.toolbar-search input::placeholder {
    color: var(--stone-500);
}

.filter-row {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 2px;
}

.filter-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--amber-50);
    font-weight: 800;
    cursor: pointer;
}

.filter-button.is-active {
    color: var(--white);
    background: var(--amber-600);
}

.empty-state {
    display: none;
    padding: 40px;
    border: 1px dashed var(--stone-300);
    border-radius: var(--radius-xl);
    color: var(--stone-600);
    text-align: center;
    background: var(--white);
}

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

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

.wide-card a {
    display: grid;
    grid-template-columns: 56px 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 132px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wide-card a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.wide-card img {
    width: 92px;
    height: 104px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-number {
    color: var(--amber-600);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.wide-card-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.wide-card-info strong {
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wide-card-info small {
    color: var(--stone-500);
}

.wide-card-info em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--stone-600);
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 68px;
}

.detail-card {
    overflow: hidden;
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.72));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-button {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(245, 158, 11, 0.94);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-button:hover {
    transform: scale(1.06);
    background: #fbbf24;
}

.detail-body {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
    padding: 30px;
}

.detail-poster img {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.detail-content h1 {
    margin: 0 0 12px;
    color: var(--stone-900);
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-content .lead {
    color: var(--stone-700);
    font-size: 18px;
}

.meta-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.meta-panel span {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--stone-700);
    background: var(--stone-100);
    font-weight: 700;
}

.article-block {
    margin-top: 24px;
}

.article-block h2 {
    margin: 0 0 12px;
    color: var(--stone-900);
    font-size: 24px;
}

.article-block p {
    margin: 0;
    color: var(--stone-700);
    font-size: 16px;
}

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

.site-footer {
    margin-top: 0;
    color: var(--stone-300);
    background: var(--stone-800);
}

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

.footer-logo {
    color: var(--amber-100);
}

.footer-brand p {
    max-width: 560px;
    color: var(--stone-400);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--amber-100);
    font-size: 17px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--amber-400);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(214, 211, 209, 0.16);
    color: var(--stone-500);
    text-align: center;
}

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

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

    .hero-shell {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .hero-poster-card {
        height: 520px;
    }
}

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

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

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

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

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

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

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

@media (max-width: 700px) {
    .hero-shell {
        min-height: 0;
        padding: 46px 0 54px;
    }

    .hero-actions,
    .section-head,
    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search,
    .toolbar-search {
        width: 100%;
    }

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

    .hero-poster-card {
        height: 460px;
        border-radius: 26px;
    }

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

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

    .wide-card a {
        grid-template-columns: 44px 78px minmax(0, 1fr);
        gap: 10px;
    }

    .wide-card img {
        width: 78px;
        height: 92px;
    }

    .rank-number {
        font-size: 22px;
    }

    .detail-body {
        padding: 20px;
    }

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

@media (max-width: 430px) {
    .nav-shell,
    .mobile-panel,
    .hero-shell,
    .section,
    .section.alt > .section-inner,
    .page-title,
    .detail-layout,
    .footer-inner,
    .copyright {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
        border-radius: 12px;
    }

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

    .hero-card-content h2 {
        font-size: 26px;
    }

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