
:root {
    --bg: #15100a;
    --bg-soft: #241c12;
    --bg-card: rgba(43, 36, 25, 0.86);
    --bg-card-strong: rgba(58, 48, 33, 0.95);
    --line: rgba(168, 149, 113, 0.24);
    --text: #f5f2ed;
    --text-muted: #c4b49a;
    --text-soft: #a89571;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --amber-dark: #b45309;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.18), transparent 28rem),
        radial-gradient(circle at 90% 0%, rgba(90, 70, 54, 0.36), transparent 30rem),
        linear-gradient(135deg, #15100a 0%, #24180e 45%, #100b07 100%);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(21, 16, 10, 0.94);
    border-bottom: 1px solid rgba(168, 149, 113, 0.18);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand__mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #241609;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.26);
}

.brand__text {
    color: var(--amber-light);
    font-size: 24px;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-weight: 800;
    letter-spacing: 0.04em;
}

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

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

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

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 310px;
}

.top-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    color: var(--text);
    border: 1px solid rgba(168, 149, 113, 0.32);
    border-radius: 12px;
    background: rgba(36, 28, 18, 0.72);
    padding: 10px 14px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.top-search button,
.btn,
.play-cta,
.section-more,
.filter-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    color: #211407;
    background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
    padding: 10px 18px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.btn:hover,
.play-cta:hover,
.section-more:hover,
.filter-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.34);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(168, 149, 113, 0.28);
    border-radius: 12px;
    background: rgba(36, 28, 18, 0.84);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--amber-light);
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(168, 149, 113, 0.18);
    padding: 10px 24px 18px;
}

.mobile-link {
    display: block;
    padding: 10px 0;
    color: #e8e2d6;
    font-weight: 700;
}

.mobile-link.active {
    color: var(--amber-light);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: grid;
    align-items: center;
    border-bottom: 1px solid rgba(168, 149, 113, 0.16);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(21, 16, 10, 0.96) 0%, rgba(21, 16, 10, 0.74) 44%, rgba(21, 16, 10, 0.24) 100%),
        radial-gradient(circle at 72% 34%, rgba(245, 158, 11, 0.18), transparent 23rem);
    z-index: 1;
}

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

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

.hero-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
    opacity: 0.38;
}

.hero-slide__inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 74px 24px 64px;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.62fr);
    gap: 48px;
    align-items: center;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--amber-light);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero h1 span {
    color: var(--amber-light);
}

.hero p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #e8e2d6;
    font-size: 18px;
}

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

.btn.secondary {
    color: var(--amber-light);
    background: rgba(36, 28, 18, 0.72);
    border: 1px solid rgba(245, 158, 11, 0.42);
    box-shadow: none;
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.45), rgba(90, 70, 54, 0.18));
    box-shadow: var(--shadow);
    transform: rotate(1.5deg);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    background: rgba(58, 48, 33, 0.92);
}

.hero-poster__badge {
    position: absolute;
    left: 28px;
    bottom: 28px;
    color: #251706;
    background: var(--amber-light);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 900;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(232, 226, 214, 0.45);
    cursor: pointer;
}

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

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

.section.tight {
    padding-top: 36px;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: var(--amber-light);
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.section-heading h2 {
    font-size: clamp(28px, 3vw, 40px);
}

.section-heading p,
.page-title p {
    margin: 8px 0 0;
    color: var(--text-muted);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(168, 149, 113, 0.20);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    transition: transform 0.24s ease, border 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.58);
    box-shadow: var(--shadow);
}

.movie-card__poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #2b2419;
}

.movie-card__poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover .movie-card__poster img {
    transform: scale(1.06);
    opacity: 0.82;
}

.movie-card__play,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 900;
}

.movie-card__play {
    right: 12px;
    bottom: 12px;
    color: #231608;
    background: var(--amber-light);
    padding: 5px 10px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .movie-card__play {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #241609;
    background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.movie-card__body {
    padding: 16px;
}

.movie-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-soft);
    font-size: 12px;
    margin-bottom: 8px;
}

.movie-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.32;
    color: #fff7e9;
}

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

.movie-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    color: var(--amber-light);
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.18);
    padding: 2px 9px;
    font-size: 12px;
}

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

.category-pill {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    border: 1px solid rgba(168, 149, 113, 0.22);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

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

.category-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(21, 16, 10, 0.92), rgba(43, 36, 25, 0.62));
}

.category-pill:hover img {
    transform: scale(1.08);
    opacity: 0.32;
}

.category-pill span {
    position: relative;
    z-index: 1;
}

.category-pill strong {
    display: block;
    color: var(--amber-light);
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 28px;
    margin-bottom: 8px;
}

.category-pill em {
    color: var(--text-muted);
    font-style: normal;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.rank-panel,
.info-panel,
.filter-panel,
.detail-panel {
    border: 1px solid rgba(168, 149, 113, 0.20);
    border-radius: var(--radius-lg);
    background: rgba(36, 28, 18, 0.72);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.rank-panel {
    padding: 18px;
}

.rank-line {
    display: grid;
    grid-template-columns: auto 68px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-line:hover {
    background: rgba(245, 158, 11, 0.10);
    transform: translateX(4px);
}

.rank-line img {
    width: 68px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(58, 48, 33, 0.9);
}

.list-rank {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #251706;
    background: var(--amber-light);
    font-weight: 900;
}

.rank-line__content strong {
    display: block;
    color: #fff7e9;
    font-size: 17px;
}

.rank-line__content em {
    display: block;
    color: var(--text-soft);
    font-style: normal;
    font-size: 13px;
    margin-top: 4px;
}

.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 24px;
}

.page-title {
    border: 1px solid rgba(168, 149, 113, 0.20);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.18), transparent 22rem),
        rgba(36, 28, 18, 0.72);
    padding: clamp(28px, 5vw, 54px);
    box-shadow: var(--shadow);
}

.page-title h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px 160px auto;
    gap: 12px;
    margin: 28px 0 0;
}

.empty-message {
    display: none;
    color: var(--text-muted);
    border: 1px dashed rgba(168, 149, 113, 0.28);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
}

.detail-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 20px;
}

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

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

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

.player-shell {
    overflow: hidden;
    border: 1px solid rgba(168, 149, 113, 0.22);
    border-radius: var(--radius-lg);
    background: #080604;
    box-shadow: var(--shadow);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050403;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050403;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff7e9;
    background:
        linear-gradient(180deg, rgba(5, 4, 3, 0.18), rgba(5, 4, 3, 0.72)),
        rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-overlay__button {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #211407;
    background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.34);
}

.play-overlay strong {
    font-size: 20px;
}

.detail-title {
    padding: 24px;
    border-top: 1px solid rgba(168, 149, 113, 0.18);
    background: rgba(21, 16, 10, 0.76);
}

.detail-title h1 {
    font-size: clamp(30px, 4vw, 48px);
}

.detail-title p {
    color: var(--text-muted);
    margin: 12px 0 0;
}

.detail-side {
    position: sticky;
    top: 100px;
}

.cover-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(168, 149, 113, 0.22);
    background: var(--bg-card);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.cover-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: rgba(58, 48, 33, 0.92);
}

.cover-card__body {
    padding: 18px;
}

.meta-list {
    display: grid;
    gap: 10px;
    color: var(--text-muted);
}

.meta-list span {
    color: var(--amber-light);
    font-weight: 800;
    margin-right: 6px;
}

.detail-panel {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 60px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

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

.article-box,
.side-box {
    border: 1px solid rgba(168, 149, 113, 0.20);
    border-radius: var(--radius-lg);
    background: rgba(36, 28, 18, 0.72);
    padding: 26px;
}

.article-box h2,
.side-box h2 {
    color: var(--amber-light);
    font-size: 24px;
    margin: 0 0 14px;
    font-family: "Noto Serif SC", "Songti SC", serif;
}

.article-box p {
    color: #e8e2d6;
    margin: 0 0 20px;
}

.side-box {
    display: grid;
    gap: 12px;
}

.related-mini {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.related-mini:hover {
    background: rgba(245, 158, 11, 0.10);
}

.related-mini img {
    width: 74px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(58, 48, 33, 0.92);
}

.related-mini strong {
    display: block;
    color: #fff7e9;
    line-height: 1.35;
}

.related-mini em {
    display: block;
    color: var(--text-soft);
    font-style: normal;
    font-size: 13px;
    margin-top: 4px;
}

.site-footer {
    border-top: 1px solid rgba(168, 149, 113, 0.18);
    background: rgba(12, 9, 6, 0.72);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px 30px;
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.8fr;
    gap: 28px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p,
.site-footer a,
.site-footer h2 {
    margin: 0;
}

.site-footer p {
    color: var(--text-muted);
}

.site-footer h2 {
    color: var(--amber-light);
    font-size: 18px;
    margin-bottom: 14px;
}

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

.footer-links a {
    color: #e8e2d6;
    border: 1px solid rgba(168, 149, 113, 0.22);
    border-radius: 999px;
    padding: 6px 12px;
    transition: color 0.2s ease, border 0.2s ease;
}

.footer-links a:hover {
    color: var(--amber-light);
    border-color: rgba(245, 158, 11, 0.58);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 32px;
    color: var(--text-soft);
    border-top: 1px solid rgba(168, 149, 113, 0.14);
}

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

    .top-search {
        min-width: 240px;
    }

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

    .detail-side {
        position: static;
    }
}

@media (max-width: 860px) {
    .site-header__inner {
        min-height: 66px;
        padding: 0 16px;
    }

    .nav-links,
    .top-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

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

    .brand__text {
        font-size: 20px;
    }

    .hero {
        min-height: auto;
    }

    .hero-slide__inner {
        grid-template-columns: 1fr;
        padding: 56px 18px 74px;
    }

    .hero-poster {
        max-width: 320px;
        margin: 0 auto;
    }

    .section,
    .page-hero,
    .detail-hero,
    .detail-panel {
        padding-left: 18px;
        padding-right: 18px;
    }

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

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

    .filter-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .grid {
        grid-template-columns: 1fr;
    }

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

    .movie-card {
        display: grid;
        grid-template-columns: 124px minmax(0, 1fr);
    }

    .movie-card__poster img {
        height: 100%;
        min-height: 176px;
    }

    .brand__mark {
        width: 38px;
        height: 38px;
    }

    .rank-line {
        grid-template-columns: auto 56px minmax(0, 1fr);
    }

    .rank-line img {
        width: 56px;
        height: 76px;
    }
}
