* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #0c0a09;
    --panel: #1c1917;
    --panel-soft: #292524;
    --panel-line: #44403c;
    --text: #fafaf9;
    --muted: #a8a29e;
    --muted-2: #78716c;
    --amber: #d97706;
    --amber-soft: #f59e0b;
    --orange: #ea580c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, rgba(146, 64, 14, 0.16), transparent 38%), var(--bg);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
    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: 50;
    background: rgba(28, 25, 23, 0.92);
    border-bottom: 1px solid rgba(68, 64, 60, 0.8);
    backdrop-filter: blur(18px);
}

.nav-shell,
.hero-inner,
.content-section,
.footer-grid,
.footer-bottom,
.sub-hero,
.detail-top {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-shell {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--text);
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: #ffffff;
    box-shadow: 0 12px 34px rgba(217, 119, 6, 0.35);
    font-size: 15px;
}

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

.desktop-nav a,
.mobile-panel a {
    color: #d6d3d1;
    font-size: 15px;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
    color: var(--amber-soft);
}

.quick-search,
.mobile-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-search input,
.mobile-search input,
.search-page-form input,
.filter-search input,
.filter-panel select {
    border: 1px solid rgba(68, 64, 60, 0.85);
    background: rgba(12, 10, 9, 0.72);
    color: var(--text);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-search input {
    width: 180px;
    padding: 9px 12px;
}

.quick-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-search input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.9);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
    background: rgba(28, 25, 23, 0.95);
}

.quick-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    padding: 9px 14px;
    border-radius: 12px;
    color: #ffffff;
    background: var(--amber);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.quick-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.primary-btn:hover {
    background: #b45309;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(68, 64, 60, 0.8);
    border-radius: 12px;
    background: rgba(41, 37, 36, 0.82);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(68, 64, 60, 0.7);
    padding: 16px;
    background: rgba(28, 25, 23, 0.98);
}

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.mobile-search input,
.search-page-form input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(135deg, #1c1917 0%, #292524 42%, #78350f 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 18%, rgba(245, 158, 11, 0.22), transparent 30%), radial-gradient(circle at 82% 70%, rgba(234, 88, 12, 0.2), transparent 34%);
    opacity: 0.84;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(58px);
    opacity: 0.32;
}

.hero-glow-a {
    top: 90px;
    left: 8vw;
    width: 260px;
    height: 260px;
    background: var(--amber);
}

.hero-glow-b {
    right: 6vw;
    bottom: 70px;
    width: 360px;
    height: 360px;
    background: var(--orange);
}

.hero-inner {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
}

.hero-slide {
    display: none;
    width: 100%;
    align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
    gap: 46px;
    animation: slideFade 0.55s ease both;
}

.hero-slide.is-active {
    display: grid;
}

@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.15);
    color: var(--amber-soft);
    border: 1px solid rgba(245, 158, 11, 0.24);
    font-size: 13px;
    font-weight: 800;
}

.hero-copy h1,
.sub-hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy p,
.sub-hero p {
    margin: 0 0 28px;
    max-width: 760px;
    color: #d6d3d1;
    font-size: clamp(17px, 2.2vw, 23px);
}

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

.hero-tags span,
.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #d6d3d1;
    background: rgba(41, 37, 36, 0.72);
    border: 1px solid rgba(68, 64, 60, 0.8);
    font-size: 12px;
}

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

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

.primary-btn {
    background: var(--amber);
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(217, 119, 6, 0.24);
}

.ghost-btn,
.section-more {
    background: rgba(41, 37, 36, 0.82);
    color: #f5f5f4;
    border: 1px solid rgba(68, 64, 60, 0.82);
}

.ghost-btn:hover,
.section-more:hover {
    border-color: rgba(245, 158, 11, 0.55);
    transform: translateY(-1px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(28, 25, 23, 0.7);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-4px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.62);
    color: #fde68a;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-control {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hero-control button,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-control > button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(41, 37, 36, 0.85);
    color: var(--text);
    font-size: 28px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(214, 211, 209, 0.38);
}

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

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

.band-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: rgba(28, 25, 23, 0.42);
    border-top: 1px solid rgba(68, 64, 60, 0.42);
    border-bottom: 1px solid rgba(68, 64, 60, 0.42);
}

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

.section-head h2 {
    margin: 12px 0 4px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(28, 25, 23, 0.86);
    border: 1px solid rgba(68, 64, 60, 0.55);
    transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.72);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    background: #292524;
    aspect-ratio: 2 / 3;
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent);
}

.year-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    color: #fde68a;
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    left: 10px;
    right: auto;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.play-bubble {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.9);
    color: #ffffff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.74);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .play-bubble {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-info {
    display: block;
    padding: 15px;
}

.movie-info strong {
    display: block;
    min-height: 1.5em;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-info em {
    display: -webkit-box;
    min-height: 42px;
    margin: 7px 0 10px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted-2);
    font-size: 12px;
}

.tag-row {
    margin-top: 11px;
}

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

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

.category-tile,
.callout-card,
.text-card {
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(28, 25, 23, 0.96), rgba(41, 37, 36, 0.78));
    border: 1px solid rgba(68, 64, 60, 0.6);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.category-tile {
    min-height: 148px;
    padding: 24px;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.72);
}

.category-tile strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
}

.category-tile span {
    color: var(--muted);
    font-size: 14px;
}

.callout-section {
    padding-top: 56px;
}

.callout-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 34px;
}

.callout-card h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
}

.callout-card p {
    margin: 0;
    color: var(--muted);
}

.sub-hero {
    padding: 82px 0 34px;
}

.sub-hero h1 {
    max-width: 860px;
}

.ranking-hero {
    padding-bottom: 48px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 170px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid rgba(68, 64, 60, 0.58);
    border-radius: 18px;
    background: rgba(28, 25, 23, 0.7);
}

.filter-search input,
.filter-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
}

.detail-top {
    padding: 34px 0 44px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
}

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

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

.player-card,
.detail-side {
    border-radius: 24px;
    background: rgba(28, 25, 23, 0.9);
    border: 1px solid rgba(68, 64, 60, 0.65);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    background: #000000;
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38));
}

.player-overlay.is-hidden {
    display: none;
}

.player-play {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 20px 52px rgba(217, 119, 6, 0.38);
    font-size: 28px;
}

.player-overlay strong {
    max-width: min(80%, 620px);
    font-size: clamp(22px, 4vw, 38px);
    line-height: 1.18;
}

.player-caption {
    padding: 24px;
}

.player-caption h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: -0.03em;
}

.player-caption p {
    margin: 0;
    color: var(--muted);
}

.detail-side {
    position: sticky;
    top: 96px;
    padding: 18px;
}

.detail-side img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    background: #292524;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.detail-meta span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 12px;
    background: rgba(41, 37, 36, 0.9);
    color: #fde68a;
    font-size: 13px;
    font-weight: 800;
}

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

.primary-btn.full {
    width: 100%;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-top: 18px;
}

.text-card {
    padding: 28px;
}

.text-card h2 {
    margin: 12px 0 12px;
    font-size: 26px;
}

.text-card p {
    margin: 0;
    color: #d6d3d1;
}

.compact-text {
    grid-column: 1 / -1;
}

.info-list {
    margin: 0;
    display: grid;
    gap: 12px;
}

.info-list div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(68, 64, 60, 0.55);
}

.info-list dt {
    color: var(--muted-2);
}

.info-list dd {
    margin: 0;
    color: #e7e5e4;
}

.site-footer {
    margin-top: 60px;
    border-top: 1px solid rgba(68, 64, 60, 0.66);
    background: #09090b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 32px;
    padding: 46px 0 30px;
}

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

.site-footer p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #e7e5e4;
}

.site-footer a:not(.brand) {
    display: block;
    margin: 8px 0;
    color: var(--muted);
}

.site-footer a:hover {
    color: var(--amber-soft);
}

.footer-bottom {
    padding: 20px 0 34px;
    color: var(--muted-2);
    font-size: 14px;
}

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

.empty-state {
    grid-column: 1 / -1;
    padding: 42px;
    border-radius: 20px;
    text-align: center;
    background: rgba(28, 25, 23, 0.78);
    color: var(--muted);
}

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

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

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

    .detail-side {
        position: static;
        display: grid;
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 18px;
    }

    .detail-side .primary-btn,
    .detail-side .detail-tags,
    .detail-side .detail-meta {
        grid-column: 2;
    }
}

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

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

    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 58px 0 92px;
    }

    .hero-slide.is-active {
        display: grid;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-poster {
        width: min(300px, 86vw);
        margin: 0 auto;
    }

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

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

@media (max-width: 620px) {
    .nav-shell,
    .hero-inner,
    .content-section,
    .footer-grid,
    .footer-bottom,
    .sub-hero,
    .detail-top {
        width: min(100% - 24px, 1180px);
    }

    .brand span:last-child {
        font-size: 16px;
    }

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

    .section-head {
        display: block;
    }

    .section-more {
        margin-top: 16px;
    }

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

    .movie-info {
        padding: 12px;
    }

    .movie-info em {
        font-size: 12px;
    }

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

    .callout-card {
        display: block;
    }

    .callout-card .primary-btn {
        margin-top: 20px;
    }

    .sub-hero {
        padding-top: 52px;
    }

    .detail-side {
        display: block;
    }

    .detail-side img {
        max-width: 220px;
        margin: 0 auto;
    }

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

    .info-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
