:root {
    --brown-900: #2f241b;
    --brown-800: #4a3427;
    --brown-700: #6d5336;
    --brown-600: #a37d4d;
    --beige-50: #fdfbf7;
    --beige-100: #f9f5ed;
    --beige-200: #f1e8d4;
    --beige-300: #e7d9ba;
    --beige-500: #c4a96d;
    --beige-600: #b49357;
    --green-600: #5d844c;
    --green-700: #4a6e3b;
    --ink: #1f2933;
    --muted: #65717e;
    --card: #ffffff;
    --line: rgba(109, 83, 54, 0.15);
    --shadow: 0 20px 55px rgba(47, 36, 27, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--beige-50), #ffffff 460px);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(74, 52, 39, 0.96);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(47, 36, 27, 0.24);
    backdrop-filter: blur(14px);
}

.nav-bar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--brown-800);
    background: var(--beige-300);
    box-shadow: inset 0 -4px 8px rgba(47, 36, 27, 0.18);
    font-size: 15px;
}

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

.nav-link {
    color: var(--beige-100);
    font-weight: 650;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 4px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    background: var(--brown-800);
}

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

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--brown-900);
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.44;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 42%, rgba(196, 169, 109, 0.22), transparent 28%),
        linear-gradient(90deg, rgba(47, 36, 27, 0.96), rgba(47, 36, 27, 0.72) 48%, rgba(47, 36, 27, 0.42));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(680px, 100%);
    color: #ffffff;
}

.hero-kicker,
.section-kicker,
.hero-kicker-text {
    display: inline-flex;
    align-items: center;
    color: var(--beige-300);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 12px 0 18px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.04;
    color: #ffffff;
}

.hero-copy p {
    margin: 0 0 26px;
    max-width: 630px;
    color: var(--beige-100);
    font-size: 20px;
    line-height: 1.75;
}

.hero-tags,
.detail-tags,
.tag-row,
.detail-meta,
.meta-row,
.mini-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(196, 169, 109, 0.18);
    color: var(--beige-100);
    border: 1px solid rgba(231, 217, 186, 0.22);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.filter-reset,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: var(--beige-600);
    box-shadow: 0 18px 36px rgba(47, 36, 27, 0.26);
}

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

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-search {
    display: flex;
    width: min(560px, 100%);
    margin-top: 28px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 0 14px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.hero-search button {
    color: var(--brown-800);
    background: var(--beige-300);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    font-size: 36px;
    line-height: 1;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 3;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 38px;
    background: #ffffff;
}

.section-block {
    padding: 68px 0;
}

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

.section-heading h2,
.page-hero h1,
.movie-article h2 {
    margin: 8px 0 0;
    color: var(--brown-800);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
}

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

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

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

.catalog-grid {
    margin-top: 28px;
}

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 10px 35px rgba(47, 36, 27, 0.1);
    border: 1px solid rgba(109, 83, 54, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(47, 36, 27, 0.17);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--brown-900);
}

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

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

.play-badge,
.year-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(47, 36, 27, 0.72);
    backdrop-filter: blur(8px);
}

.play-badge {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
}

.year-badge {
    top: 12px;
    right: 12px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

.tag-row span {
    padding: 4px 9px;
    color: var(--brown-700);
    background: var(--beige-100);
    border: 0;
}

.movie-card h3 {
    margin: 12px 0 8px;
    color: var(--brown-800);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.compact-card h3 a:hover,
.footer-grid a:hover {
    color: var(--brown-600);
}

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

.meta-row,
.mini-meta {
    color: #7b8794;
    font-size: 13px;
}

.category-band,
.ranking-band,
.related-band {
    background: linear-gradient(135deg, var(--beige-100), #ffffff);
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
    transition: transform 0.45s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(47, 36, 27, 0.15), rgba(47, 36, 27, 0.9));
}

.category-tile:hover img {
    transform: scale(1.06);
}

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

.category-tile span {
    font-size: 24px;
    font-weight: 900;
}

.category-tile p {
    margin: 9px 0 0;
    color: var(--beige-100);
    line-height: 1.7;
}

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

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

.compact-card {
    display: grid;
    grid-template-columns: auto 82px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(47, 36, 27, 0.08);
    border: 1px solid rgba(109, 83, 54, 0.08);
}

.rank-num,
.rank-dot {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--brown-700);
    font-weight: 900;
}

.rank-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.compact-poster {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: var(--brown-900);
}

.compact-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-card h3 {
    margin: 0 0 6px;
    color: var(--brown-800);
    font-size: 18px;
}

.compact-card p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.65;
}

.page-hero {
    position: relative;
    padding: 92px 0 72px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 10%, rgba(196, 169, 109, 0.22), transparent 28%),
        linear-gradient(135deg, var(--brown-900), var(--brown-700));
}

.page-hero h1 {
    color: #ffffff;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--beige-100);
    font-size: 18px;
    line-height: 1.8;
}

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

.breadcrumb a:hover {
    color: #ffffff;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: transform 0.24s ease;
}

.category-overview-card:hover {
    transform: translateY(-5px);
}

.category-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.category-stack img {
    aspect-ratio: 2 / 3;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: var(--brown-900);
}

.category-overview-card h2 {
    margin: 0 0 10px;
    color: var(--brown-800);
}

.category-overview-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.filter-panel {
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

.filter-grid label {
    display: grid;
    gap: 7px;
    color: var(--brown-800);
    font-weight: 800;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(109, 83, 54, 0.18);
    border-radius: 14px;
    padding: 0 13px;
    outline: none;
    color: var(--ink);
    background: var(--beige-50);
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: var(--beige-600);
    box-shadow: 0 0 0 4px rgba(196, 169, 109, 0.18);
}

.filter-reset {
    color: #ffffff;
    background: var(--brown-700);
}

.movie-card.is-hidden,
.compact-card.is-hidden {
    display: none;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: var(--brown-900);
}

.detail-bg,
.detail-shade {
    position: absolute;
    inset: 0;
}

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(1px);
}

.detail-shade {
    background:
        radial-gradient(circle at 78% 26%, rgba(196, 169, 109, 0.2), transparent 28%),
        linear-gradient(90deg, rgba(47, 36, 27, 0.98), rgba(47, 36, 27, 0.8));
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    padding: 44px 0 64px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    background: var(--brown-900);
}

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

.detail-intro h1 {
    margin: 12px 0 18px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.06;
}

.detail-intro p {
    max-width: 780px;
    margin: 0 0 24px;
    color: var(--beige-100);
    font-size: 20px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 8px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.player-section {
    padding-top: 58px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 90px rgba(47, 36, 27, 0.28);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    outline: none;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(47, 36, 27, 0.12), rgba(0, 0, 0, 0.42));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: var(--brown-800);
    background: var(--beige-300);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-button:hover {
    transform: scale(1.06);
    background: #ffffff;
}

.player-button span {
    display: inline-block;
    margin-left: 5px;
    font-size: 32px;
}

.article-section {
    padding-top: 0;
}

.movie-article {
    display: grid;
    gap: 18px;
    padding: 34px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.movie-article h2 {
    font-size: 28px;
}

.movie-article p {
    margin: 0;
    color: #3c4652;
    font-size: 18px;
    line-height: 1.95;
}

.site-footer {
    color: var(--beige-100);
    background: var(--brown-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-grid p {
    margin: 0;
    color: var(--beige-200);
    line-height: 1.8;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid rgba(231, 217, 186, 0.16);
}

.footer-bottom p {
    margin: 0;
    color: var(--beige-200);
}

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

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

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

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

    .mobile-toggle {
        display: inline-flex;
    }

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

    .hero-copy h1,
    .hero-copy h2 {
        font-size: clamp(36px, 13vw, 56px);
    }

    .hero-arrow {
        display: none;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

    .logo {
        font-size: 20px;
    }

    .hero-search,
    .hero-actions,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search {
        gap: 8px;
    }

    .hero-search button {
        width: 100%;
    }

    .movie-grid,
    .small-grid,
    .category-grid,
    .rank-grid,
    .category-overview-grid,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: auto 72px 1fr;
        gap: 12px;
    }

    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .detail-intro p {
        font-size: 17px;
    }

    .movie-article {
        padding: 24px;
    }

    .player-button {
        width: 70px;
        height: 70px;
    }
}
