:root {
    --golden-50: #fffbeb;
    --golden-100: #fef3c7;
    --golden-200: #fde68a;
    --golden-300: #fcd34d;
    --golden-400: #fbbf24;
    --golden-500: #f59e0b;
    --golden-600: #d97706;
    --golden-700: #b45309;
    --golden-800: #92400e;
    --sunshine-50: #fff7ed;
    --sunshine-100: #fff3e0;
    --ink: #111827;
    --muted: #6b7280;
    --line: rgba(146, 64, 14, 0.14);
    --shadow-warm: 0 2px 8px rgba(245, 158, 11, 0.15);
    --shadow-golden: 0 4px 14px rgba(251, 191, 36, 0.39);
    --shadow-golden-lg: 0 8px 24px rgba(251, 191, 36, 0.45);
    --radius: 18px;
    --max: 1180px;
}

* {
    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: var(--ink);
    background: linear-gradient(135deg, var(--golden-50), #ffffff 46%, var(--sunshine-100));
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: linear-gradient(135deg, var(--golden-400), var(--golden-500), var(--golden-600));
    color: #ffffff;
    box-shadow: var(--shadow-golden);
}

.nav-shell {
    width: min(100% - 32px, var(--max));
    height: 68px;
    margin: 0 auto;
    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: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.desktop-nav a {
    position: relative;
    padding: 8px 0;
    opacity: 0.96;
}

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

.desktop-nav a:hover::after {
    transform: scaleX(1);
}

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

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--max));
    margin: 0 auto 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(180, 83, 9, 0.92);
    backdrop-filter: blur(8px);
}

.mobile-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: 12px;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
}

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

main {
    min-height: 60vh;
}

.hero {
    position: relative;
    padding: 112px 0 56px;
    color: #ffffff;
    overflow: hidden;
    background: radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.28), transparent 28%),
        linear-gradient(135deg, var(--golden-400), var(--golden-500), var(--golden-700));
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.36;
}

.hero::before {
    width: 260px;
    height: 260px;
    right: 6%;
    top: 90px;
    background: rgba(255, 255, 255, 0.22);
}

.hero::after {
    width: 180px;
    height: 180px;
    left: 6%;
    bottom: -60px;
    background: rgba(146, 64, 14, 0.35);
}

.hero-shell {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--golden-100);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 8vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
    max-width: 620px;
    margin: 0 0 26px;
    color: var(--golden-100);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.8;
}

.hero-search,
.inline-search {
    display: flex;
    width: min(100%, 560px);
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-search input,
.inline-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 13px 16px;
    color: #ffffff;
    background: transparent;
}

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

.hero-search button,
.inline-search button {
    border: 0;
    border-radius: 12px;
    padding: 0 20px;
    color: var(--golden-800);
    font-weight: 800;
    background: #ffffff;
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-quick-links a,
.category-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 9px 15px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-quick-links a:hover,
.category-links a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.3);
}

.hero-stage {
    position: relative;
    min-height: 480px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-golden-lg);
    background: rgba(0, 0, 0, 0.22);
}

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

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

.hero-image-layer {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.26)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-text-card {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    max-width: 620px;
}

.hero-badge,
.poster-badge,
.pill-link,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.hero-badge,
.poster-badge {
    color: #ffffff;
    background: var(--golden-500);
}

.hero-text-card h2 {
    margin: 14px 0 12px;
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.1;
}

.hero-text-card p {
    margin: 0;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.hero-tags span {
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--golden-100);
    background: rgba(255, 255, 255, 0.12);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    padding: 0 18px;
    font-weight: 850;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.28);
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 8px;
}

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

.hero-dot.is-active {
    width: 30px;
    background: #ffffff;
}

.content-section {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 56px 0;
}

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

.section-heading {
    margin-bottom: 24px;
}

.section-heading span {
    color: var(--golden-600);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin: 7px 0 8px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.section-heading p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.7;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--golden-500), var(--golden-700));
    box-shadow: var(--shadow-golden);
}

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

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

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

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

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

.movie-card > a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-warm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card > a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-golden-lg);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--golden-100), var(--sunshine-100));
}

.card-large .poster-wrap {
    aspect-ratio: 16 / 11;
}

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

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
}

.card-body {
    padding: 17px;
}

.card-body h3 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    color: #8a6b32;
    font-size: 13px;
    line-height: 1.45;
}

.soft-panel {
    width: min(100% - 32px, calc(var(--max) + 44px));
    padding: 42px 22px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    box-shadow: var(--shadow-warm);
}

.rank-panel {
    border-radius: 28px;
}

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

.rank-row a {
    display: grid;
    grid-template-columns: 58px 96px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-warm);
}

.rank-row strong {
    color: var(--golden-600);
    font-size: 24px;
}

.rank-row img {
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-row b,
.rank-row em,
.rank-row small {
    display: block;
}

.rank-row b {
    margin-bottom: 6px;
    font-size: 17px;
}

.rank-row em {
    color: #8a6b32;
    font-style: normal;
    font-size: 13px;
}

.rank-row small {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.5;
}

.section-more {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.page-hero {
    padding: 128px 0 64px;
    color: #ffffff;
    background: radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.22), transparent 25%),
        linear-gradient(135deg, var(--golden-400), var(--golden-500), var(--golden-700));
}

.page-hero > div {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}

.small-hero h1,
.category-hero h1,
.search-hero h1 {
    font-size: clamp(34px, 7vw, 58px);
}

.filter-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-warm);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    padding: 13px 14px;
    color: var(--ink);
    background: #fffaf0;
}

.two-col {
    grid-template-columns: minmax(0, 1fr) 240px;
    display: grid;
}

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

.category-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-warm);
}

.category-card > a {
    display: block;
    position: relative;
    min-height: 250px;
    padding: 22px;
    color: #ffffff;
    overflow: hidden;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.46);
    transition: transform 0.35s ease;
}

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

.category-card span,
.category-card h2,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card span {
    display: inline-flex;
    margin-bottom: 58px;
    border-radius: 999px;
    padding: 7px 11px;
    background: var(--golden-500);
    font-weight: 800;
    font-size: 12px;
}

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

.category-card p {
    margin: 0;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
}

.category-preview {
    display: grid;
    gap: 10px;
    padding: 16px 18px 20px;
}

.category-preview a {
    color: #8a6b32;
    line-height: 1.4;
}

.detail-shell {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 104px 0 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: #8a6b32;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--golden-700);
}

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

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #050505;
    box-shadow: var(--shadow-golden-lg);
}

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

.play-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    color: var(--golden-700);
    font-size: 34px;
    padding-left: 6px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-golden-lg);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.play-center:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

.video-player.is-playing .play-center {
    opacity: 0;
    pointer-events: none;
}

.player-bar {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.video-player:hover .player-bar,
.video-player:focus-within .player-bar {
    opacity: 1;
}

.player-bar button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(8px);
}

.player-message {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.76);
}

.player-message[hidden] {
    display: none;
}

.detail-card,
.side-card {
    margin-top: 20px;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-warm);
}

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

.detail-title-row h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.15;
}

.pill-link {
    flex-shrink: 0;
    color: #ffffff;
    background: var(--golden-500);
}

.lead-text {
    margin: 16px 0 0;
    color: #5b4b32;
    font-size: 18px;
    line-height: 1.8;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.info-list li {
    padding: 14px;
    border-radius: 14px;
    background: #fff8e8;
}

.info-list b,
.info-list span {
    display: block;
}

.info-list b {
    margin-bottom: 5px;
    color: var(--golden-700);
}

.info-list span {
    color: #5f513e;
    line-height: 1.45;
}

.tag-list span {
    color: var(--golden-700);
    background: var(--golden-100);
}

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

.prose-card p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 2;
    white-space: pre-line;
}

.detail-side {
    position: sticky;
    top: 92px;
}

.side-card {
    margin-top: 0;
}

.side-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
}

.side-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.side-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
}

.full-rank .rank-row:nth-child(-n + 3) strong {
    color: #ffffff;
    background: linear-gradient(135deg, var(--golden-400), var(--golden-600));
    border-radius: 14px;
    text-align: center;
    padding: 8px 0;
}

.movie-card.is-hidden,
.rank-row.is-hidden {
    display: none;
}

.site-footer {
    margin-top: 40px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--golden-800), #78350f);
}

.footer-grid {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    padding: 44px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.site-footer p {
    max-width: 420px;
    color: var(--golden-200);
    line-height: 1.8;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: var(--golden-200);
}

.footer-bottom {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--golden-300);
    text-align: center;
    font-size: 14px;
}

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

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

    .hero-shell,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 420px;
    }

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

    .detail-side {
        position: relative;
        top: auto;
    }
}

@media (max-width: 680px) {
    .nav-shell {
        height: 64px;
    }

    .hero,
    .page-hero {
        padding-top: 96px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 40px;
    }

    .hero-stage {
        min-height: 480px;
        border-radius: 22px;
    }

    .hero-text-card {
        left: 20px;
        right: 20px;
        bottom: 34px;
    }

    .hero-search,
    .inline-search,
    .filter-bar,
    .two-col {
        display: grid;
        grid-template-columns: 1fr;
    }

    .featured-grid,
    .compact-grid,
    .wide-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-row a {
        grid-template-columns: 44px 78px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-row img {
        width: 78px;
        height: 58px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

    .detail-title-row {
        display: block;
    }

    .pill-link {
        margin-top: 14px;
    }

    .play-center {
        width: 66px;
        height: 66px;
        font-size: 28px;
    }

    .player-bar {
        opacity: 1;
        flex-wrap: wrap;
    }
}
