/* Static movie site styles inspired by the uploaded dark stone and amber visual system. */
:root {
    color-scheme: dark;
    --bg: #15120f;
    --bg-soft: #1f1a15;
    --panel: rgba(41, 37, 36, 0.82);
    --panel-solid: #292524;
    --line: rgba(245, 158, 11, 0.18);
    --text: #fff7ed;
    --muted: #c7b8a5;
    --faint: #8f8173;
    --accent: #f59e0b;
    --accent-strong: #d97706;
    --accent-soft: rgba(245, 158, 11, 0.16);
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
        linear-gradient(180deg, #1c1917 0%, #120f0c 46%, #0c0a09 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(28, 25, 23, 0.88);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #1c1200;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    letter-spacing: 0.04em;
}

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

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

.nav-link,
.mobile-nav-link {
    padding: 10px 15px;
    border-radius: 14px;
    color: #e7d8c7;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.18);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(68, 64, 60, 0.82);
}

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

.hero {
    position: relative;
    min-height: 70vh;
    height: 720px;
    overflow: hidden;
    background: #0c0a09;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transform: scale(1.03);
}

.hero-image.image-missing {
    display: none;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.96) 0%, rgba(12, 10, 9, 0.72) 42%, rgba(12, 10, 9, 0.24) 100%),
        linear-gradient(0deg, rgba(12, 10, 9, 1) 0%, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 60px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1,
.subpage-hero h1,
.detail-info h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(40px, 7vw, 88px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 680px;
    margin: 24px 0 0;
    color: #eadccb;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.detail-info .primary-button {
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.hero-search button,
.global-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.hero-search button,
.global-search button {
    color: #1c1200;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 16px 30px rgba(245, 158, 11, 0.28);
}

.ghost-button {
    margin-left: 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.hero-search button:hover,
.global-search button:hover {
    transform: translateY(-2px);
}

.hero-panel {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.hero-search {
    width: min(560px, 100%);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(28, 25, 23, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-search label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.hero-search div,
.global-search {
    display: flex;
    gap: 10px;
}

.hero-search input,
.global-search input,
.toolbar input,
.toolbar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.toolbar select {
    max-width: 180px;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

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

.hero-dot.active {
    width: 42px;
    background: var(--accent);
}

.content-section,
.subpage-hero,
.breadcrumb,
.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

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

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

.section-heading h2,
.rank-heading h2,
.detail-text h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
}

.section-heading p,
.subpage-hero p,
.detail-text p,
.player-note,
.category-overview-body p,
.category-card p {
    color: var(--muted);
}

.section-more,
.rank-heading a {
    color: var(--accent);
    font-weight: 800;
}

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

.category-card,
.category-overview-card a,
.rank-panel,
.movie-card,
.player-box,
.detail-text,
.toolbar,
.global-search,
.search-status,
.ranking-table {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(41, 37, 36, 0.9), rgba(28, 25, 23, 0.9));
    box-shadow: var(--shadow);
}

.category-card {
    min-height: 184px;
    padding: 22px;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card a:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.38);
}

.category-card strong {
    display: block;
    font-size: 22px;
}

.category-card span,
.category-overview-body span {
    display: inline-flex;
    margin: 10px 0;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 13px;
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.movie-link {
    display: grid;
    height: 100%;
}

.poster-frame,
.detail-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background:
        radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.22), transparent 40%),
        linear-gradient(135deg, #292524, #0c0a09);
}

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

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

.poster-fallback::after {
    content: "封面";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
    letter-spacing: 0.2em;
}

.quality-badge,
.play-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.quality-badge {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    color: #1c1200;
    background: var(--accent);
}

.play-badge {
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.54);
    backdrop-filter: blur(12px);
}

.movie-info {
    padding: 14px;
}

.movie-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.movie-info p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--faint);
    font-size: 12px;
}

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

.tag-row span {
    padding: 3px 8px;
    border-radius: 999px;
    color: #f8e4c2;
    background: rgba(245, 158, 11, 0.11);
    font-size: 12px;
}

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

.rank-panel {
    position: sticky;
    top: 94px;
    border-radius: var(--radius-md);
    padding: 20px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.rank-num {
    color: var(--accent);
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    color: #fde68a;
}

.subpage-hero {
    padding: 86px 0 30px;
}

.subpage-hero p {
    max-width: 760px;
    font-size: 18px;
}

.category-overview-card a {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 170px;
    background: #1c1917;
}

.category-covers img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.category-overview-body {
    padding: 20px;
}

.category-overview-body h2 {
    margin: 0;
}

.toolbar {
    position: sticky;
    top: 86px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    padding: 14px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(18px);
}

.toolbar span {
    color: var(--muted);
    white-space: nowrap;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 28px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--accent);
}

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

.detail-poster {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.detail-info h1 {
    font-size: clamp(40px, 6vw, 74px);
}

.detail-one-line {
    max-width: 820px;
    color: #eadccb;
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #f8e4c2;
    background: rgba(255, 255, 255, 0.08);
}

.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.72));
    cursor: pointer;
}

.player-overlay span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #1c1200;
    background: var(--accent);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.35);
    font-size: 34px;
}

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

.player-section.is-playing .player-overlay {
    display: none;
}

.player-note {
    margin: 12px 0 0;
    font-size: 14px;
}

.detail-text {
    margin-top: 50px;
    padding: 28px;
    border-radius: var(--radius-md);
}

.detail-text h2 + p {
    margin-top: 10px;
}

.detail-text p + h2 {
    margin-top: 28px;
}

.global-search {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: var(--radius-md);
}

.search-status {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 16px;
    color: var(--muted);
}

.ranking-table {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.ranking-head,
.ranking-row {
    display: grid;
    grid-template-columns: 70px minmax(180px, 1fr) 130px 100px 100px 120px;
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
}

.ranking-head {
    color: var(--accent);
    background: rgba(245, 158, 11, 0.09);
    font-weight: 900;
}

.ranking-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #eadccb;
}

.ranking-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ranking-index {
    color: var(--accent);
    font-size: 20px;
    font-weight: 900;
}

.sitemap-list ul {
    columns: 4;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sitemap-list li {
    break-inside: avoid;
    margin-bottom: 8px;
}

.sitemap-list a {
    color: var(--muted);
}

.sitemap-list a:hover {
    color: var(--accent);
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0c0a09;
}

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

.footer-grid p {
    max-width: 540px;
    color: var(--muted);
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

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

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--accent);
}

.hidden-by-filter {
    display: none !important;
}

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

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

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

    .rank-panel {
        position: static;
    }
}

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

    .menu-button {
        display: inline-flex;
    }

    .hero {
        height: 680px;
        min-height: 620px;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(12, 10, 9, 1) 0%, rgba(12, 10, 9, 0.76) 70%, rgba(12, 10, 9, 0.5) 100%);
    }

    .hero-content {
        justify-content: start;
        padding-top: 110px;
    }

    .hero-panel,
    .hero-search div,
    .global-search,
    .toolbar,
    .section-heading,
    .rank-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-dots {
        justify-content: center;
    }

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

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

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

    .ranking-head {
        display: none;
    }

    .ranking-row {
        grid-template-columns: 50px 1fr;
    }

    .ranking-row span:nth-child(n+3) {
        display: none;
    }

    .sitemap-list ul {
        columns: 1;
    }
}

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

    .hero-actions {
        display: grid;
        gap: 10px;
    }

    .ghost-button {
        margin-left: 0;
    }
}
