:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(245, 158, 11, 0.22);
    --amber: #f59e0b;
    --orange: #ea580c;
    --yellow: #facc15;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(146, 64, 14, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.24), transparent 30rem),
        linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 10px 35px rgba(146, 64, 14, 0.08);
}

.site-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 26px;
    background: linear-gradient(135deg, #facc15, #f59e0b 48%, #ea580c);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.35);
}

.brand-text strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #b45309;
}

.brand-text small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #92400e;
    background: #fef3c7;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fef3c7;
    color: #92400e;
    font-size: 22px;
}

.hero {
    position: relative;
    min-height: 560px;
    height: 70vh;
    overflow: hidden;
    background: #111827;
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.12) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.62), transparent 42%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: white;
    gap: 20px;
    max-width: 1180px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.28);
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.06em;
}

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

.hero-meta,
.detail-tags,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-tags span,
.category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.primary-btn {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.34);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

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

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

.hero-dot {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.active {
    background: #f59e0b;
}

.search-band {
    margin-top: -42px;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    padding: 26px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.detail-card h1,
.prose-card h2,
.sidebar-card h2 {
    margin: 0;
    color: #1f2937;
}

.search-band p,
.page-hero p,
.detail-card p,
.info-card p,
.category-overview-card p {
    color: var(--muted);
}

.inline-search,
.search-page-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.inline-search input,
.search-page-form input {
    min-width: 0;
    flex: 1;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    background: #fffaf0;
    color: var(--text);
}

.inline-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.section-block,
.split-section,
.page-main {
    padding: 64px 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-heading span {
    font-size: 30px;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading a {
    margin-left: auto;
    color: #b45309;
    font-weight: 800;
}

.section-heading.compact h2 {
    font-size: 26px;
}

.soft-panel {
    padding: 36px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.75), rgba(255, 237, 213, 0.75));
    border: 1px solid var(--line);
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(146, 64, 14, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(146, 64, 14, 0.18);
}

.movie-poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fde68a, #fed7aa);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 54%);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.86);
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.94);
    color: white;
    font-weight: 900;
    opacity: 0;
    transition: 0.25s ease;
}

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

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.32;
}

.movie-card-body p {
    min-height: 48px;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
}

.movie-meta-line {
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
}

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

.category-card,
.category-overview-card,
.info-card,
.sidebar-card,
.detail-card,
.search-page-panel {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 50px rgba(146, 64, 14, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.16);
}

.category-card {
    padding: 18px;
}

.category-card span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #b45309;
    font-weight: 950;
    font-size: 20px;
}

.category-card strong {
    display: block;
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-samples a {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

.ranking-panel {
    align-self: start;
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.98));
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 54px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #fef3c7;
    transform: translateX(3px);
}

.rank-item img {
    width: 54px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
    background: #fde68a;
}

.rank-item strong,
.rank-item small {
    display: block;
}

.rank-item strong {
    color: #1f2937;
    line-height: 1.25;
}

.rank-item small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.rank-number {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f59e0b;
    color: white;
    font-weight: 950;
    font-size: 13px;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    padding: 46px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(120, 53, 15, 0.82), rgba(234, 88, 12, 0.72)),
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.45), transparent 22rem);
    color: white;
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin-top: 14px;
    color: white;
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.chip-row {
    margin: 24px 0;
}

.category-chip {
    background: #fff7ed;
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.28);
}

.category-chip.active,
.category-chip:hover {
    color: white;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.category-list {
    margin-top: 26px;
}

.category-overview-card,
.info-card {
    padding: 26px;
}

.category-overview-card h2,
.info-card h2 {
    margin: 0 0 10px;
    color: #92400e;
    font-size: 26px;
}

.category-overview-card ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-overview-card li a {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 800;
}

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

.ranking-card a {
    display: grid;
    grid-template-columns: 48px 88px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.1);
}

.ranking-index {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    font-weight: 950;
}

.ranking-card img {
    width: 88px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    object-fit: cover;
    background: #fde68a;
}

.ranking-info strong,
.ranking-info small,
.ranking-info em {
    display: block;
}

.ranking-info strong {
    margin-bottom: 5px;
    font-size: 18px;
    color: #1f2937;
}

.ranking-info small {
    color: #b45309;
    font-style: normal;
    font-weight: 800;
}

.ranking-info em {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
}

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

.detail-primary {
    display: grid;
    gap: 22px;
}

.player-box {
    border-radius: 28px;
    padding: 10px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: var(--shadow);
}

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

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

.player-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.48));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f59e0b;
    color: white;
    font-size: 34px;
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.42);
    padding-left: 5px;
}

.detail-card {
    padding: 26px;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.detail-title-row h1 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-title-row p {
    margin-bottom: 18px;
    font-size: 18px;
}

.detail-tags span {
    background: #fef3c7;
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.3);
}

.compact-btn {
    flex: none;
    min-height: 42px;
    padding: 9px 16px;
    font-size: 14px;
}

.prose-card h2 {
    margin-bottom: 14px;
    font-size: 26px;
}

.prose-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.detail-sidebar {
    display: grid;
    align-content: start;
    gap: 20px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: cover;
    background: #fde68a;
}

.poster-card h2 {
    margin-top: 16px;
    font-size: 24px;
}

.poster-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.search-page-panel {
    margin-top: 28px;
    padding: 28px;
}

.search-page-form {
    max-width: 760px;
}

.search-status {
    margin-top: 18px;
    color: #92400e;
    font-weight: 800;
}

.search-results {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 20px;
    background: #fff7ed;
    border: 1px solid var(--line);
}

.search-result-card img {
    width: 90px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: #fde68a;
}

.search-result-card h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.search-result-card p {
    margin: 0 0 8px;
    color: var(--muted);
}

.search-result-card span {
    color: #92400e;
    font-weight: 800;
    font-size: 13px;
}

.site-footer {
    padding: 46px 0;
    background: linear-gradient(135deg, #78350f, #9a3412 45%, #b45309);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-top: 0;
}

.footer-grid p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
}

.footer-grid a {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    margin: 8px 0;
}

.footer-grid a:hover {
    color: white;
}

.image-empty {
    opacity: 0;
}

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

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

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .site-nav {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 0 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        border-radius: 14px;
    }

    .hero {
        height: auto;
        min-height: 620px;
    }

    .hero-content {
        padding: 86px 0 100px;
    }

    .search-band,
    .footer-grid,
    .ranking-grid,
    .category-grid,
    .category-overview-grid,
    .info-grid,
    .search-results {
        grid-template-columns: 1fr;
    }

    .movie-grid.six-col,
    .movie-grid.five-col,
    .movie-grid.four-col,
    .movie-grid.three-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .soft-panel,
    .page-hero,
    .detail-card,
    .search-page-panel {
        padding: 22px;
    }

    .detail-title-row {
        flex-direction: column;
    }
}

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

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

    .brand-icon {
        width: 42px;
        height: 42px;
    }

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

    .hero-meta span {
        font-size: 12px;
    }

    .inline-search,
    .search-page-form {
        flex-direction: column;
    }

    .inline-search button,
    .search-page-form button {
        min-height: 48px;
    }

    .movie-grid.six-col,
    .movie-grid.five-col,
    .movie-grid.four-col,
    .movie-grid.three-col {
        gap: 14px;
    }

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

    .movie-card-body p {
        display: none;
    }

    .ranking-card a,
    .search-result-card {
        grid-template-columns: 70px 1fr;
    }

    .ranking-index {
        display: none;
    }

    .ranking-card img,
    .search-result-card img {
        width: 70px;
    }
}
