@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap");

:root {
    --bg: #0a0e13;
    --bg-soft: #111823;
    --zen-950: #2a251f;
    --zen-900: #4f483b;
    --zen-800: #5f5546;
    --zen-700: #726650;
    --zen-500: #a89b84;
    --zen-400: #c5bda9;
    --zen-300: #d9d2c4;
    --zen-200: #e5dfd3;
    --zen-100: #edeae3;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--zen-100);
    background:
        radial-gradient(circle at top left, rgba(217, 119, 6, 0.12), transparent 34rem),
        radial-gradient(circle at 75% 10%, rgba(114, 102, 80, 0.18), transparent 30rem),
        var(--bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: "Noto Serif SC", Georgia, serif;
}

.container-zen {
    width: min(100%, 1280px);
    margin-inline: auto;
    padding-inline: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(95, 85, 70, 0.5);
    background: rgba(10, 14, 19, 0.94);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 16px 34px rgba(217, 119, 6, 0.28);
}

.brand-text {
    display: grid;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 1.18rem;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, var(--amber-400), var(--amber-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 0.15rem;
    color: var(--zen-400);
    font-size: 0.72rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link,
.mobile-nav-link {
    color: var(--zen-200);
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-search input,
.mobile-search input,
.filter-input,
.filter-select {
    min-width: 0;
    border: 1px solid rgba(114, 102, 80, 0.5);
    border-radius: 12px;
    color: var(--zen-100);
    background: rgba(79, 72, 59, 0.45);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
    width: min(24vw, 270px);
    padding: 0.68rem 0.9rem;
}

.mobile-search input,
.filter-input,
.filter-select {
    padding: 0.75rem 0.9rem;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.top-search button,
.mobile-search button {
    border: 0;
    border-radius: 12px;
    padding: 0.68rem 0.95rem;
    color: white;
    cursor: pointer;
    background: var(--amber-600);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(79, 72, 59, 0.55);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--zen-100);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    border-top: 1px solid rgba(95, 85, 70, 0.5);
    background: rgba(10, 14, 19, 0.98);
}

.mobile-menu-inner {
    padding-block: 1rem;
}

.mobile-search {
    margin-bottom: 1rem;
}

.mobile-search input {
    flex: 1;
}

.mobile-nav {
    display: grid;
    gap: 0.75rem;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #05070a;
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, var(--bg) 0%, rgba(10, 14, 19, 0.75) 44%, rgba(10, 14, 19, 0.28) 100%),
        linear-gradient(90deg, rgba(10, 14, 19, 0.84), rgba(10, 14, 19, 0.25));
}

.hero-content {
    position: relative;
    display: flex;
    align-items: end;
    min-height: 100%;
    padding-bottom: 5rem;
}

.hero-copy {
    max-width: 760px;
}

.hero-copy h1 {
    margin: 0 0 1rem;
    color: white;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.06;
    letter-spacing: 0.01em;
    text-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.hero-copy p {
    margin: 0 0 1.5rem;
    max-width: 680px;
    color: var(--zen-300);
    font-size: 1.15rem;
    line-height: 1.8;
}

.hero-tags {
    margin-bottom: 1rem;
}

.hero-actions,
.section-actions,
.movie-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.btn-primary,
.btn-ghost,
.hero-rank-link,
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    padding: 0.78rem 1.28rem;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    color: white;
    background: var(--amber-600);
    box-shadow: 0 14px 32px rgba(217, 119, 6, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--amber-500);
}

.btn-ghost,
.hero-rank-link,
.pagination a,
.pagination span {
    border: 1px solid rgba(217, 119, 6, 0.35);
    color: var(--amber-400);
    background: rgba(79, 72, 59, 0.35);
}

.btn-ghost:hover,
.hero-rank-link:hover,
.pagination a:hover,
.pagination span.current {
    color: white;
    border-color: rgba(245, 158, 11, 0.75);
    background: rgba(217, 119, 6, 0.32);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: white;
    cursor: pointer;
    background: rgba(10, 14, 19, 0.56);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-control:hover {
    background: rgba(10, 14, 19, 0.78);
}

.hero-control.prev {
    left: 1rem;
}

.hero-control.next {
    right: 1rem;
}

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

.hero-dot {
    width: 0.65rem;
    height: 0.65rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 2rem;
    background: var(--amber-500);
}

.section {
    padding-block: 4rem;
}

.section.alt {
    background: linear-gradient(to bottom, rgba(42, 37, 31, 0.45), transparent);
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-eyebrow {
    margin: 0 0 0.35rem;
    color: var(--amber-400);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.section-title {
    margin: 0;
    color: var(--zen-100);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.section-desc {
    margin: 0.8rem 0 0;
    max-width: 780px;
    color: var(--zen-400);
    line-height: 1.8;
}

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

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

.movie-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.card-zen,
.movie-card,
.category-card,
.player-shell,
.detail-panel,
.filter-panel {
    overflow: hidden;
    border: 1px solid rgba(95, 85, 70, 0.5);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(79, 72, 59, 0.42), rgba(79, 72, 59, 0.18));
    backdrop-filter: blur(6px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.movie-card:hover,
.category-card:hover,
.card-zen:hover {
    border-color: rgba(217, 119, 6, 0.45);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

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

.movie-poster {
    position: relative;
    margin: 0;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #05070a;
}

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

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(10, 14, 19, 0.92), transparent);
}

.movie-duration,
.rank-number {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--zen-100);
    background: rgba(10, 14, 19, 0.78);
    backdrop-filter: blur(8px);
}

.movie-duration {
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
}

.rank-number {
    left: 0.65rem;
    top: 0.65rem;
    display: grid;
    place-items: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.4rem;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
}

.movie-card-body {
    display: grid;
    align-content: start;
    gap: 0.7rem;
    padding: 1rem;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    color: var(--amber-400);
    background: rgba(217, 119, 6, 0.14);
    font-size: 0.78rem;
    line-height: 1.2;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 2.9rem;
    margin: 0;
    overflow: hidden;
    color: var(--zen-100);
    font-size: 1.05rem;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--amber-400);
}

.movie-card p {
    display: -webkit-box;
    min-height: 2.75rem;
    margin: 0;
    overflow: hidden;
    color: var(--zen-400);
    font-size: 0.92rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--zen-500);
    font-size: 0.78rem;
}

.movie-card.list .movie-card-link {
    grid-template-columns: 150px 1fr;
}

.movie-card.list .movie-poster {
    aspect-ratio: 3 / 4;
    height: 100%;
}

.movie-card.list h3 {
    font-size: 1.12rem;
}

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

.category-card {
    position: relative;
    display: grid;
    min-height: 220px;
    padding: 1.4rem;
    isolation: isolate;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.2), transparent 12rem),
        radial-gradient(circle at 90% 100%, rgba(114, 102, 80, 0.26), transparent 12rem);
}

.category-card h3 {
    margin: 0 0 0.8rem;
    font-size: 1.45rem;
}

.category-card p {
    margin: 0;
    color: var(--zen-400);
    line-height: 1.75;
}

.category-card span {
    align-self: end;
    color: var(--amber-400);
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 0.85rem;
    margin-bottom: 2rem;
    padding: 1rem;
}

.filter-empty {
    display: none;
    border: 1px solid rgba(95, 85, 70, 0.5);
    border-radius: 16px;
    padding: 2rem;
    color: var(--zen-400);
    text-align: center;
    background: rgba(79, 72, 59, 0.25);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
    color: var(--zen-400);
    font-size: 0.92rem;
}

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

.page-hero {
    padding-block: 3rem;
    background: linear-gradient(to bottom, rgba(42, 37, 31, 0.42), transparent);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding-block: 3rem 2rem;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.26;
    filter: blur(18px) saturate(1.08);
    transform: scale(1.08);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(10, 14, 19, 0.72), var(--bg));
}

.detail-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 2rem;
    align-items: end;
}

.detail-cover {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

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

.detail-copy h1 {
    margin: 0 0 1rem;
    color: white;
    font-size: clamp(2.1rem, 5vw, 4.5rem);
    line-height: 1.08;
}

.detail-copy .one-line {
    max-width: 860px;
    margin: 0 0 1.25rem;
    color: var(--zen-300);
    font-size: 1.1rem;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}

.detail-meta span {
    border: 1px solid rgba(95, 85, 70, 0.65);
    border-radius: 999px;
    padding: 0.42rem 0.75rem;
    color: var(--zen-300);
    background: rgba(10, 14, 19, 0.45);
}

.player-section {
    padding-block: 2.5rem 1rem;
}

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

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    cursor: pointer;
    background:
        radial-gradient(circle, rgba(217, 119, 6, 0.2), transparent 20rem),
        rgba(0, 0, 0, 0.42);
}

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

.player-button {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 20px 46px rgba(217, 119, 6, 0.35);
}

.player-title {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.2rem;
    z-index: 4;
    color: var(--zen-100);
    font-weight: 700;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    padding-block: 2rem 4rem;
}

.detail-panel {
    padding: 1.6rem;
}

.detail-panel + .detail-panel {
    margin-top: 1.2rem;
}

.detail-panel h2,
.detail-panel h3 {
    margin: 0 0 1rem;
}

.detail-panel p {
    margin: 0;
    color: var(--zen-300);
    line-height: 1.9;
}

.related-list {
    display: grid;
    gap: 0.75rem;
}

.related-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 0.8rem;
    align-items: center;
    border-radius: 14px;
    padding: 0.6rem;
    background: rgba(10, 14, 19, 0.35);
    transition: background 0.2s ease;
}

.related-item:hover {
    background: rgba(217, 119, 6, 0.12);
}

.related-item img {
    width: 74px;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    object-fit: cover;
}

.related-item strong {
    display: block;
    margin-bottom: 0.35rem;
}

.related-item span {
    color: var(--zen-500);
    font-size: 0.82rem;
}

.horizontal-row {
    overflow-x: auto;
    padding-bottom: 0.6rem;
    scrollbar-width: thin;
}

.horizontal-track {
    display: flex;
    gap: 1.2rem;
    width: max-content;
}

.horizontal-track .movie-card {
    width: 260px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}

.site-footer {
    border-top: 1px solid rgba(95, 85, 70, 0.5);
    background: rgba(42, 37, 31, 0.75);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-block: 3rem 2rem;
}

.footer-brand p {
    max-width: 520px;
    margin: 1rem 0 0;
    color: var(--zen-400);
    line-height: 1.75;
}

.site-footer h3 {
    margin: 0 0 1rem;
    color: var(--zen-100);
}

.site-footer ul {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.site-footer li {
    color: var(--zen-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(95, 85, 70, 0.5);
    padding-block: 1.25rem;
    color: var(--zen-500);
    font-size: 0.92rem;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 1rem;
    }

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

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

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

    .mobile-menu-button {
        display: block;
    }

    .hero {
        height: 560px;
    }

    .hero-control {
        display: none;
    }

    .section-header,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid.compact,
    .movie-list-grid,
    .category-grid,
    .footer-grid,
    .filter-panel,
    .detail-layout {
        grid-template-columns: 1fr 1fr;
    }

    .detail-layout {
        align-items: start;
    }

    .detail-cover {
        max-width: 260px;
    }
}

@media (max-width: 620px) {
    .container-zen {
        padding-inline: 0.9rem;
    }

    .brand-text small {
        display: none;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .hero-actions,
    .movie-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions a,
    .movie-actions a {
        width: 100%;
    }

    .movie-grid,
    .movie-grid.compact,
    .movie-list-grid,
    .category-grid,
    .filter-panel,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .movie-card.list .movie-card-link {
        grid-template-columns: 118px 1fr;
    }

    .detail-cover {
        max-width: 220px;
    }

    .detail-panel {
        padding: 1.15rem;
    }
}
