:root {
    --bg: #fffaf0;
    --surface: #ffffff;
    --surface-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(180, 83, 9, 0.16);
    --primary: #b45309;
    --primary-dark: #92400e;
    --accent: #f59e0b;
    --warm: #fff7ed;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 44%, #ffffff 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.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);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

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

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

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

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

.menu-button {
    width: 42px;
    height: 42px;
    border: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: var(--surface-soft);
    border-radius: 12px;
    cursor: pointer;
}

.menu-button span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--primary-dark);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--primary-dark);
    font-weight: 700;
}

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

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

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

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

.hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.62) 46%, rgba(17, 24, 39, 0.18) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    padding-top: 16px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 13px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(180, 83, 9, 0.22);
}

.eyebrow.warm {
    color: var(--primary-dark);
    background: #ffedd5;
    box-shadow: none;
}

.hero-content h1 {
    max-width: 760px;
    margin: 22px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 18px 0 0;
}

.hero-pill,
.tag-row span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.34);
}

.btn-ghost {
    color: #ffffff;
    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: 30px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

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

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

.quick-search-panel {
    transform: translateY(-36px);
    padding: 26px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.quick-search-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: end;
}

.quick-search-inner h2,
.page-hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.quick-search-inner p,
.page-hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.search-box,
.inline-filter {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.search-box input,
.inline-filter input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px;
    color: var(--text);
}

.search-box button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 900;
}

.category-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.category-strip a,
.section-more {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: #ffedd5;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.category-strip a:hover,
.section-more:hover {
    background: #fed7aa;
    transform: translateY(-2px);
}

.content-section {
    padding: 34px 0;
}

.soft-section {
    padding-top: 16px;
}

.warm-panel {
    width: min(1220px, calc(100% - 24px));
    padding: 34px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border: 1px solid var(--line);
}

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

.section-head h2 {
    margin: 12px 0 0;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid rgba(245, 158, 11, 0.14);
    box-shadow: 0 12px 32px rgba(146, 64, 14, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(146, 64, 14, 0.16);
}

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

.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);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(17, 24, 39, 0.68));
}

.poster-play,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.92);
}

.rank-badge {
    left: 12px;
    top: 12px;
    padding: 7px 10px;
    background: rgba(17, 24, 39, 0.72);
}

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

.card-meta {
    gap: 7px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--muted);
}

.card-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--surface-soft);
}

.movie-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.ranking-item h2 a:hover,
.prev-next a:hover,
.category-samples a:hover {
    color: var(--primary);
}

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

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    color: var(--primary-dark);
    background: #ffedd5;
    border: 0;
    font-size: 12px;
    font-weight: 800;
}

.page-main {
    padding-bottom: 40px;
}

.page-hero {
    margin-top: 34px;
    padding: 54px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 42%), linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.small-hero,
.category-hero,
.ranking-hero {
    min-height: 270px;
}

.inline-filter {
    max-width: 620px;
    margin-top: 28px;
    border-radius: 18px;
    min-height: 52px;
}

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

.category-card {
    border-radius: var(--radius-md);
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.08);
}

.category-card a:first-child {
    display: block;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.category-card h2 {
    margin: 18px 0 10px;
}

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

.category-samples {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(245, 158, 11, 0.14);
}

.category-samples a {
    color: #4b5563;
    font-weight: 700;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 70px 92px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(146, 64, 14, 0.06);
}

.ranking-rank {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--primary-dark);
    background: #ffedd5;
    font-weight: 900;
}

.ranking-thumb {
    display: block;
    width: 92px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

.ranking-item h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.ranking-item p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.6;
}

.detail-main {
    background: linear-gradient(180deg, #111827 0, #111827 420px, var(--bg) 421px, #ffffff 100%);
}

.detail-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    color: #ffffff;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) brightness(0.52);
    transform: scale(1.08);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.55));
}

.detail-hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 32px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

.detail-info h1 {
    margin: 16px 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.anchor-play {
    margin-top: 24px;
}

.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: -70px auto 0;
    position: relative;
    z-index: 5;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.25), rgba(17, 24, 39, 0.82));
    cursor: pointer;
}

.player-overlay.hidden {
    display: none;
}

.player-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 18px 44px rgba(245, 158, 11, 0.35);
    font-size: 32px;
}

.player-overlay strong {
    max-width: 80%;
    font-size: clamp(24px, 4vw, 44px);
    line-height: 1.2;
    text-align: center;
}

.player-overlay em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 24px;
    align-items: start;
}

.article-panel,
.side-panel {
    padding: 28px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.08);
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.article-panel p {
    margin: 0 0 24px;
    color: #4b5563;
    line-height: 2;
    font-size: 16px;
}

.side-panel dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px 14px;
    margin: 0;
}

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

.side-panel dd {
    margin: 0;
    font-weight: 800;
}

.prev-next {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(245, 158, 11, 0.18);
}

.prev-next a {
    color: var(--primary-dark);
    font-weight: 800;
}

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

.search-result-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.06);
}

.search-result-card img {
    width: 86px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.search-result-card h2 {
    margin: 0 0 8px;
    font-size: 17px;
}

.search-result-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.site-footer {
    margin-top: 54px;
    padding: 46px 0;
    background: #111827;
    color: rgba(255, 255, 255, 0.78);
}

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

.footer-brand {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 14px;
}

.footer-inner p {
    margin: 0;
    line-height: 1.8;
}

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

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

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

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

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

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

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

    .menu-button {
        display: flex;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-layer {
        background: linear-gradient(180deg, rgba(17, 24, 39, 0.35), rgba(17, 24, 39, 0.86));
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 84px;
    }

    .quick-search-panel {
        transform: none;
        margin-top: 18px;
    }

    .quick-search-inner,
    .detail-grid,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(260px, 72vw);
    }

    .player-section {
        margin-top: -30px;
    }
}

@media (max-width: 640px) {
    .nav-shell,
    .quick-search-panel,
    .content-section,
    .page-hero,
    .player-section,
    .detail-hero-inner,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .hero-carousel {
        height: 520px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .quick-search-panel,
    .page-hero,
    .article-panel,
    .side-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .search-box {
        border-radius: 18px;
        flex-direction: column;
    }

    .search-box input {
        min-height: 42px;
    }

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

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

    .movie-card h2 {
        font-size: 16px;
    }

    .movie-card p {
        min-height: 0;
        font-size: 13px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-item {
        grid-template-columns: 48px 74px 1fr;
        gap: 10px;
    }

    .ranking-rank {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .ranking-thumb {
        width: 74px;
    }

    .ranking-item h2 {
        font-size: 16px;
    }

    .ranking-item p {
        display: none;
    }

    .player-icon {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }

    .side-panel dl {
        grid-template-columns: 64px 1fr;
    }
}

@media (max-width: 430px) {
    .movie-grid,
    .compact-grid,
    .category-grid,
    .search-results {
        grid-template-columns: 1fr;
    }

    .search-result-card {
        grid-template-columns: 72px 1fr;
    }

    .search-result-card img {
        width: 72px;
    }
}
