:root {
    --amber-50: #fff8e6;
    --amber-100: #ffedd0;
    --amber-300: #f7c66a;
    --amber-500: #d9901f;
    --amber-600: #b76a12;
    --amber-700: #95510f;
    --amber-800: #753d12;
    --amber-900: #4d260b;
    --orange-50: #fff3e8;
    --ink: #241404;
    --muted: #726659;
    --paper: #ffffff;
    --line: rgba(117, 61, 18, 0.14);
    --shadow: 0 18px 45px rgba(77, 38, 11, 0.16);
    --radius: 22px;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, var(--amber-50), #fff 34%, var(--orange-50));
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--amber-900), var(--amber-800), var(--amber-900));
    color: #fff;
    box-shadow: 0 12px 35px rgba(51, 24, 4, 0.2);
}

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

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

.brand-icon,
.footer-brand span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: var(--amber-100);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand strong {
    display: block;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 237, 208, 0.84);
    font-size: 0.78rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.desktop-nav > a,
.nav-dropdown > button {
    color: rgba(255, 237, 208, 0.9);
    background: transparent;
    border: 0;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.is-active,
.nav-dropdown:hover > button {
    color: #fff;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 178px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #59422c;
}

.dropdown-panel a:hover {
    background: var(--amber-50);
    color: var(--amber-800);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 260px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.nav-search input,
.mobile-menu input,
.search-panel input,
.search-panel select {
    border: 0;
    outline: 0;
    width: 100%;
    border-radius: 999px;
}

.nav-search input {
    background: transparent;
    color: #fff;
    padding: 8px 10px;
}

.nav-search input::placeholder,
.mobile-menu input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.nav-search button,
.mobile-menu button,
.primary-btn,
.secondary-btn,
.search-panel button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button,
.mobile-menu button,
.primary-btn,
.search-panel button {
    background: var(--amber-500);
    color: #fff;
    padding: 9px 16px;
    box-shadow: 0 8px 20px rgba(183, 106, 18, 0.22);
}

.secondary-btn {
    color: #fff;
    padding: 11px 18px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.nav-search button:hover,
.mobile-menu button:hover,
.primary-btn:hover,
.search-panel button:hover {
    background: var(--amber-600);
    transform: translateY(-1px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.8rem;
    margin-left: auto;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-menu a,
.mobile-menu form {
    display: block;
    padding: 12px;
    border-radius: 14px;
    color: var(--amber-100);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mobile-menu form {
    display: flex;
    gap: 8px;
}

.mobile-menu input {
    padding: 10px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.hero-carousel {
    position: relative;
    height: min(780px, 78vh);
    min-height: 560px;
    overflow: hidden;
    background: #000;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.48) 46%, rgba(0, 0, 0, 0.82));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 86px;
    z-index: 2;
    color: #fff;
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(217, 144, 31, 0.88);
    color: #fff;
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.hero-content h1,
.hero-content h2 {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 5.3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    margin: 18px 0 26px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.24rem);
    line-height: 1.8;
}

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

.hero-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--amber-500);
}

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

.section-wrap {
    padding: 58px 0;
}

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

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--amber-700);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 3.2rem);
    line-height: 1.1;
}

.section-heading p,
.page-hero p,
.detail-title p {
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 12px 28px rgba(77, 38, 11, 0.09);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.movie-poster img,
.compact-cover img,
.detail-poster img,
.related-card img,
.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

.movie-card:hover .movie-poster img,
.compact-card:hover .compact-cover img,
.related-card:hover img,
.category-card:hover .category-cover img {
    transform: scale(1.07);
}

.movie-poster::after,
.compact-cover::after,
.related-card .related-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-poster::after,
.compact-card:hover .compact-cover::after,
.related-card:hover .related-cover::after {
    opacity: 1;
}

.play-bubble {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%) scale(0.86);
    border-radius: 50%;
    color: #fff;
    background: rgba(217, 144, 31, 0.86);
    opacity: 0;
    transition: all 0.25s ease;
}

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

.rank-mark,
.rank-number {
    position: absolute;
    z-index: 3;
    left: 12px;
    top: 12px;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

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

.card-row,
.movie-meta,
.compact-meta,
.detail-meta,
.breadcrumb,
.tag-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.card-row {
    justify-content: space-between;
    margin-bottom: 10px;
}

.badge,
.tag-line span,
.detail-tags span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--amber-100);
    color: var(--amber-800);
    font-size: 0.78rem;
    font-weight: 700;
}

.rating {
    color: var(--amber-700);
    font-weight: 800;
}

.movie-card h3,
.compact-title {
    margin: 0 0 8px;
    font-size: 1.12rem;
    line-height: 1.32;
}

.movie-card h3 a:hover,
.compact-title:hover,
.related-card h3 a:hover {
    color: var(--amber-700);
}

.movie-card p,
.compact-card p,
.related-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.68;
}

.movie-meta,
.compact-meta {
    color: #8b7a68;
    font-size: 0.9rem;
}

.tag-line {
    margin-top: 14px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 16px;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(77, 38, 11, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.compact-cover,
.related-cover,
.category-cover {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d1106, #5f330e);
}

.compact-cover {
    aspect-ratio: 3 / 4;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin: 32px auto 0;
    padding: 54px;
    border-radius: 32px;
    background: radial-gradient(circle at top left, rgba(247, 198, 106, 0.46), transparent 34%), linear-gradient(135deg, #fffaf0, #ffffff 44%, #fff0df);
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(77, 38, 11, 0.09);
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    top: -90px;
    border-radius: 50%;
    background: rgba(217, 144, 31, 0.14);
}

.page-hero > * {
    position: relative;
    z-index: 2;
}

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

.category-card {
    display: block;
    padding: 18px;
    min-height: 188px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(77, 38, 11, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 14px 0 8px;
}

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

.category-cover {
    aspect-ratio: 16 / 9;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin: 28px 0 30px;
    padding: 12px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(77, 38, 11, 0.08);
}

.search-panel input,
.search-panel select {
    padding: 14px 16px;
    color: var(--ink);
    background: var(--amber-50);
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-row button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--amber-900);
    background: var(--amber-100);
    cursor: pointer;
}

.filter-row button.is-active {
    color: #fff;
    background: var(--amber-700);
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
}

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

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

.ranking-list li {
    min-width: 0;
}

.breadcrumb {
    margin: 28px 0 18px;
    color: var(--muted);
    font-size: 0.94rem;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 36px;
}

.player-card,
.detail-card,
.article-card {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(77, 38, 11, 0.12);
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #fff;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.7));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--amber-500);
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.player-overlay h2 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.player-overlay p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.detail-title {
    padding: 28px;
}

.detail-title h1 {
    margin-bottom: 14px;
}

.detail-meta {
    margin: 18px 0;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #1d1106, #5f330e);
}

.detail-card {
    padding: 18px;
}

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

.article-card {
    padding: 34px;
    margin-bottom: 36px;
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
}

.article-card p {
    color: #4c4035;
    line-height: 1.95;
    margin: 0 0 24px;
}

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

.related-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 22px rgba(77, 38, 11, 0.08);
}

.related-cover {
    display: block;
    aspect-ratio: 3 / 4;
}

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

.related-card h3 {
    margin: 0 0 6px;
    font-size: 0.96rem;
    line-height: 1.35;
}

.related-card p {
    font-size: 0.86rem;
}

.site-footer {
    margin-top: 60px;
    color: #fff;
    background: linear-gradient(90deg, var(--amber-900), #5c2c0b, var(--amber-900));
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 34px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 1.06rem;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: rgba(255, 237, 208, 0.82);
}

.site-footer p {
    line-height: 1.8;
}

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

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

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

    .menu-toggle {
        display: block;
    }

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

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

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

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

@media (max-width: 760px) {
    .hero-carousel {
        height: 70vh;
        min-height: 520px;
    }

    .hero-content {
        bottom: 72px;
    }

    .hero-control {
        width: 42px;
        height: 42px;
    }

    .hero-prev {
        left: 12px;
    }

    .hero-next {
        right: 12px;
    }

    .section-wrap {
        padding: 42px 0;
    }

    .section-heading {
        display: block;
    }

    .movie-grid,
    .compact-grid,
    .ranking-list,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: 112px 1fr;
    }

    .page-hero {
        padding: 34px 24px;
        border-radius: 24px;
    }

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

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

    .article-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .brand strong {
        font-size: 1.05rem;
    }

    .brand small {
        display: none;
    }

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

    .compact-card {
        grid-template-columns: 96px 1fr;
        gap: 12px;
    }

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