:root {
    --bg: #f8fafc;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --amber: #b45309;
    --amber-dark: #92400e;
    --orange: #ea580c;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 24px rgba(180, 83, 9, 0.28);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

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

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: #f3f4f6;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-button span {
    width: 18px;
    height: 2px;
    background: #111827;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid rgba(229, 231, 235, 0.85);
    background: #ffffff;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #374151;
    font-weight: 700;
}

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

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

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

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

.hero-slide img {
    filter: saturate(1.05) contrast(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 68% 36%, rgba(251, 191, 36, 0.22), transparent 32%), linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62) 45%, rgba(17, 24, 39, 0.2));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    top: 50%;
    transform: translateY(-50%);
    max-width: 720px;
    color: #ffffff;
    padding-right: 24px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(180, 83, 9, 0.9);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.eyebrow {
    background: #fff7ed;
    color: var(--amber);
}

.hero-content h2 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    margin: 0;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

.hero-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 32px rgba(180, 83, 9, 0.34);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-search-panel {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 92px;
    width: min(440px, calc(100vw - 48px));
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-search-panel h1 {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

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

.search-form input,
.search-page-form input,
.inline-filter input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 16px;
    outline: none;
    background: #ffffff;
    color: #111827;
}

.search-form input:focus,
.search-page-form input:focus,
.inline-filter input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.search-form button,
.search-page-form button {
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--amber);
    font-weight: 900;
    cursor: pointer;
}

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

.hero-category-links a {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    font-size: 13px;
    font-weight: 800;
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

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

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.soft-section {
    max-width: none;
    padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-head h2,
.category-block-head h2,
.detail-article h2,
.detail-side h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-head p,
.category-block-head p {
    margin: 10px 0 0;
    color: var(--muted);
}

.section-more {
    flex: 0 0 auto;
    color: #ffffff;
    background: #111827;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.movie-card-small .poster-link {
    aspect-ratio: 2 / 3;
}

.poster-link img {
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(17, 24, 39, 0.78));
}

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

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 20px rgba(180, 83, 9, 0.3);
}

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

.movie-card h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card h2 a:hover {
    color: var(--amber);
}

.movie-meta {
    margin: 7px 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-line {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    color: #92400e;
    background: #fffbeb;
}

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

.category-tile {
    min-height: 150px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: #111827;
}

.category-tile p {
    margin: 10px 0 0;
    color: var(--muted);
}

.page-hero {
    min-height: 360px;
    padding: 92px max(24px, calc((100vw - 1280px) / 2 + 24px)) 64px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    color: #ffffff;
    background: radial-gradient(circle at 75% 30%, rgba(251, 191, 36, 0.42), transparent 34%), linear-gradient(135deg, #111827, #7c2d12 68%, #ea580c);
}

.page-hero h1 {
    margin: 16px 0 12px;
    max-width: 860px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
}

.inline-filter {
    min-width: min(420px, 100%);
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.category-block {
    margin-bottom: 64px;
}

.detail-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 28px;
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 40px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    background: #fef3c7;
    box-shadow: var(--shadow);
}

.detail-info {
    align-self: center;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

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

.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

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

.detail-meta span {
    color: #92400e;
    background: #fffbeb;
}

.detail-tags {
    margin-bottom: 24px;
}

.player-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 0;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
}

.center-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 78px;
    height: 78px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.center-play span {
    position: absolute;
    left: 31px;
    top: 23px;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 23px solid #ffffff;
}

.center-play.hidden {
    opacity: 0;
    pointer-events: none;
}

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

.detail-article,
.detail-side {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-article {
    padding: 34px;
}

.detail-article h2,
.detail-side h2 {
    font-size: 26px;
}

.detail-article p {
    margin: 16px 0 30px;
    color: #374151;
    font-size: 17px;
}

.detail-side {
    padding: 26px;
}

.detail-side dl {
    margin: 18px 0 0;
}

.detail-side div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.detail-side dt {
    color: var(--muted);
}

.detail-side dd {
    margin: 0;
    text-align: right;
    font-weight: 800;
}

.search-page-form {
    width: min(620px, 100%);
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.search-results:empty::before {
    content: "输入关键词后显示相关影片";
    grid-column: 1 / -1;
    padding: 40px;
    border-radius: 22px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
    box-shadow: var(--soft-shadow);
}

.site-footer {
    background: #111827;
    color: rgba(255, 255, 255, 0.74);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
}

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

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

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

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.56);
}

.is-hidden {
    display: none !important;
}

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

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

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero {
        min-height: 820px;
    }

    .hero-content {
        top: 42%;
        left: 24px;
        right: 24px;
        max-width: none;
    }

    .hero-search-panel {
        left: 24px;
        right: 24px;
        bottom: 70px;
        width: auto;
    }

    .page-hero,
    .section-head,
    .category-block-head {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-hero,
    .detail-main,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .header-inner {
        padding: 12px 16px;
    }

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

    .hero-content h2 {
        font-size: 42px;
    }

    .hero-content p,
    .detail-one-line {
        font-size: 17px;
    }

    .content-section,
    .soft-section,
    .detail-hero,
    .player-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

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

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

    .detail-article,
    .detail-side {
        padding: 22px;
    }
}
