:root {
    --bg: #080b12;
    --panel: #111827;
    --panel-soft: rgba(17, 24, 39, 0.72);
    --text: #f8fafc;
    --muted: #a8b3c7;
    --line: rgba(148, 163, 184, 0.16);
    --amber: #f59e0b;
    --orange: #ea580c;
    --red: #ef4444;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 32rem), var(--bg);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
    z-index: -1;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(8, 11, 18, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand span:last-child {
    background: linear-gradient(90deg, var(--amber), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #111827;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.26);
}

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

.nav-link {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    width: min(360px, 34vw);
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.76);
}

.header-search input,
.wide-search input,
.filter-bar input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search input {
    padding: 10px 14px;
}

.header-search button,
.wide-search button {
    border: 0;
    color: #111827;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
}

.header-search button {
    padding: 10px 16px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.85);
}

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #dbe4f0;
    background: rgba(255, 255, 255, 0.04);
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    display: none;
    position: absolute;
    inset: 0;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.68) 44%, rgba(2, 6, 23, 0.22) 100%), linear-gradient(0deg, #080b12 0%, rgba(8, 11, 18, 0) 42%);
}

.hero-content {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    padding-top: 40px;
}

.hero-copy {
    width: min(680px, 100%);
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background: rgba(8, 11, 18, 0.48);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-info h1 {
    margin: 14px 0 16px;
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero-copy h1,
.hero-copy h2 {
    font-size: clamp(2.6rem, 7vw, 5.8rem);
}

.hero-copy p {
    max-width: 620px;
    margin: 0;
    color: #d7dee9;
    font-size: 1.08rem;
}

.hero-tags,
.detail-meta,
.mini-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin: 22px 0 26px;
}

.hero-tags span,
.detail-meta span,
.mini-tags span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.1);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-actions,
.category-overview-head,
.section-heading,
.filter-bar,
.search-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #111827;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.26);
}

.btn.ghost {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.72);
}

.btn.small {
    min-height: 38px;
    padding: 0 15px;
    font-size: 0.9rem;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 5;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
    font-size: 1.8rem;
    line-height: 1;
}

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

.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.search-panel {
    margin-top: -44px;
    position: relative;
    z-index: 6;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel h2 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.search-panel p,
.category-overview-card p,
.page-hero p,
.movie-card p,
.horizontal-card p,
.article-section p,
.footer-grid p {
    color: var(--muted);
}

.wide-search {
    display: flex;
    width: 100%;
    margin: 20px 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(8, 11, 18, 0.72);
}

.wide-search input {
    padding: 16px 18px;
}

.wide-search button {
    min-width: 110px;
    padding: 0 22px;
}

.category-chips,
.footer-category-links,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-chips a,
.quick-links a,
.side-link {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.category-chips a:hover,
.quick-links a:hover,
.side-link:hover {
    color: var(--amber);
    border-color: rgba(245, 158, 11, 0.44);
}

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

.band-section {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.5), rgba(15, 23, 42, 0.85));
    border-block: 1px solid var(--line);
}

.band-section.soft {
    background: rgba(15, 23, 42, 0.46);
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    line-height: 1.15;
}

.section-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.12);
}

.section-more {
    color: var(--amber);
    font-weight: 900;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.72);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.52);
    background: rgba(17, 24, 39, 0.92);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: #101827;
}

.movie-card.large .poster-link {
    aspect-ratio: 16 / 9;
}

.movie-card img,
.horizontal-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover img,
.horizontal-card:hover img {
    transform: scale(1.08);
}

.play-mark,
.horizontal-cover span {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%) scale(0.86);
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #111827;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #111827;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
}

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

.movie-meta,
.line-meta {
    color: #94a3b8;
    font-size: 0.83rem;
    font-weight: 700;
}

.movie-card h3,
.horizontal-card h3 {
    margin: 7px 0 8px;
    color: #fff;
    line-height: 1.28;
}

.movie-card h3 {
    min-height: 2.55em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p,
.horizontal-card p {
    margin: 0 0 12px;
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 28px;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.62);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.horizontal-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.44);
}

.horizontal-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 15px;
    background: #101827;
}

.rank-dot {
    display: inline-grid;
    place-items: center;
    width: 25px;
    height: 25px;
    margin-right: 7px;
    border-radius: 50%;
    color: #111827;
    background: var(--amber);
    font-weight: 900;
}

.rank-panel {
    align-self: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(17, 24, 39, 0.72);
    box-shadow: var(--shadow);
}

.compact-heading h2 {
    font-size: 1.45rem;
}

.small-list .horizontal-card {
    grid-template-columns: 86px minmax(0, 1fr);
}

.small-list .horizontal-card p {
    display: none;
}

.page-main {
    padding: 34px 0 72px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.92) 45%, rgba(17, 24, 39, 0.78));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    font-size: 1.05rem;
}

.category-overview-list {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(17, 24, 39, 0.66);
}

.category-overview-card h2 {
    margin: 0 0 6px;
    font-size: 1.7rem;
}

.category-overview-card p {
    margin: 0;
}

.overview-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 22px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #a7b4c8;
    font-size: 0.92rem;
}

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

.filter-bar {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.7);
}

.filter-bar input {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.6);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: 34px 0 70px;
    background: #020617;
}

.detail-bg,
.detail-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-bg {
    object-fit: cover;
    filter: blur(18px) saturate(1.12) brightness(0.58);
    transform: scale(1.08);
}

.detail-shade {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.42)), linear-gradient(0deg, #080b12, transparent 48%);
}

.detail-hero-inner {
    position: relative;
}

.detail-breadcrumb {
    margin-bottom: 30px;
}

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

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4.15;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: #111827;
    box-shadow: var(--shadow);
}

.detail-info h1 {
    font-size: clamp(2.4rem, 6vw, 5rem);
}

.lead {
    max-width: 850px;
    color: #e5e7eb;
    font-size: 1.12rem;
}

.detail-meta {
    margin: 20px 0;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding-top: 42px;
}

.player-section,
.article-section,
.side-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(17, 24, 39, 0.72);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
}

.player-section {
    padding: 20px;
}

.player-section h2,
.article-section h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 1.45rem;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: #000;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #111827;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.55));
    z-index: 3;
}

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

.big-play {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.34);
    font-size: 2.2rem;
    padding-left: 5px;
}

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

.article-section p {
    margin: 0;
    font-size: 1.03rem;
}

.detail-side {
    display: grid;
    gap: 18px;
    align-self: start;
    position: sticky;
    top: 92px;
}

.side-card {
    padding: 22px;
}

.side-card dl {
    margin: 0;
    display: grid;
    gap: 14px;
}

.side-card dl div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.side-card dt {
    color: #94a3b8;
}

.side-card dd {
    margin: 0;
    color: #e5e7eb;
}

.side-link {
    display: block;
    margin-bottom: 10px;
    border-radius: 14px;
}

.related-section {
    padding-top: 52px;
}

.search-page-form {
    max-width: 780px;
}

.search-results-head {
    margin-bottom: 22px;
}

.search-results-head h2 {
    margin: 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.92);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.65fr 1.1fr;
    gap: 42px;
    padding: 48px 0;
}

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

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.footer-grid a:not(.brand) {
    display: block;
    margin-bottom: 9px;
    color: #cbd5e1;
}

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

.footer-category-links a {
    display: inline-flex !important;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid var(--line);
    color: #64748b;
    text-align: center;
}

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

@media (max-width: 1040px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

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

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

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

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

    .detail-side {
        position: static;
    }
}

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

    .header-inner {
        min-height: 62px;
    }

    .brand {
        font-size: 1.08rem;
    }

    .hero-carousel,
    .hero-content {
        min-height: 620px;
    }

    .hero-copy {
        padding: 24px;
        border-radius: 24px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: clamp(2.3rem, 13vw, 4.2rem);
    }

    .search-panel {
        margin-top: -30px;
        padding: 20px;
    }

    .wide-search {
        display: grid;
    }

    .wide-search button {
        min-height: 48px;
    }

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

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

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

    .section-heading,
    .filter-bar,
    .category-overview-head,
    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .horizontal-card {
        grid-template-columns: 102px minmax(0, 1fr);
    }

    .page-hero,
    .category-overview-card {
        padding: 24px;
        border-radius: 24px;
    }

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

    .detail-poster {
        width: min(260px, 78vw);
    }

    .big-play {
        width: 72px;
        height: 72px;
        font-size: 1.8rem;
    }
}
