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

:root {
    --slate-950: #0a0e13;
    --slate-900: #111827;
    --zen-950: #2a251f;
    --zen-900: #4f483b;
    --zen-800: #5f5546;
    --zen-700: #726650;
    --zen-400: #b8ad9a;
    --zen-300: #d7ccb8;
    --zen-200: #eee2ce;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --white: #ffffff;
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.25);
    --shadow-strong: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--zen-200);
    background:
        radial-gradient(circle at top left, rgba(217, 119, 6, 0.14), transparent 34rem),
        radial-gradient(circle at 88% 10%, rgba(95, 85, 70, 0.35), transparent 28rem),
        linear-gradient(180deg, var(--slate-950), #0c1118 42%, var(--zen-950));
    font-family: Inter, "Noto Serif SC", "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.text-gradient {
    color: transparent;
    background: linear-gradient(90deg, var(--amber-400), var(--amber-600));
    -webkit-background-clip: text;
    background-clip: text;
}

.card-zen {
    overflow: hidden;
    border: 1px solid rgba(95, 85, 70, 0.5);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(79, 72, 59, 0.42), rgba(79, 72, 59, 0.18));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.btn-primary,
.btn-ghost,
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    border-radius: 0.65rem;
    padding: 0.72rem 1.25rem;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.32);
}

.btn-primary:hover {
    transform: scale(1.04);
}

.btn-ghost {
    color: var(--amber-400);
    border: 1px solid rgba(217, 119, 6, 0.35);
    background: rgba(217, 119, 6, 0.1);
}

.btn-ghost:hover {
    color: var(--white);
    background: rgba(217, 119, 6, 0.25);
}

.btn-link {
    color: var(--zen-300);
    padding-left: 0;
    padding-right: 0;
}

.btn-link:hover {
    color: var(--amber-400);
}

.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.95);
    backdrop-filter: blur(14px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 1rem;
}

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

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

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

.brand-title {
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    margin-top: 0.18rem;
    color: var(--zen-400);
    font-size: 0.75rem;
}

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

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

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

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

.top-search {
    display: flex;
    width: min(320px, 26vw);
    border: 1px solid rgba(114, 102, 80, 0.55);
    border-radius: 0.75rem;
    background: rgba(79, 72, 59, 0.5);
    overflow: hidden;
}

.top-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    color: var(--zen-100, #f7ead6);
    background: transparent;
    padding: 0.65rem 0.85rem;
    outline: none;
}

.top-search button {
    border: 0;
    color: var(--white);
    background: var(--amber-600);
    padding: 0 0.9rem;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 0.7rem;
    background: rgba(95, 85, 70, 0.45);
}

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

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(95, 85, 70, 0.5);
    padding: 0.75rem 1rem 1rem;
    background: rgba(10, 14, 19, 0.98);
}

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

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--slate-950);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 14, 19, 0.95), rgba(10, 14, 19, 0.68), rgba(10, 14, 19, 0.25)),
        linear-gradient(0deg, var(--slate-950), rgba(10, 14, 19, 0.2) 45%, rgba(10, 14, 19, 0.35));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 82px;
    transform: translateX(-50%);
    max-width: 1280px;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 1rem;
    color: var(--white);
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 640px;
    margin: 0 0 1.5rem;
    color: var(--zen-300);
    font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.hero-tags span,
.detail-tags span {
    border: 1px solid rgba(217, 119, 6, 0.35);
    border-radius: 999px;
    color: var(--amber-400);
    background: rgba(217, 119, 6, 0.13);
    padding: 0.32rem 0.75rem;
    font-size: 0.85rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(10, 14, 19, 0.56);
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    font-size: 2rem;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(10, 14, 19, 0.78);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 1rem;
}

.hero-next {
    right: 1rem;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    gap: 0.5rem;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--amber-500);
}

.section-block {
    padding: 4.4rem 0;
}

.section-band {
    background: linear-gradient(180deg, rgba(42, 37, 31, 0.42), rgba(42, 37, 31, 0.08));
}

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

.section-heading h2,
.page-hero h1,
.detail-content h1 {
    margin: 0;
    color: var(--zen-200);
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.15;
}

.section-heading a {
    color: var(--amber-400);
    font-weight: 700;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--amber-400);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

.movie-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 300px);
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
}

.movie-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.poster-link,
.list-poster {
    position: relative;
    display: block;
    overflow: hidden;
}

.poster-link {
    height: 290px;
}

.poster-link img,
.list-poster img,
.category-tile img,
.side-poster img,
.compact-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .poster-link img,
.list-card:hover .list-poster img,
.category-tile:hover img,
.compact-item:hover img {
    transform: scale(1.08);
}

.duration-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--zen-200);
    background: rgba(10, 14, 19, 0.78);
    backdrop-filter: blur(8px);
    font-size: 0.78rem;
    font-weight: 700;
}

.duration-pill {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.25rem 0.58rem;
}

.rank-badge {
    left: 0.75rem;
    top: 0.75rem;
    padding: 0.28rem 0.58rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.card-body h2,
.list-info h2 {
    margin: 0 0 0.55rem;
    color: var(--zen-200);
    font-size: 1.05rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover h2,
.list-card:hover h2 {
    color: var(--amber-400);
}

.card-body p,
.list-info p,
.category-tile p,
.category-panel p,
.page-hero p,
.footer-grid p,
.detail-content p {
    color: var(--zen-400);
}

.card-body p,
.list-info p {
    display: -webkit-box;
    margin: 0 0 0.8rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 3.1em;
    font-size: 0.92rem;
}

.card-tags {
    margin-top: auto;
    margin-bottom: 0.8rem;
}

.card-tags span {
    border-radius: 0.45rem;
    color: var(--zen-300);
    background: rgba(95, 85, 70, 0.34);
    padding: 0.24rem 0.5rem;
    font-size: 0.75rem;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: var(--zen-400);
    font-size: 0.82rem;
}

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

.list-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    padding: 0.75rem;
}

.list-poster {
    min-height: 148px;
    border-radius: 0.8rem;
}

.list-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-right: 0.4rem;
}

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

.category-tile {
    position: relative;
    min-height: 240px;
    padding: 1.25rem;
}

.category-tile::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(10, 14, 19, 0.25), rgba(10, 14, 19, 0.88));
}

.category-tile img {
    position: absolute;
    inset: 0;
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
}

.category-tile span {
    display: block;
    margin-top: 8rem;
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 800;
}

.category-tile p {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    padding: 3rem 0 2rem;
}

.compact-hero {
    max-width: 980px;
}

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

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

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

.category-panel {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.2rem;
    padding: 1rem;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.category-cover-stack img {
    width: 100%;
    height: 132px;
    border-radius: 0.65rem;
    object-fit: cover;
}

.category-panel-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-panel-body h2 {
    margin: 0 0 0.6rem;
    color: var(--zen-200);
    font-size: 1.5rem;
}

.filter-shell {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1rem;
    padding: 1rem;
}

.search-panel {
    grid-template-columns: 1fr 220px;
}

.filter-group {
    display: grid;
    gap: 0.35rem;
}

.filter-group label {
    color: var(--zen-300);
    font-size: 0.86rem;
    font-weight: 700;
}

.filter-group input,
.filter-group select {
    width: 100%;
    border: 1px solid rgba(114, 102, 80, 0.55);
    border-radius: 0.72rem;
    color: var(--zen-200);
    background: rgba(10, 14, 19, 0.48);
    padding: 0.78rem 0.9rem;
    outline: none;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: rgba(245, 158, 11, 0.65);
}

.empty-state {
    margin: 2rem 0 0;
    color: var(--zen-400);
    text-align: center;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    padding-top: 2rem;
}

.detail-primary {
    min-width: 0;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.58);
}

.play-circle {
    position: relative;
    z-index: 1;
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 16px 50px rgba(217, 119, 6, 0.42);
    font-size: 2rem;
    text-indent: 0.2rem;
}

.play-text {
    position: absolute;
    z-index: 1;
    bottom: calc(50% - 78px);
    color: var(--zen-200);
    font-weight: 800;
}

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

.detail-content {
    margin-top: 1.25rem;
    padding: 1.5rem;
}

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

.detail-content h1 {
    margin-bottom: 0.8rem;
}

.lead-text {
    color: var(--zen-300) !important;
    font-size: 1.12rem;
}

.detail-meta {
    margin: 1rem 0 1.5rem;
}

.detail-meta span {
    border-radius: 999px;
    background: rgba(95, 85, 70, 0.32);
    padding: 0.3rem 0.7rem;
}

.detail-content h2,
.side-box h2,
.footer-grid h2 {
    margin: 1.5rem 0 0.75rem;
    color: var(--zen-200);
    font-size: 1.28rem;
}

.detail-content p {
    margin: 0 0 1rem;
}

.detail-aside {
    display: grid;
    align-content: start;
    gap: 1.25rem;
}

.side-poster {
    padding: 1rem;
}

.side-poster img {
    aspect-ratio: 3 / 4;
    border-radius: 0.85rem;
    margin-bottom: 1rem;
}

.side-poster .btn-primary {
    width: 100%;
}

.side-box {
    padding: 1rem;
}

.side-box h2 {
    margin-top: 0;
}

.compact-list {
    display: grid;
    gap: 0.85rem;
}

.compact-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.75rem;
    align-items: center;
}

.compact-item img {
    height: 60px;
    border-radius: 0.6rem;
}

.compact-item strong,
.compact-item em {
    display: block;
}

.compact-item strong {
    color: var(--zen-200);
    font-size: 0.94rem;
    line-height: 1.3;
}

.compact-item em {
    margin-top: 0.25rem;
    color: var(--zen-400);
    font-size: 0.78rem;
    font-style: normal;
}

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

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

.footer-brand {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-links {
    display: grid;
    gap: 0.55rem;
}

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

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

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

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

    .menu-toggle {
        display: block;
    }

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

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

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

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

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

    .hero-slider {
        height: 540px;
    }

    .hero-control {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .list-card,
    .category-panel {
        grid-template-columns: 1fr;
    }

    .list-poster {
        min-height: 220px;
    }

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

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

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container-zen {
        width: min(100% - 24px, 1280px);
    }

    .brand-subtitle {
        display: none;
    }

    .brand-title {
        font-size: 1.1rem;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .hero-slider {
        height: 500px;
    }

    .hero-content {
        bottom: 72px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 260px;
    }

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

    .poster-link {
        height: 220px;
    }

    .card-body {
        padding: 0.8rem;
    }

    .card-body h2 {
        font-size: 0.95rem;
    }

    .card-body p {
        font-size: 0.82rem;
    }
}
