:root {
    --coffee-950: #1f1710;
    --coffee-900: #2a1f15;
    --coffee-800: #3a2a1d;
    --coffee-700: #54402a;
    --coffee-600: #745637;
    --coffee-500: #936f48;
    --cream-50: #fffaf1;
    --cream-100: #f9efd9;
    --cream-200: #efdec0;
    --cream-300: #dfc79e;
    --ink: #2a1f15;
    --muted: #7b684f;
    --line: rgba(84, 64, 42, 0.16);
    --card: #ffffff;
    --shadow: 0 20px 50px rgba(42, 31, 21, 0.12);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream-50);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(239, 222, 192, 0.8);
    backdrop-filter: blur(16px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(42, 31, 21, 0.1);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--cream-50);
    background: linear-gradient(135deg, var(--coffee-600), var(--coffee-900));
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(84, 64, 42, 0.25);
}

.brand-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.brand-copy strong {
    color: var(--coffee-800);
    font-size: 20px;
    line-height: 1.1;
    white-space: nowrap;
}

.brand-copy small {
    color: var(--coffee-600);
    font-size: 12px;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav__link {
    position: relative;
    color: var(--coffee-600);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--coffee-900);
}

.site-nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 99px;
    background: var(--coffee-600);
}

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

.header-search input,
.inline-search input,
.filter-panel input,
.filter-panel select {
    min-height: 42px;
    border: 1px solid var(--cream-300);
    border-radius: 999px;
    background: var(--cream-100);
    color: var(--coffee-900);
    outline: none;
    padding: 0 16px;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.inline-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--coffee-500);
    box-shadow: 0 0 0 4px rgba(147, 111, 72, 0.14);
    background: #ffffff;
}

.header-search button,
.inline-search button,
.filter-panel button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--coffee-700);
    cursor: pointer;
    padding: 0 18px;
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--cream-100);
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--coffee-700);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 8px 16px 18px;
    border-top: 1px solid var(--cream-200);
    background: #ffffff;
}

.mobile-nav a {
    display: block;
    padding: 12px 8px;
    color: var(--coffee-700);
    border-radius: 12px;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: var(--cream-100);
}

.hero {
    position: relative;
    height: 60vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--coffee-900);
}

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

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

.hero-slide__image,
.detail-hero__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-slide__overlay,
.detail-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(42, 31, 21, 0.96), rgba(42, 31, 21, 0.52) 48%, rgba(42, 31, 21, 0.18));
}

.hero-slide__content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 76px;
}

.hero-copy {
    width: min(680px, 100%);
    color: #ffffff;
    animation: fadeUp 0.6s ease both;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--coffee-600);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    color: var(--cream-200);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 12px 0;
    font-size: clamp(34px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.hero-meta,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-meta,
.detail-meta {
    margin: 18px 0 12px;
}

.hero-meta span,
.detail-meta span {
    color: var(--cream-100);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

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

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

.btn-primary {
    color: var(--coffee-900);
    background: var(--cream-100);
    box-shadow: 0 16px 35px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.06);
}

.hero-arrow--prev {
    left: 24px;
    transform: translateY(-50%);
}

.hero-arrow--next {
    right: 24px;
    transform: translateY(-50%);
}

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

.hero-dot {
    width: 18px;
    height: 4px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.section {
    padding: 70px 0;
}

.section--white {
    background: #ffffff;
}

.section--cream {
    background: var(--cream-50);
}

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

.section-heading h2 {
    margin: 6px 0 0;
    color: var(--coffee-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
}

.section-link,
.text-link {
    color: var(--coffee-700);
    font-weight: 800;
}

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

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

.movie-grid--compact,
.movie-grid--rankings {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.movie-grid--rankings-page {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--card);
    box-shadow: 0 10px 30px rgba(42, 31, 21, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--coffee-700), var(--coffee-950));
}

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

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

.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: var(--coffee-800);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.region-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(42, 31, 21, 0.78);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.region-badge {
    right: 10px;
}

.rank-badge {
    left: 10px;
    min-width: 34px;
    text-align: center;
    background: linear-gradient(135deg, #d9b36c, #7c5f3e);
}

.movie-card__body {
    padding: 16px;
}

.movie-card__body h3 {
    min-height: 48px;
    margin: 0 0 8px;
    color: var(--coffee-900);
    font-size: 17px;
    line-height: 1.35;
}

.movie-card__body h3 a:hover {
    color: var(--coffee-600);
}

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

.movie-meta {
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--coffee-600);
    font-size: 12px;
    font-weight: 700;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span {
    border-radius: 999px;
    color: var(--coffee-700);
    background: var(--cream-100);
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
}

.tag-row--light span {
    color: var(--cream-50);
    background: rgba(255, 255, 255, 0.16);
}

.movie-card--compact .movie-card__body {
    padding: 12px;
}

.movie-card--compact .movie-card__body h3 {
    min-height: 42px;
    font-size: 15px;
}

.movie-card--compact .movie-card__body p {
    display: none;
}

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

.category-card,
.category-overview-card,
.side-card,
.content-block,
.filter-panel,
.toolbar {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(42, 31, 21, 0.06);
}

.category-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card__covers,
.category-overview-card__image {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    min-height: 150px;
    background: var(--coffee-800);
}

.category-card__covers img,
.category-overview-card__image img {
    width: 100%;
    height: 100%;
    min-height: 72px;
    object-fit: cover;
}

.category-card__content,
.category-overview-card__body {
    padding: 18px;
}

.category-card__content strong,
.category-overview-card__body h2 {
    display: block;
    margin: 0 0 6px;
    color: var(--coffee-900);
    font-size: 20px;
}

.category-card__content span,
.category-overview-card__body span {
    color: var(--coffee-600);
    font-size: 13px;
    font-weight: 800;
}

.category-card__content p,
.category-overview-card__body p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.page-main {
    padding-top: 76px;
}

.page-hero {
    padding: 82px 0 64px;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(239, 222, 192, 0.18), transparent 32%),
        linear-gradient(135deg, var(--coffee-900), var(--coffee-700));
}

.page-hero--compact {
    padding-bottom: 58px;
}

.page-hero h1 {
    margin: 10px 0;
    color: #ffffff;
}

.page-hero .eyebrow {
    color: var(--cream-200);
}

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

.category-overview-card {
    overflow: hidden;
}

.category-overview-card__image {
    min-height: 230px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--coffee-700);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb--light {
    color: rgba(255, 255, 255, 0.78);
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    padding: 18px;
}

.toolbar strong {
    display: block;
    color: var(--coffee-900);
    font-size: 20px;
}

.toolbar span {
    color: var(--muted);
    font-size: 14px;
}

.inline-search {
    display: flex;
    gap: 8px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px;
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--coffee-700);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border-radius: 12px;
}

.result-count {
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 700;
}

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

.detail-main {
    padding-top: 0;
}

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

.detail-hero__bg {
    position: absolute;
    inset: 0;
    filter: blur(2px);
}

.detail-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 116px;
    padding-bottom: 60px;
}

.detail-hero__grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    background: var(--coffee-800);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.detail-copy .eyebrow {
    color: var(--cream-200);
}

.detail-copy h1 {
    color: #ffffff;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    border-radius: var(--radius-lg);
    background: #090705;
    box-shadow: 0 22px 70px rgba(42, 31, 21, 0.25);
}

.movie-video {
    width: 100%;
    height: 100%;
    min-height: 460px;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.2));
    cursor: pointer;
}

.player-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    color: var(--coffee-900);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    font-size: 34px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay small {
    color: rgba(255, 255, 255, 0.72);
}

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

.player-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 3;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.52);
    padding: 7px 12px;
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.content-block {
    margin-top: 24px;
    padding: 28px;
}

.content-block h2,
.side-card h2 {
    margin: 0 0 12px;
    color: var(--coffee-900);
    font-size: 24px;
}

.content-block p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.side-card {
    position: sticky;
    top: 98px;
    padding: 24px;
}

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

.side-card dt {
    color: var(--coffee-600);
    font-size: 13px;
    font-weight: 800;
}

.side-card dd {
    margin: -8px 0 0;
    color: var(--coffee-900);
}

.site-footer {
    color: var(--cream-100);
    background: var(--coffee-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 36px;
    padding: 56px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 16px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: rgba(255, 250, 241, 0.72);
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 16px;
    font-size: 13px;
}

img.image-missing {
    opacity: 0.08;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .hero {
        height: 70vh;
    }
}

@media (min-width: 1024px) {
    .hero {
        height: 80vh;
    }
}

@media (max-width: 1180px) {
    .movie-grid,
    .movie-grid--featured,
    .movie-grid--rankings-page {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

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

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

    .mobile-nav.is-open {
        display: block;
    }

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

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

    .side-card {
        position: static;
    }

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

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .header-inner {
        height: 68px;
    }

    .brand-copy strong {
        max-width: 190px;
        overflow: hidden;
        font-size: 16px;
        text-overflow: ellipsis;
    }

    .brand-copy small {
        display: none;
    }

    .hero {
        min-height: 560px;
    }

    .hero-slide__content {
        padding-bottom: 66px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

    .section {
        padding: 48px 0;
    }

    .section-heading,
    .toolbar {
        display: grid;
        align-items: start;
    }

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

    .movie-card__body {
        padding: 12px;
    }

    .movie-card__body h3 {
        min-height: 40px;
        font-size: 15px;
    }

    .movie-card__body p {
        display: none;
    }

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

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

    .inline-search {
        width: 100%;
    }

    .inline-search input {
        width: 100%;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-hero__content {
        padding-top: 92px;
    }

    .player-shell,
    .movie-video {
        min-height: 280px;
    }

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