:root {
    --color-amber-950: #451a03;
    --color-amber-900: #78350f;
    --color-amber-800: #92400e;
    --color-amber-700: #b45309;
    --color-amber-600: #d97706;
    --color-yellow-500: #eab308;
    --color-yellow-300: #fde047;
    --color-slate-950: #020617;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-100: #f1f5f9;
    --color-amber-50: #fffbeb;
    --color-white: #ffffff;
    --shadow-soft: 0 20px 45px rgba(120, 53, 15, 0.18);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.12);
    --radius-large: 26px;
    --radius-card: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: linear-gradient(135deg, #f8fafc 0%, #fffbeb 48%, #f1f5f9 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(69, 26, 3, 0.98), rgba(146, 64, 14, 0.96), rgba(69, 26, 3, 0.98));
    color: #fff7ed;
    box-shadow: 0 10px 30px rgba(69, 26, 3, 0.28);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 72px;
    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-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-amber-950);
    background: radial-gradient(circle at 35% 35%, #fff7ad, #facc15 55%, #d97706 100%);
    box-shadow: 0 0 26px rgba(253, 224, 71, 0.55);
}

.brand-text {
    font-size: 1.45rem;
    color: #fef3c7;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    position: relative;
    font-weight: 700;
    color: #ffedd5;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: #fde047;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

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

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #fef3c7;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(254, 243, 199, 0.16);
}

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

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: #ffedd5;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-link.is-active {
    color: #451a03;
    background: #fde047;
    font-weight: 800;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: var(--color-amber-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(69, 26, 3, 0.86) 48%, rgba(15, 23, 42, 0.35) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 22%, rgba(253, 224, 71, 0.26), transparent 28%),
        radial-gradient(circle at 75% 68%, rgba(245, 158, 11, 0.22), transparent 26%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: center;
    padding: 72px 0 96px;
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde047;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.6rem, 6vw, 5.7rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    color: #fef3c7;
    text-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
    margin: 0;
    max-width: 720px;
    color: #ffedd5;
    font-size: 1.08rem;
    line-height: 1.9;
}

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

.hero-tags {
    margin: 26px 0 32px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-tags span {
    color: #451a03;
    background: rgba(253, 224, 71, 0.94);
}

.tag-row span,
.detail-tags span {
    color: #92400e;
    background: #fef3c7;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.primary-button,
.ghost-button,
.simple-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #451a03;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.36);
}

.ghost-button {
    color: #fef3c7;
    border: 1px solid rgba(254, 243, 199, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.simple-button {
    color: #92400e;
    background: #fff7ed;
    border: 1px solid #fcd34d;
}

.primary-button:hover,
.ghost-button:hover,
.simple-button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
    transform: rotate(2deg);
    isolation: isolate;
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82) 100%);
}

.hero-poster img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: #451a03;
    background: #fde047;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-control,
.hero-dot {
    border: 0;
    color: #451a03;
    background: rgba(254, 243, 199, 0.92);
}

.hero-control {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 1.4rem;
    font-weight: 900;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.55;
}

.hero-dot.is-active {
    width: 30px;
    opacity: 1;
    background: #fde047;
}

.section {
    padding: 72px 0;
}

.section.alt {
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.8), rgba(255, 251, 235, 0.92));
}

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

.section-title {
    margin: 8px 0 0;
    color: #111827;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-lead {
    margin: 10px 0 0;
    color: #64748b;
    line-height: 1.75;
}

.feature-panel,
.content-card,
.search-panel,
.detail-card,
.player-card {
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.feature-panel {
    margin-top: -58px;
    position: relative;
    z-index: 5;
    padding: 30px;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-card);
    color: inherit;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 55px rgba(146, 64, 14, 0.22);
}

.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #78350f, #f59e0b);
}

.movie-card-featured .movie-poster {
    aspect-ratio: 16 / 10;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.72));
}

.poster-year {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #451a03;
    background: #fde047;
    font-size: 0.78rem;
    font-weight: 900;
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.movie-meta-line {
    color: #b45309;
    font-size: 0.82rem;
    font-weight: 900;
}

.movie-card h3 {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
    line-height: 1.35;
}

.movie-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.65;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 22px;
    border-radius: 22px;
    color: #fff7ed;
    background: linear-gradient(135deg, #78350f, #b45309 55%, #eab308);
    box-shadow: var(--shadow-card);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(254, 243, 199, 0.23);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffedd5;
    line-height: 1.7;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 52px 96px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease;
}

.ranking-item:hover {
    transform: translateX(6px);
}

.ranking-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #451a03;
    background: #fde047;
    font-weight: 900;
}

.ranking-item img {
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-text {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.ranking-text strong {
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-text em {
    color: #64748b;
    font-size: 0.9rem;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 90px;
    color: #fff7ed;
    background:
        radial-gradient(circle at 18% 20%, rgba(253, 224, 71, 0.24), transparent 28%),
        linear-gradient(135deg, #451a03, #92400e 52%, #1e293b);
}

.page-hero h1 {
    margin: 0;
    max-width: 840px;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #ffedd5;
    font-size: 1.08rem;
    line-height: 1.9;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #92400e;
    font-weight: 800;
}

.breadcrumb span {
    color: #94a3b8;
}

.category-layout,
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.content-card,
.detail-card,
.search-panel {
    padding: 28px;
}

.sidebar-card {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.sidebar-card h2,
.sidebar-card h3 {
    margin: 0 0 18px;
    color: #111827;
}

.search-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 32px;
}

.search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
}

.search-controls input,
.search-controls select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #fcd34d;
    border-radius: 16px;
    padding: 0 16px;
    color: #1f2937;
    background: #fffbeb;
    outline: none;
}

.search-controls input:focus,
.search-controls select:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.filter-pills button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-weight: 800;
}

.filter-pills button.is-active {
    color: #451a03;
    background: #fde047;
}

.detail-hero {
    padding: 34px 0 40px;
}

.player-card {
    overflow: hidden;
    background: #020617;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    color: #451a03;
    background: #000000;
    cursor: pointer;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.76));
}

.play-icon {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #451a03;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    box-shadow: 0 0 0 18px rgba(253, 224, 71, 0.16), 0 22px 52px rgba(0, 0, 0, 0.42);
    font-size: 2.1rem;
    font-weight: 900;
}

.detail-card {
    margin-top: 24px;
}

.detail-card h1 {
    margin: 0 0 16px;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-card .one-line {
    margin: 0 0 20px;
    color: #475569;
    font-size: 1.12rem;
    line-height: 1.85;
    font-weight: 700;
}

.detail-section {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid #fde68a;
}

.detail-section h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 1.45rem;
}

.detail-section p {
    margin: 0;
    color: #374151;
    line-height: 2;
}

.review-box {
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

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

.related-mini {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-mini img {
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
}

.related-mini strong {
    display: block;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-mini span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-footer {
    margin-top: 70px;
    color: #ffedd5;
    background: linear-gradient(180deg, #1e293b, #451a03);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 38px;
    padding: 48px 0;
}

.footer-grid p {
    margin: 16px 0 0;
    color: #fed7aa;
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fde047;
    font-size: 1.1rem;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 9px 0;
    color: #ffedd5;
}

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(254, 243, 199, 0.16);
    color: #fed7aa;
    text-align: center;
}

.empty-state {
    padding: 42px;
    border-radius: 22px;
    color: #92400e;
    background: #fef3c7;
    text-align: center;
    font-weight: 800;
}


.home-search-input {
    min-height: 46px;
    width: min(320px, 100%);
    border: 1px solid #fcd34d;
    border-radius: 999px;
    padding: 0 18px;
    color: #1f2937;
    background: #fffbeb;
    outline: none;
}

.home-search-input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.category-samples {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.category-samples a {
    color: #92400e;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-card h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 1.45rem;
}

.content-card p {
    margin: 0 0 18px;
    color: #64748b;
    line-height: 1.8;
}

@media (max-width: 1060px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-poster {
        max-width: 420px;
        transform: none;
    }

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

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

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

    .sidebar-card {
        position: static;
    }
}

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

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

    .brand-text {
        font-size: 1.15rem;
    }

    .hero-slider,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 58px 0 92px;
    }

    .hero-copy h1 {
        font-size: 2.7rem;
    }

    .hero-poster img {
        height: 360px;
    }

    .section-header {
        display: grid;
    }

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

    .feature-panel,
    .content-card,
    .search-panel,
    .detail-card {
        padding: 18px;
        border-radius: 20px;
    }

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

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

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

    .ranking-item img {
        width: 72px;
        height: 54px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

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

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

    .primary-button,
    .ghost-button,
    .simple-button {
        width: 100%;
    }
}
