:root {
    --gold-50: #fffbeb;
    --gold-100: #fef3c7;
    --gold-200: #fde68a;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-700: #b45309;
    --gold-800: #92400e;
    --gold-900: #78350f;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(180, 83, 9, 0.18);
    --paper: #fffaf0;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(245, 158, 11, 0.18);
    --shadow-strong: 0 18px 46px rgba(180, 83, 9, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 36%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500), var(--gold-600));
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.39);
}

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 1;
}

.nav-link {
    color: #fff7ed;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-1px);
}

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

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

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

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

.hero {
    min-height: 680px;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 45%, rgba(251, 191, 36, 0.28), transparent 38%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 44%, rgba(0, 0, 0, 0.2) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 680px;
    margin: 0 auto;
    padding: 112px 24px 96px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    gap: 56px;
    align-items: center;
}

.hero-copy {
    color: #ffffff;
    max-width: 780px;
    animation: slideUp 0.7s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--gold-100);
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
    margin: 22px 0 16px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--gold-100);
    color: var(--gold-700);
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

.primary-button,
.ghost-button,
.section-more,
.search-button,
.player-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-button,
.player-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500), var(--gold-600));
    box-shadow: var(--shadow);
}

.ghost-button,
.section-more {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.section-more {
    color: var(--gold-700);
    background: var(--gold-100);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.search-button:hover,
.player-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-700));
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    height: 480px;
    object-fit: cover;
}

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

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

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

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0;
    background: rgba(255, 255, 255, 0.42) !important;
}

.hero-dot.is-active {
    width: 28px !important;
    border-radius: 999px;
    background: #ffffff !important;
}

.main-wrap,
.content-section,
.category-hero,
.detail-wrap,
.search-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

.content-section + .content-section {
    padding-top: 24px;
}

.section-head,
.category-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-head h2,
.category-title-row h1,
.search-wrap h1,
.detail-info h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.18;
    font-weight: 900;
}

.section-head p,
.category-hero p,
.search-wrap p,
.detail-lead {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gold-100), var(--gold-400));
}

.poster-link img {
    aspect-ratio: 2 / 3;
    height: 280px;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 16px;
}

.card-meta {
    margin-bottom: 8px;
    color: var(--gold-700);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h2,
.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

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

.category-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600), var(--gold-800));
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    bottom: -60px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-card h2 {
    position: relative;
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    margin: 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.category-card span {
    position: relative;
    margin-top: 22px;
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.rank-no {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-700));
    font-weight: 900;
}

.rank-item img {
    height: 132px;
    object-fit: cover;
    border-radius: 16px;
    background: var(--gold-100);
}

.rank-copy h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.rank-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.rank-score {
    color: var(--gold-700);
    font-size: 20px;
    font-weight: 900;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 130px;
    gap: 14px;
    margin: 32px 0;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-panel input,
.search-panel select {
    min-height: 48px;
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 0 16px;
    outline: none;
    color: var(--ink);
    background: var(--gold-50);
}

.detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.8fr);
    gap: 34px;
}

.breadcrumb {
    grid-column: 1 / -1;
    color: var(--gold-700);
    font-weight: 800;
}

.player-card,
.detail-side,
.story-block,
.related-block {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
}

.player-button {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    font-size: 28px;
}

.detail-info,
.story-block,
.related-block {
    padding: 28px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--gold-100);
    color: var(--gold-700);
    font-weight: 800;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.detail-side img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, var(--gold-100), var(--gold-400));
}

.side-body {
    padding: 22px;
}

.side-body h2,
.story-block h2,
.related-block h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
}

.side-body p,
.story-block p {
    color: var(--muted);
    line-height: 1.8;
}

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

.small-movie {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: var(--gold-50);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
}

.small-movie img {
    height: 160px;
    object-fit: cover;
    background: var(--gold-100);
}

.small-movie span {
    display: block;
    padding: 10px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.site-footer {
    margin-top: 64px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold-800), var(--gold-900));
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
    gap: 34px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 900;
}

.footer-grid p,
.footer-grid a {
    color: var(--gold-200);
    line-height: 1.8;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid li + li {
    margin-top: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(253, 230, 138, 0.2);
    padding: 18px 24px;
    text-align: center;
    color: var(--gold-200);
}

.empty-result {
    display: none;
    padding: 22px;
    border-radius: 18px;
    background: var(--gold-100);
    color: var(--gold-800);
    font-weight: 800;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .menu-button {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

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

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

    .hero-content {
        padding: 92px 18px 96px;
    }

    .hero p {
        font-size: 16px;
    }

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

    .main-wrap,
    .content-section,
    .category-hero,
    .detail-wrap,
    .search-wrap {
        padding: 42px 16px;
    }

    .section-head,
    .category-title-row {
        display: block;
    }

    .section-more {
        margin-top: 16px;
    }

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

    .poster-link img {
        height: 230px;
    }

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

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

    .rank-score {
        grid-column: 3;
        font-size: 16px;
    }

    .rank-item img {
        height: 108px;
    }

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

@media (max-width: 430px) {
    .movie-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
}
