:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f3d7aa;
    --brand: #d97706;
    --brand-2: #ea580c;
    --brand-3: #f59e0b;
    --dark: #111827;
    --dark-2: #1f2937;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.13);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 46%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
    border-bottom: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(16px);
}

.top-nav {
    max-width: 1180px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 14px 26px rgba(234, 88, 12, 0.28);
}

.brand-text {
    font-size: 26px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.nav-search button,
.section-more,
.primary-btn,
.ghost-btn {
    font-weight: 800;
}

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

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

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 16px;
}

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

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 9px 12px;
    color: #4b5563;
    border-radius: 10px;
}

.dropdown-menu a:hover {
    color: var(--brand);
    background: #fff7ed;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid rgba(217, 119, 6, 0.24);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
}

.nav-search input {
    width: 170px;
    border: 0;
    outline: 0;
    padding: 8px 4px 8px 14px;
    background: transparent;
    color: #374151;
}

.nav-search button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #fff;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    display: block;
    margin: 5px auto;
    background: #92400e;
    border-radius: 4px;
}

.mobile-menu {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 22px 18px;
}

.mobile-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #4b5563;
}

.mobile-menu a:hover {
    background: #fff7ed;
    color: var(--brand);
}

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

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

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

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-image {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 34%, rgba(245, 158, 11, 0.28), transparent 26%), linear-gradient(135deg, #111827, #3f1d06 55%, #111827);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    min-height: 72vh;
    margin: 0 auto;
    padding: 80px 22px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(40px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 640px;
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: 18px;
}

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

.hero-meta span,
.detail-meta span,
.hero-meta a,
.detail-meta a {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 6px 12px;
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    padding: 13px 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
    box-shadow: 0 18px 32px rgba(245, 158, 11, 0.32);
}

.primary-btn:hover,
.ghost-btn:hover,
.small-btn:hover,
.movie-card:hover {
    transform: translateY(-4px);
}

.ghost-btn {
    padding: 12px 24px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

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

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

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

.hero-dots button.is-active {
    width: 32px;
    background: #fff;
}

.page-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 22px 78px;
}

.content-section {
    margin-bottom: 76px;
}

.section-panel {
    border-radius: var(--radius);
    padding: 34px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    box-shadow: var(--shadow);
}

.section-panel.blue {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.section-panel.green {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

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

.section-title h2,
.list-heading h1,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-title h2,
.page-title h1,
.list-heading h1 {
    font-size: clamp(30px, 4vw, 46px);
}

.section-more {
    color: var(--brand);
}

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

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

.movie-row {
    display: flex;
    gap: 22px;
    padding-bottom: 14px;
    overflow-x: auto;
}

.movie-row .movie-card {
    width: 300px;
    min-width: 300px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: 0 24px 46px rgba(120, 53, 15, 0.16);
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: radial-gradient(circle at 70% 25%, rgba(251, 191, 36, 0.34), transparent 30%), linear-gradient(135deg, #78350f, #111827);
}

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

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 4px 10px;
    color: #78350f;
    font-size: 13px;
    font-weight: 900;
    background: #fef3c7;
}

.card-body {
    padding: 17px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 25px;
    margin-bottom: 10px;
}

.card-tags span {
    border-radius: 999px;
    padding: 3px 8px;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    background: #fff7ed;
}

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

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

.card-body p {
    min-height: 54px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.card-meta {
    justify-content: space-between;
    color: #6b7280;
    font-size: 13px;
}

.card-meta a {
    color: var(--brand);
    font-weight: 800;
}

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

.category-card {
    min-height: 210px;
    padding: 26px;
    border-radius: 22px;
    color: #111827;
    background: linear-gradient(135deg, #fff, #fff7ed);
    box-shadow: var(--shadow);
}

.category-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

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

.category-meta span {
    border-radius: 999px;
    padding: 6px 10px;
    color: #92400e;
    background: #fef3c7;
    font-weight: 800;
}

.page-title {
    margin-bottom: 34px;
}

.page-title p,
.list-heading p {
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 70px 110px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
}

.rank-number {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
}

.rank-cover {
    height: 132px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #78350f, #111827);
}

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

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.25;
}

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

.rank-meta span,
.rank-meta a {
    color: #92400e;
    font-size: 14px;
    font-weight: 800;
}

.small-btn {
    padding: 10px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.detail-hero {
    background: radial-gradient(circle at 72% 30%, rgba(245, 158, 11, 0.25), transparent 30%), linear-gradient(135deg, #111827, #431407 58%, #111827);
    color: #fff;
}

.detail-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 22px 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #fde68a;
}

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

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: stretch;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 420px;
    background: #030712;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.player-box video {
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: #000;
    object-fit: contain;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 34%), linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(17, 24, 39, 0.8));
}

.play-layer.is-hidden {
    display: none;
}

.play-layer-inner {
    text-align: center;
    color: #fff;
}

.play-button {
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
    box-shadow: 0 20px 46px rgba(245, 158, 11, 0.38);
}

.play-layer h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.play-layer p {
    margin: 0;
    color: #e5e7eb;
}

.detail-side {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-title h1 {
    margin: 12px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
}

.detail-side p {
    color: #f3f4f6;
}

.detail-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 52px 22px 78px;
}

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

.article-panel,
.side-panel {
    border-radius: 24px;
    padding: 30px;
    background: #fff;
    box-shadow: var(--shadow);
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 28px;
}

.article-panel p {
    margin: 0 0 22px;
    color: #374151;
    font-size: 17px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tag-list span,
.tag-list a {
    border-radius: 999px;
    padding: 7px 12px;
    color: #92400e;
    background: #fff7ed;
    font-weight: 800;
}

.side-movie {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 13px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.side-movie:last-child {
    border-bottom: 0;
}

.side-thumb {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #78350f, #111827);
}

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

.side-movie h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.25;
}

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

.search-box {
    display: flex;
    gap: 12px;
    max-width: 780px;
    margin: 22px 0 34px;
    padding: 8px;
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
}

.search-box input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 12px 14px;
    font-size: 16px;
}

.search-box button {
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.no-result {
    display: none;
    padding: 28px;
    border-radius: 18px;
    color: #92400e;
    background: #fff7ed;
    font-weight: 900;
}

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(90deg, #111827, #1f2937);
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 50px 22px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

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

.footer-about p {
    max-width: 600px;
    color: #d1d5db;
}

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

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 8px 0;
}

.site-footer a {
    color: #d1d5db;
}

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

@media (max-width: 1024px) {
    .movie-grid,
    .movie-grid.featured,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 56px 90px 1fr;
    }

    .rank-item .small-btn {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .top-nav {
        height: 62px;
    }

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

    .hero,
    .hero-content {
        min-height: 76vh;
    }

    .hero-content {
        padding: 72px 22px;
    }

    .hero-control {
        display: none;
    }

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

    .section-title,
    .list-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-item {
        grid-template-columns: 50px 1fr;
    }

    .rank-cover {
        display: none;
    }

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

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        padding: 12px 18px;
    }
}
