:root {
    --page-bg: #fffbeb;
    --card-bg: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --amber: #b45309;
    --amber-dark: #92400e;
    --amber-soft: #fef3c7;
    --shadow: 0 18px 40px rgba(120, 53, 15, 0.12);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 46%, #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,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-weight: 900;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #78350f);
    box-shadow: 0 10px 22px rgba(180, 83, 9, 0.26);
    font-size: 13px;
}

.brand-text {
    font-size: 20px;
    letter-spacing: -0.02em;
}

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

.nav-link {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-panel input,
.large-search input,
.filter-bar input,
.filter-bar select {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 150px;
    padding: 9px 14px;
}

.header-search input:focus,
.mobile-panel input:focus,
.large-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.header-search button,
.mobile-panel button,
.large-search button,
.primary-button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #92400e);
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(180, 83, 9, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    padding: 9px 16px;
}

.header-search button:hover,
.mobile-panel button:hover,
.large-search button:hover,
.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(180, 83, 9, 0.32);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #374151;
    font-size: 28px;
}

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

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

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-panel form {
    display: flex;
    gap: 10px;
}

.mobile-panel input {
    min-width: 0;
    flex: 1;
    padding: 11px 14px;
}

.mobile-panel button {
    padding: 11px 18px;
}

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

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.26), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 40%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(32px, calc((100vw - 1180px) / 2));
    width: min(660px, calc(100% - 64px));
    transform: translateY(-50%);
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 10px;
    color: #d97706;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    color: #fcd34d;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.hero-summary {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.hero-tags,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #fde68a;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    font-size: 36px;
    line-height: 1;
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

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

main {
    width: 100%;
}

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

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

.intro-search {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 32px;
    align-items: center;
}

.intro-search h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-article h2,
.detail-side-card h2 {
    margin: 0;
    color: #111827;
    letter-spacing: -0.04em;
}

.intro-search h2,
.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
}

.intro-search p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.large-search {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.large-search input {
    min-width: 0;
    flex: 1;
    padding: 0 18px;
    border: 0;
    background: transparent;
}

.large-search button {
    padding: 13px 24px;
}

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

.section-heading > a {
    color: var(--amber);
    font-weight: 900;
}

.compact-heading {
    align-items: center;
    margin-bottom: 18px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: 0 8px 28px rgba(120, 53, 15, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(217, 119, 6, 0.36);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

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

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-meta {
    margin: 0 0 6px;
    color: var(--amber);
    font-size: 12px;
    font-weight: 900;
}

.card-body h3 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
}

.card-body h3 a:hover {
    color: var(--amber);
}

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

.card-tags span {
    color: var(--amber-dark);
    background: var(--amber-soft);
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #111827;
    box-shadow: var(--shadow);
}

.category-tile img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    opacity: 0.64;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
    opacity: 0.78;
    transform: scale(1.06);
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 20px;
    color: #ffffff;
}

.category-tile span {
    padding-top: 128px;
    font-size: 25px;
    font-weight: 900;
}

.category-tile p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.ranking-box,
.detail-side-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    padding: 22px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(229, 231, 235, 0.78);
    border-radius: 18px;
    background: #ffffff;
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #92400e);
    font-weight: 900;
}

.rank-poster {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-item h3 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.3;
}

.rank-item h3 a:hover {
    color: var(--amber);
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.page-main {
    padding: 44px 0 70px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: 54px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(217, 119, 6, 0.24), transparent 32%),
        linear-gradient(135deg, #ffffff, #fffbeb);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
}

.category-overview-list {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
}

.category-cover {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 22px;
    background: #111827;
}

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

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.category-overview-card p {
    margin: 0 0 16px;
    color: var(--muted);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-links a {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--amber-dark);
    background: var(--amber-soft);
    font-size: 13px;
    font-weight: 800;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 14px;
    margin-bottom: 26px;
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: #374151;
    font-weight: 900;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    padding: 13px 16px;
}

.detail-main {
    width: min(1120px, calc(100% - 32px));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-bottom: 32px;
    padding: 32px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 34%),
        #ffffff;
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    background: #111827;
    box-shadow: 0 22px 44px rgba(17, 24, 39, 0.22);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1;
}

.detail-one-line {
    max-width: 720px;
    margin: 18px 0 18px;
    color: #4b5563;
    font-size: 20px;
}

.detail-tags span {
    color: var(--amber-dark);
    background: var(--amber-soft);
}

.detail-info .primary-button {
    margin-top: 24px;
}

.player-section {
    margin-bottom: 34px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 24px 58px rgba(17, 24, 39, 0.28);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.46));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #92400e);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.34);
    font-size: 34px;
}

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

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    margin-bottom: 34px;
}

.detail-article,
.detail-side-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
}

.detail-article {
    padding: 30px;
}

.detail-article h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 28px;
}

.detail-article h2:not(:first-child) {
    margin-top: 30px;
}

.detail-article p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
}

.detail-side-card dl {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.detail-side-card dl div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.detail-side-card dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-side-card dd {
    margin: 0;
    color: #111827;
    font-weight: 800;
}

.related-panel {
    width: 100%;
    padding-top: 10px;
}

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

.compact-card .card-desc {
    min-height: auto;
}

.ranking-page-list .rank-item {
    grid-template-columns: 54px 86px minmax(0, 1fr);
}

.ranking-page-list .rank-item h3 {
    font-size: 20px;
}

.search-results:empty::before {
    content: "输入关键词后显示影片结果";
    grid-column: 1 / -1;
    padding: 38px;
    border: 1px dashed #f59e0b;
    border-radius: var(--radius-xl);
    color: var(--muted);
    text-align: center;
    background: #ffffff;
}

.site-footer {
    margin-top: 30px;
    border-top: 1px solid var(--line);
    background: #111827;
    color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: grid;
    gap: 16px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-footer nav a {
    color: #fcd34d;
    font-weight: 800;
}

.site-footer p {
    max-width: 760px;
    margin: 0;
}

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

    .mobile-menu-button {
        display: block;
    }

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

    .two-column-section,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 820px) {
    .hero-slider {
        min-height: 620px;
    }

    .hero-content {
        left: 24px;
        width: calc(100% - 48px);
    }

    .hero-control {
        display: none;
    }

    .section-panel,
    .page-main,
    .detail-main {
        width: min(100% - 24px, 1180px);
    }

    .intro-search,
    .category-overview-card,
    .detail-hero,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .detail-hero {
        padding: 28px;
        border-radius: 26px;
    }

    .detail-poster {
        max-width: 320px;
    }

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

    .large-search {
        border-radius: 22px;
        flex-direction: column;
    }

    .large-search input {
        min-height: 44px;
    }
}

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

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

    .hero-slider {
        height: 76vh;
        min-height: 590px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        letter-spacing: -0.05em;
    }

    .hero-summary {
        font-size: 16px;
        -webkit-line-clamp: 5;
    }

    .movie-grid,
    .slim-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

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

    .category-overview-card {
        padding: 14px;
    }

    .detail-article,
    .detail-side-card,
    .ranking-box {
        padding: 20px;
    }

    .play-overlay span {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
