:root {
    --bg: #fafaf9;
    --panel: #ffffff;
    --panel-soft: #fff7ed;
    --text: #292524;
    --muted: #78716c;
    --line: rgba(120, 113, 108, 0.22);
    --amber: #d97706;
    --amber-dark: #92400e;
    --amber-soft: #fbbf24;
    --stone: #1c1917;
    --shadow: 0 20px 50px rgba(28, 25, 23, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.98), rgba(28, 25, 23, 0.96));
    color: #fff;
    box-shadow: 0 12px 30px rgba(28, 25, 23, 0.24);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.34);
}

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

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

.main-nav a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fde68a;
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.wide-search input,
.hero-search-panel input,
.filter-toolbar input,
.filter-toolbar select {
    border: 1px solid rgba(255, 255, 255, 0.22);
    outline: none;
    border-radius: 999px;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    min-width: 220px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input::placeholder,
.wide-search input::placeholder,
.hero-search-panel input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search input:focus,
.wide-search input:focus,
.hero-search-panel input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
    border-color: #fcd34d;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
    background: rgba(255, 255, 255, 0.18);
}

.header-search button,
.wide-search button,
.hero-search-panel button,
.filter-toolbar button,
.primary-button,
.ghost-button,
.section-more,
.text-link {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button,
.wide-search button,
.hero-search-panel button,
.primary-button {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 11px 18px;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
}

.header-search button:hover,
.wide-search button:hover,
.hero-search-panel button:hover,
.primary-button:hover,
.section-more:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 9px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    border-radius: 2px;
}

.hero {
    position: relative;
    min-height: 760px;
    background: #1c1917;
    color: #fff;
}

.hero-stage {
    position: relative;
    min-height: 680px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    background-position: center;
    background-size: cover;
    transition: opacity 0.8s ease, transform 1.6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay,
.detail-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.28), transparent 35%),
        linear-gradient(90deg, rgba(28, 25, 23, 0.95), rgba(28, 25, 23, 0.62) 48%, rgba(28, 25, 23, 0.88));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 150px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d97706;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #fcd34d;
}

.hero-content h1 {
    max-width: 760px;
    margin: 16px 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(17px, 2.2vw, 22px);
}

.hero-tags,
.detail-genres,
.mini-tags,
.tag-links,
.hero-categories,
.category-cloud,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-genres span,
.mini-tags span,
.tag-links a,
.hero-categories a,
.category-cloud a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

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

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    padding: 11px 18px;
    background: rgba(255, 255, 255, 0.08);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.16);
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dot.active {
    width: 34px;
    border-radius: 99px;
    background: #f59e0b;
}

.hero-search-panel {
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: 34px;
    width: min(1120px, calc(100% - 32px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    background: rgba(28, 25, 23, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
    transform: translateX(-50%);
}

.hero-search-panel form,
.wide-search {
    display: flex;
    gap: 12px;
}

.hero-search-panel input,
.wide-search input {
    flex: 1;
}

.hero-categories {
    margin-top: 14px;
}

.hero-categories a:hover,
.category-cloud a:hover,
.tag-links a:hover {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.content-section {
    width: min(1240px, calc(100% - 32px));
    margin: 56px auto;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: -18px;
}

.feature-card {
    min-height: 120px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow);
}

.feature-card span {
    color: var(--amber);
    font-weight: 900;
}

.feature-card strong {
    display: block;
    margin-top: 8px;
    font-size: 21px;
}

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

.section-heading h2,
.archive-hero h1,
.detail-info h1,
.category-panel h2,
.story-panel h2 {
    margin: 6px 0 0;
    color: var(--stone);
    line-height: 1.12;
}

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

.section-more,
.text-link {
    display: inline-flex;
    color: #fff;
    background: var(--stone);
    padding: 10px 16px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 14px 34px rgba(28, 25, 23, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(217, 119, 6, 0.32);
    box-shadow: 0 22px 55px rgba(28, 25, 23, 0.14);
    transform: translateY(-6px);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #292524, #78350f);
}

.poster-frame img,
.detail-poster img,
.ranking-cover img,
.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster-frame img.is-missing,
.detail-poster img.is-missing,
.ranking-cover img.is-missing,
.category-covers img.is-missing {
    opacity: 0;
}

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

.poster-shine {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.rank-badge {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f59e0b;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.34);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--amber-dark);
    font-size: 12px;
    font-weight: 900;
}

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

.card-body h3 a:hover,
.ranking-content h3 a:hover {
    color: var(--amber-dark);
}

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

.card-summary.compact {
    min-height: 48px;
}

.mini-tags span {
    background: #fff7ed;
    color: #9a3412;
    padding: 5px 9px;
    font-size: 12px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    gap: 28px;
    align-items: start;
}

.compact-heading {
    margin-bottom: 18px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 84px 52px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
}

.ranking-cover {
    overflow: hidden;
    width: 84px;
    height: 112px;
    border-radius: 16px;
    background: linear-gradient(145deg, #292524, #78350f);
}

.ranking-number {
    color: var(--amber);
    font-size: 34px;
    font-weight: 900;
    text-align: center;
}

.ranking-content h3 {
    margin: 4px 0 6px;
    font-size: 20px;
}

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

.category-panel,
.story-panel,
.info-panel,
.category-card-large {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.category-panel {
    position: sticky;
    top: 96px;
    padding: 28px;
}

.category-panel p {
    color: var(--muted);
}

.category-cloud a,
.tag-links a {
    background: #fff7ed;
    color: #9a3412;
}

.archive-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 38px auto 0;
    padding: 54px;
    overflow: hidden;
    border-radius: 32px;
    background:
        radial-gradient(circle at 82% 10%, rgba(245, 158, 11, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow);
}

.archive-hero h1 {
    font-size: clamp(36px, 6vw, 60px);
}

.archive-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.filter-toolbar input,
.filter-toolbar select {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

.filter-toolbar button {
    padding: 11px 18px;
    background: var(--stone);
    color: #fff;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    overflow: hidden;
    min-height: 180px;
    border-radius: 18px;
    background: linear-gradient(145deg, #292524, #78350f);
}

.category-card-large h2 {
    margin: 6px 0 8px;
}

.category-card-large p {
    color: var(--muted);
}

.ranking-hero {
    background:
        radial-gradient(circle at 72% 12%, rgba(251, 191, 36, 0.22), transparent 34%),
        linear-gradient(135deg, #292524, #78350f);
    color: #fff;
}

.ranking-hero h1 {
    color: #fff;
}

.ranking-hero p {
    color: rgba(255, 255, 255, 0.76);
}

.ranking-page-list .ranking-item {
    grid-template-columns: 120px 70px minmax(0, 1fr);
}

.ranking-page-list .ranking-cover {
    width: 120px;
    height: 160px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #fff;
    background: #1c1917;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(3px);
    transform: scale(1.04);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 78px 0;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #292524, #78350f);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 18px;
}

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

.detail-info .eyebrow {
    color: #fcd34d;
}

.detail-info h1 {
    color: #fff;
    font-size: clamp(40px, 6vw, 70px);
    letter-spacing: -0.04em;
}

.lead-text {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
}

.detail-meta span {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.1);
}

.detail-genres span {
    background: rgba(251, 191, 36, 0.18);
    color: #fde68a;
}

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

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 20px 45px rgba(217, 119, 6, 0.34);
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.54);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.player-status.show {
    opacity: 1;
}

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

.story-panel,
.info-panel {
    padding: 30px;
}

.story-panel p {
    color: #57534e;
    font-size: 17px;
}

.story-panel .second {
    margin-top: 26px;
}

.info-panel h2 {
    margin-top: 0;
}

.info-panel dl {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
}

.info-panel dt {
    color: var(--muted);
    font-weight: 800;
}

.info-panel dd {
    margin: 0;
    font-weight: 700;
}

.tag-links {
    margin-top: 20px;
}

.site-footer {
    margin-top: 80px;
    padding: 52px 0 26px;
    background: #1c1917;
    color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 36px;
}

.footer-brand {
    color: #fff;
    font-size: 24px;
}

.site-footer h2 {
    color: #fff;
    font-size: 18px;
}

.footer-links {
    flex-direction: column;
    gap: 8px;
}

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

.copyright {
    width: min(1240px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.52);
}

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

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

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

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

    .category-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .header-inner {
        flex-wrap: wrap;
        min-height: auto;
        padding: 14px 0;
    }

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

    .main-nav {
        display: none;
        width: 100%;
        margin-left: 0;
        padding-top: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.08);
    }

    .hero,
    .hero-stage {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 96px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-search-panel form,
    .wide-search,
    .filter-toolbar {
        flex-direction: column;
    }

    .hero-search-panel input,
    .wide-search input,
    .filter-toolbar input,
    .filter-toolbar select {
        width: 100%;
        min-width: 0;
    }

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

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

    .detail-wrap {
        grid-template-columns: 1fr;
        padding: 44px 0 86px;
    }

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

    .watch-section {
        margin-top: -56px;
    }

    .archive-hero {
        padding: 34px 22px;
    }

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

@media (max-width: 520px) {
    .brand-text {
        font-size: 18px;
    }

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

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

    .ranking-item,
    .ranking-page-list .ranking-item {
        grid-template-columns: 78px 42px minmax(0, 1fr);
    }

    .ranking-cover,
    .ranking-page-list .ranking-cover {
        width: 78px;
        height: 104px;
    }

    .ranking-number {
        font-size: 26px;
    }

    .content-section {
        margin: 38px auto;
    }
}
