:root {
    color-scheme: dark;
    --bg: #0c0a09;
    --panel: #1c1917;
    --panel-soft: #292524;
    --line: #44403c;
    --text: #fef3c7;
    --muted: #d6d3d1;
    --soft: #a8a29e;
    --amber: #d97706;
    --amber-light: #fbbf24;
    --red: #991b1b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(146, 64, 14, 0.25), transparent 30%), var(--bg);
    color: var(--muted);
    font-family: Arial, Helvetica, "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #78350f, #92400e, #78350f);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fffbeb;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.18);
    color: var(--amber-light);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.38);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #fef3c7;
    font-weight: 600;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
    transition: color 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
    color: #ffffff;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #ffffff;
    padding: 8px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: #fef3c7;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(251, 191, 36, 0.28);
    padding: 12px 16px 18px;
    background: #78350f;
}

.mobile-nav.is-open {
    display: grid;
    gap: 12px;
}

.hero {
    position: relative;
    height: 60vh;
    min-height: 460px;
    overflow: hidden;
    background: linear-gradient(135deg, #1c1917, #0c0a09 60%, #451a03);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.05) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0c0a09 2%, rgba(12, 10, 9, 0.78) 38%, rgba(12, 10, 9, 0.25) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 72px;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-kicker span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(120, 53, 15, 0.72);
    border: 1px solid rgba(251, 191, 36, 0.25);
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    max-width: 850px;
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.08;
    font-weight: 900;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.hero p {
    max-width: 760px;
    margin: 0 0 26px;
    color: #d6d3d1;
    font-size: 19px;
}

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

.primary-button,
.ghost-button,
.inline-search button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.primary-button,
.inline-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 14px 34px rgba(180, 83, 9, 0.35);
}

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

.ghost-button {
    color: #fef3c7;
    border: 1px solid rgba(251, 191, 36, 0.38);
    background: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(8px);
}

.ghost-button:hover {
    border-color: rgba(251, 191, 36, 0.75);
    color: #ffffff;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.52);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.78);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--amber-light);
}

.search-panel {
    position: relative;
    z-index: 5;
    margin-top: -42px;
    padding: 28px;
    border: 1px solid rgba(251, 191, 36, 0.16);
    border-radius: 24px;
    background: rgba(28, 25, 23, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.search-panel h2,
.section-title-row h2,
.page-hero h1,
.detail-info h1,
.article-section h2,
.player-section h2,
.category-overview h2 {
    margin: 0;
    color: var(--text);
    font-weight: 900;
}

.search-panel h2 {
    font-size: 30px;
}

.search-panel p {
    margin: 8px 0 18px;
    color: var(--soft);
}

.inline-search,
.filter-bar {
    display: flex;
    gap: 12px;
}

.inline-search input,
.filter-bar input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 12px;
    padding: 0 16px;
    color: #ffffff;
    background: #0c0a09;
    outline: none;
}

.inline-search input:focus,
.filter-bar input:focus {
    border-color: rgba(251, 191, 36, 0.65);
}

.main-sections,
.page-main,
.detail-main {
    padding-top: 54px;
    padding-bottom: 72px;
}

.section-block {
    margin-bottom: 58px;
}

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

.section-title-row h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(26px, 3vw, 36px);
}

.section-title-row h2 span {
    color: var(--amber-light);
}

.section-more {
    min-height: 38px;
    padding: 0 16px;
    color: #fef3c7;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background: rgba(120, 53, 15, 0.45);
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 256px;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scrollbar-color: #92400e #1c1917;
}

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(41, 37, 36, 0.98), rgba(28, 25, 23, 0.98));
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
}

.movie-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #292524, #451a03 55%, #0c0a09);
}

.movie-poster::after,
.detail-poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.86), transparent);
    pointer-events: none;
}

.movie-poster img,
.detail-poster img,
.category-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.movie-type,
.rank-mark {
    position: absolute;
    z-index: 2;
    top: 10px;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.movie-type {
    right: 10px;
    background: rgba(146, 64, 14, 0.86);
}

.rank-mark {
    left: 10px;
    background: linear-gradient(135deg, #dc2626, #b45309);
}

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

.movie-card h3 {
    margin: 0 0 7px;
    overflow: hidden;
    color: #fef3c7;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-meta {
    margin: 0 0 8px;
    overflow: hidden;
    color: #a8a29e;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #d6d3d1;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.tag-row span {
    min-height: 24px;
    padding: 2px 8px;
    font-size: 12px;
}

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

.category-card,
.category-overview,
.page-hero,
.filter-bar,
.article-section,
.player-section {
    border: 1px solid rgba(251, 191, 36, 0.13);
    border-radius: 22px;
    background: rgba(28, 25, 23, 0.92);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.category-card {
    display: block;
    overflow: hidden;
    padding: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.45);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.category-thumbs span {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #292524, #451a03);
}

.category-card h3,
.category-overview h2 {
    margin: 0 0 8px;
    color: #fef3c7;
}

.category-card p,
.category-overview p,
.page-hero p,
.article-section p {
    margin: 0;
    color: #bdb7b2;
}

.page-hero {
    padding: 30px;
    margin-bottom: 28px;
}

.small-hero h1 {
    font-size: clamp(34px, 4vw, 54px);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 700;
}

.crumbs span {
    color: #a8a29e;
}

.category-overview {
    padding: 24px;
    margin-bottom: 24px;
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.filter-bar {
    align-items: center;
    margin-bottom: 26px;
    padding: 16px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-buttons button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 999px;
    color: #d6d3d1;
    background: #292524;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
    color: #ffffff;
    background: #b45309;
    border-color: #d97706;
}

.movie-card.is-hidden {
    display: none;
}

.detail-main {
    background: radial-gradient(circle at 20% 0, rgba(146, 64, 14, 0.2), transparent 28%);
}

.detail-hero {
    padding-top: 44px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 24px;
    background: linear-gradient(135deg, #292524, #451a03 58%, #0c0a09);
    box-shadow: var(--shadow);
}

.detail-info h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
}

.detail-one-line {
    max-width: 860px;
    margin: 18px 0;
    color: #e7e5e4;
    font-size: 19px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 10px;
    color: #fef3c7;
    background: rgba(41, 37, 36, 0.96);
    border: 1px solid rgba(251, 191, 36, 0.14);
}

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

.player-section {
    margin-top: 44px;
    padding: 24px;
}

.player-section h2,
.article-section h2 {
    margin-bottom: 18px;
    font-size: 28px;
}

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

.player-box video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.24));
    text-align: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.play-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #b45309);
    font-size: 30px;
    box-shadow: 0 14px 36px rgba(180, 83, 9, 0.42);
}

.article-section {
    margin-top: 28px;
    padding: 28px;
}

.article-section p {
    margin-bottom: 24px;
    color: #e7e5e4;
    font-size: 17px;
}

.prose-panel {
    max-width: 880px;
}

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

.feature-list li {
    padding: 14px 16px;
    border-radius: 14px;
    color: #fef3c7;
    background: #292524;
    border: 1px solid rgba(251, 191, 36, 0.12);
}

.site-footer {
    padding: 42px 0 0;
    border-top: 1px solid rgba(251, 191, 36, 0.12);
    background: #1c1917;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 34px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 12px;
    color: #fef3c7;
}

.site-footer p {
    margin: 0;
    color: #a8a29e;
}

.site-footer a {
    display: block;
    margin: 7px 0;
    color: #d6d3d1;
}

.footer-bottom {
    padding: 16px;
    text-align: center;
    color: #a8a29e;
    background: #0c0a09;
}

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

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

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

    .menu-button {
        display: block;
    }

    .brand {
        font-size: 20px;
    }

    .hero {
        height: 68vh;
        min-height: 520px;
    }

    .hero-content {
        bottom: 86px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

    .inline-search,
    .filter-bar,
    .category-overview-head {
        flex-direction: column;
        align-items: stretch;
    }

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

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

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

    .detail-poster {
        width: min(310px, 80vw);
        margin: 0 auto;
    }

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

@media (max-width: 520px) {
    .container {
        width: min(100% - 22px, 1280px);
    }

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

    .scroll-row {
        grid-auto-columns: 82vw;
    }

    .search-panel,
    .page-hero,
    .category-overview,
    .article-section,
    .player-section {
        padding: 20px;
        border-radius: 18px;
    }

    .hero-kicker span {
        font-size: 12px;
    }

    .hero-actions a {
        width: 100%;
    }
}
