:root {
    --stone-950: #28231f;
    --stone-900: #4c4740;
    --stone-800: #5c534c;
    --stone-700: #6f6259;
    --stone-600: #87786a;
    --stone-500: #9c8d7b;
    --stone-300: #d1cac0;
    --stone-200: #e5e1da;
    --stone-100: #f5f3f0;
    --stone-50: #faf9f7;
    --earth-900: #5a4029;
    --earth-700: #8a5f3e;
    --earth-600: #a47549;
    --earth-500: #b88d55;
    --earth-300: #dbc5a3;
    --earth-100: #f2ede4;
    --earth-50: #faf8f5;
    --canyon-900: #6e3021;
    --canyon-700: #a33f25;
    --canyon-600: #c44e2c;
    --canyon-100: #fae8df;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(40, 35, 31, .08);
    --shadow-md: 0 14px 30px rgba(40, 35, 31, .12);
    --shadow-xl: 0 26px 60px rgba(40, 35, 31, .18);
    --radius-lg: 18px;
    --radius-xl: 28px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--stone-900);
    background: var(--stone-50);
    line-height: 1.65;
}

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: 60;
    background: rgba(250, 249, 247, .94);
    border-bottom: 1px solid rgba(229, 225, 218, .9);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 74px;
    padding: 0 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--stone-800);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--white);
    background: linear-gradient(135deg, var(--earth-600), var(--canyon-600));
    box-shadow: var(--shadow-sm);
}

.brand-text {
    white-space: nowrap;
    font-size: 20px;
}

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

.nav-link {
    padding: 10px 12px;
    color: var(--stone-700);
    border-radius: 12px;
    font-weight: 650;
    font-size: 14px;
    transition: color .2s ease, background .2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--earth-700);
    background: var(--stone-100);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
}

.header-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--stone-300);
    border-radius: 14px;
    background: var(--white);
    color: var(--stone-900);
    padding: 10px 12px;
    outline: 0;
    transition: border .2s ease, box-shadow .2s ease;
}

.header-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--earth-500);
    box-shadow: 0 0 0 4px rgba(184, 141, 85, .17);
}

.header-search button,
.btn-primary,
.btn-secondary,
.section-more,
.play-button {
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.header-search button,
.btn-primary,
.play-button {
    color: var(--white);
    background: var(--earth-600);
    padding: 10px 16px;
    box-shadow: var(--shadow-sm);
}

.header-search button:hover,
.btn-primary:hover,
.play-button:hover {
    background: var(--earth-700);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    color: var(--white);
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .26);
    padding: 12px 20px;
    backdrop-filter: blur(10px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--stone-100);
    border-radius: 12px;
    padding: 11px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--stone-700);
    margin: 5px 0;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--stone-200);
    padding: 12px 22px 18px;
}

.mobile-panel a {
    display: block;
    padding: 11px 4px;
    color: var(--stone-700);
    font-weight: 650;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: radial-gradient(circle at 22% 18%, rgba(184, 141, 85, .45), transparent 30%), linear-gradient(135deg, var(--earth-900), var(--stone-950) 56%, var(--canyon-900));
    color: var(--white);
}

.hero-slide {
    display: none;
    min-height: 620px;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: .4;
    overflow: hidden;
}

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(40, 35, 31, .98) 0%, rgba(40, 35, 31, .72) 45%, rgba(40, 35, 31, .2) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 620px;
    padding: 88px 22px 70px;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(310px, .72fr);
    gap: 54px;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: var(--earth-300);
    font-weight: 800;
    letter-spacing: .05em;
}

.hero h1 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.hero h1 span {
    color: var(--earth-300);
}

.hero p {
    max-width: 720px;
    margin: 0 0 26px;
    color: var(--stone-200);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-search {
    display: flex;
    max-width: 620px;
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(16px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
    padding: 10px;
}

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

.hero-panel {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .17);
    backdrop-filter: blur(12px);
}

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

.hero-panel-info {
    position: absolute;
    inset: auto 0 0;
    padding: 22px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
}

.hero-panel-info strong {
    display: block;
    font-size: 24px;
}

.badge-row,
.hero-badges,
.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-row span,
.hero-badges span,
.info-pills span,
.category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--earth-100);
    color: var(--earth-700);
    font-size: 12px;
    font-weight: 800;
}

.hero-badges span {
    background: rgba(255, 255, 255, .14);
    color: var(--stone-100);
}

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

.hero-dot {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--earth-300);
}

.page-shell,
.content-section,
.detail-shell,
.category-hero,
.filter-panel,
.site-footer .footer-grid,
.footer-bottom {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.page-shell {
    padding: 46px 22px 64px;
}

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

.content-section.alt {
    background: var(--white);
    max-width: none;
}

.section-title-row {
    max-width: var(--max-width);
    margin: 0 auto 28px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-title-row h2,
.category-hero h1,
.detail-title h1,
.page-heading h1 {
    color: var(--stone-900);
    line-height: 1.12;
    margin: 0 0 8px;
    letter-spacing: -.03em;
}

.section-title-row h2 {
    font-size: 34px;
}

.section-title-row p,
.category-hero p,
.page-heading p {
    margin: 0;
    color: var(--stone-600);
}

.section-more {
    display: inline-flex;
    padding: 10px 16px;
    color: var(--earth-700);
    background: var(--earth-100);
}

.card-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid rgba(229, 225, 218, .9);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--stone-200);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4.18;
    object-fit: cover;
    transition: transform .4s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .62));
    opacity: .8;
}

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: var(--white);
    background: rgba(164, 117, 73, .94);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.movie-body {
    padding: 16px;
}

.movie-body h2,
.movie-body h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.35;
    color: var(--stone-900);
}

.movie-body h2 a,
.movie-body h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    color: var(--stone-500);
    font-size: 13px;
    margin-bottom: 8px;
}

.movie-body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 78px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--stone-700);
    font-size: 14px;
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    display: flex;
    align-items: end;
    padding: 22px;
    color: var(--white);
    border-radius: var(--radius-lg);
    background: var(--stone-900);
    box-shadow: var(--shadow-sm);
}

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

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .82));
}

.category-tile span {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    display: block;
    font-size: 24px;
    line-height: 1.2;
}

.category-tile em {
    display: block;
    margin-top: 8px;
    font-style: normal;
    color: var(--stone-200);
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 22px;
}

.feature-rank {
    position: relative;
    overflow: hidden;
    min-height: 470px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: var(--stone-900);
}

.feature-rank img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
}

.feature-rank div {
    position: absolute;
    inset: auto 0 0;
    padding: 34px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .82));
}

.feature-rank h3 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
}

.feature-rank p {
    margin: 0 0 18px;
    color: var(--stone-100);
}

.compact-list {
    display: grid;
    gap: 12px;
}

.compact-card {
    display: grid;
    grid-template-columns: auto 70px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--stone-200);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.compact-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.compact-card img {
    width: 70px;
    height: 92px;
    object-fit: cover;
    border-radius: 12px;
}

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

.compact-card strong {
    color: var(--stone-900);
    line-height: 1.35;
}

.compact-card em {
    color: var(--stone-500);
    font-style: normal;
    font-size: 13px;
    margin-top: 5px;
}

.rank-no {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--canyon-600);
    font-weight: 900;
}

.category-hero,
.page-heading {
    padding: 54px 22px 28px;
}

.category-hero h1,
.page-heading h1 {
    font-size: clamp(34px, 5vw, 54px);
}

.filter-panel {
    padding: 0 22px 26px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--stone-200);
    box-shadow: var(--shadow-sm);
}

.filter-grid label span {
    display: block;
    margin-bottom: 6px;
    color: var(--stone-600);
    font-size: 13px;
    font-weight: 800;
}

.detail-hero {
    background: linear-gradient(135deg, var(--stone-950), var(--earth-900) 55%, var(--canyon-900));
    color: var(--white);
}

.detail-shell {
    padding: 42px 22px 62px;
    display: grid;
    grid-template-columns: minmax(0, .52fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

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

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

.breadcrumb {
    margin-bottom: 16px;
    color: var(--earth-300);
    font-size: 14px;
}

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

.detail-title h1 {
    font-size: clamp(36px, 6vw, 64px);
    color: var(--white);
}

.detail-title p {
    margin: 18px 0 24px;
    color: var(--stone-200);
    font-size: 18px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.detail-meta div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
}

.detail-meta span {
    display: block;
    color: var(--earth-300);
    font-size: 12px;
    font-weight: 900;
}

.detail-meta strong {
    display: block;
    margin-top: 4px;
    color: var(--white);
}

.player-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 44px 22px 26px;
}

.video-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000;
    box-shadow: var(--shadow-xl);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(0, 0, 0, .18), rgba(0, 0, 0, .66));
    transition: opacity .2s ease, visibility .2s ease;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    font-size: 18px;
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid var(--white);
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: none;
    color: var(--white);
    background: rgba(196, 78, 44, .92);
    padding: 10px 14px;
    border-radius: 12px;
}

.player-message.show {
    display: block;
}

.article-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 22px 62px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
}

.article-card,
.side-card {
    background: var(--white);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.article-card {
    padding: 30px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--stone-900);
}

.article-card p {
    margin: 0 0 24px;
    color: var(--stone-700);
}

.side-card {
    padding: 18px;
    align-self: start;
    position: sticky;
    top: 96px;
}

.site-footer {
    background: var(--stone-950);
    color: var(--stone-300);
    padding: 44px 22px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr 1fr 1.2fr;
    gap: 30px;
}

.site-footer h2 {
    color: var(--stone-100);
    font-size: 17px;
    margin: 0 0 14px;
}

.site-footer a {
    display: block;
    color: var(--stone-300);
    margin: 8px 0;
}

.site-footer a:hover {
    color: var(--earth-300);
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tags a {
    display: inline-flex;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.footer-bottom {
    margin-top: 32px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: var(--stone-400);
}

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

.empty-state {
    display: none;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--earth-50);
    color: var(--earth-700);
    text-align: center;
}

.empty-state.show {
    display: block;
}

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

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

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

    .hero-inner,
    .detail-shell,
    .article-layout,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 420px;
    }

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

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

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

    .side-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: 66px;
    }

    .brand-text {
        font-size: 18px;
    }

    .hero,
    .hero-slide,
    .hero-inner {
        min-height: 0;
    }

    .hero-inner {
        padding-top: 54px;
        padding-bottom: 60px;
        gap: 28px;
    }

    .hero-search {
        flex-direction: column;
    }

    .section-title-row {
        display: block;
    }

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

    .card-grid,
    .category-grid,
    .filter-grid,
    .footer-grid,
    .detail-meta {
        grid-template-columns: 1fr;
    }

    .content-section,
    .page-shell {
        padding-top: 38px;
        padding-bottom: 44px;
    }

    .movie-body p {
        min-height: auto;
    }
}

@media (max-width: 460px) {
    .compact-card {
        grid-template-columns: auto 58px minmax(0, 1fr);
    }

    .compact-card img {
        width: 58px;
        height: 78px;
    }

    .article-card {
        padding: 22px;
    }
}
