/* Base theme reconstructed from the uploaded cocoa / cream movie layout. */
:root {
  --cocoa-50: #efebe9;
  --cocoa-100: #d7ccc8;
  --cocoa-200: #bcaaa4;
  --cocoa-300: #a1887f;
  --cocoa-400: #8d6e63;
  --cocoa-500: #6d4c41;
  --cocoa-600: #5d4037;
  --cocoa-700: #4e342e;
  --cocoa-800: #3e2723;
  --cocoa-900: #2c1810;
  --cream-50: #fffaf6;
  --cream-100: #fff5ed;
  --cream-200: #ffe8d6;
  --cream-300: #ffd8be;
  --cream-400: #ffc9a7;
  --chocolate-500: #5a352a;
  --chocolate-600: #3f2a24;
  --chocolate-700: #2e1f1a;
  --shadow-soft: 0 10px 30px rgba(44, 24, 16, 0.12);
  --shadow-strong: 0 24px 60px rgba(44, 24, 16, 0.24);
  --radius-lg: 18px;
  --radius-xl: 28px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--cream-50), var(--cocoa-50));
  color: var(--cocoa-900);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--cocoa-800), var(--cocoa-700), var(--chocolate-600));
  box-shadow: 0 10px 22px rgba(44, 24, 16, 0.2);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cream-300);
  color: var(--cocoa-900);
  box-shadow: 0 8px 18px rgba(255, 216, 190, 0.25);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: var(--cream-100);
  font-weight: 600;
}

.desktop-nav a {
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--cream-300);
  opacity: 1;
}

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

.header-search input,
.mobile-search input {
  width: 230px;
  border: 1px solid rgba(255, 232, 214, 0.24);
  border-radius: 999px;
  background: rgba(44, 24, 16, 0.38);
  color: var(--cream-100);
  padding: 9px 14px;
  outline: none;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: var(--cocoa-200);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  background: var(--cream-300);
  color: var(--cocoa-900);
  padding: 9px 16px;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--cream-100);
  font-size: 28px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(255, 232, 214, 0.16);
}

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

.mobile-nav a {
  color: var(--cream-100);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

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

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

.hero-slider {
  position: relative;
  height: 62vh;
  min-height: 470px;
  overflow: hidden;
  background: var(--cocoa-900);
}

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

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

.hero-image,
.hero-image img {
  width: 100%;
  height: 100%;
}

.hero-image img {
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(44, 24, 16, 0.98), rgba(62, 39, 35, 0.7) 48%, rgba(44, 24, 16, 0.08));
}

.hero-content {
  position: absolute;
  left: max(16px, calc((100% - 1180px) / 2));
  right: 16px;
  bottom: 12%;
  max-width: 780px;
  color: white;
}

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

.hero-badges strong,
.detail-tags strong {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--cream-400);
  color: var(--cocoa-900);
  font-size: 14px;
}

.hero-badges span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(78, 52, 46, 0.66);
  color: var(--cream-100);
  font-size: 13px;
  backdrop-filter: blur(5px);
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 26px;
  color: var(--cream-100);
  font-size: 18px;
}

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

.primary-button,
.ghost-button,
.section-link,
.search-panel button,
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  background: var(--cream-300);
  color: var(--cocoa-900);
  padding: 13px 24px;
  box-shadow: 0 14px 28px rgba(255, 216, 190, 0.22);
}

.ghost-button {
  border: 1px solid rgba(255, 232, 214, 0.48);
  color: var(--cream-100);
  padding: 12px 22px;
  background: rgba(44, 24, 16, 0.24);
  backdrop-filter: blur(6px);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.pagination a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-dots {
  position: absolute;
  right: max(22px, calc((100% - 1180px) / 2));
  bottom: 34px;
  display: flex;
  gap: 9px;
}

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

.hero-dot.is-active {
  width: 32px;
  background: var(--cream-300);
}

.content-section {
  padding: 44px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--cocoa-900);
  line-height: 1.18;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--cocoa-500);
}

.section-link {
  flex: none;
  background: var(--cocoa-700);
  color: var(--cream-100);
  padding: 10px 18px;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 2px 20px;
  scroll-snap-type: x mandatory;
}

.scroll-row .video-card {
  flex: 0 0 290px;
  scroll-snap-align: start;
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

.video-card,
.horizontal-card,
.large-card,
.mini-card,
.category-tile,
.sitemap-card,
.detail-card,
.side-card,
.player-box {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.video-card,
.horizontal-card,
.large-card,
.mini-card,
.category-tile {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.video-card:hover,
.horizontal-card:hover,
.large-card:hover,
.mini-card:hover,
.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.card-poster,
.horizontal-poster,
.large-poster,
.mini-poster,
.video-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cocoa-700), var(--chocolate-600));
}

.card-poster {
  aspect-ratio: 16 / 9;
}

.card-poster img,
.horizontal-poster img,
.large-poster img,
.mini-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.25s ease;
}

.video-card:hover img,
.horizontal-card:hover img,
.large-card:hover img {
  transform: scale(1.08);
}

.poster-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 216, 190, 0.22), transparent 34%),
    linear-gradient(135deg, var(--cocoa-800), var(--chocolate-600));
}

.poster-fallback img,
.poster-fallback video {
  position: relative;
  z-index: 1;
}

.poster-fallback img.image-missing {
  opacity: 0;
}

.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.card-year {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cream-300), var(--cream-400));
  color: var(--cocoa-900);
}

.play-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: var(--cocoa-900);
  font-size: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.play-hover::before {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 245, 237, 0.92);
  box-shadow: var(--shadow-soft);
}

.play-hover {
  line-height: 1;
}

.play-hover::after {
  content: "▶";
  position: relative;
  z-index: 1;
  margin-left: 3px;
  font-size: 24px;
}

.video-card:hover .play-hover,
.horizontal-card:hover .play-hover,
.large-card:hover .play-hover {
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.tag-row span {
  background: var(--cocoa-50);
  color: var(--cocoa-700);
  font-weight: 700;
  backdrop-filter: none;
}

.card-body h3,
.horizontal-body h3,
.large-overlay h3 {
  margin: 10px 0 8px;
  color: var(--cocoa-900);
  line-height: 1.35;
}

.card-body p,
.horizontal-body p,
.large-overlay p {
  margin: 0;
  color: var(--cocoa-500);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  margin-top: 12px;
  color: var(--cocoa-400);
  font-size: 13px;
}

.gradient-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
  padding: 38px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--cocoa-700), var(--chocolate-600));
  box-shadow: var(--shadow-strong);
}

.gradient-panel .section-heading h2,
.gradient-panel .section-heading p {
  color: var(--cream-100);
}

.gradient-panel .section-link {
  background: var(--cream-300);
  color: var(--cocoa-900);
}

.editor-layout,
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.editor-large,
.editor-list,
.detail-main {
  display: grid;
  gap: 22px;
}

.large-poster {
  aspect-ratio: 16 / 9;
}

.large-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 28px;
  color: white;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.large-overlay span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cream-300);
  color: var(--cocoa-900);
  font-size: 13px;
  font-weight: 800;
}

.large-overlay h3 {
  color: white;
  font-size: 26px;
}

.large-overlay p {
  color: var(--cream-200);
}

.horizontal-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 128px;
}

.horizontal-poster {
  height: 100%;
}

.horizontal-body {
  padding: 16px;
}

.ranking-panel {
  padding: 38px;
  border-radius: var(--radius-xl);
  background: var(--cream-100);
}

.ranking-grid,
.ranking-list,
.mini-list {
  display: grid;
  gap: 14px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  box-shadow: none;
  background: var(--cream-50);
}

.mini-poster {
  width: 86px;
  height: 58px;
  border-radius: 10px;
}

.mini-poster .rank-badge {
  left: 5px;
  top: 5px;
  min-width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 11px;
}

.mini-info strong,
.mini-info em {
  display: block;
}

.mini-info strong {
  color: var(--cocoa-900);
  font-size: 14px;
  line-height: 1.35;
}

.mini-info em {
  margin-top: 4px;
  color: var(--cocoa-400);
  font-size: 12px;
  font-style: normal;
}

.masonry-grid {
  column-count: 3;
  column-gap: 22px;
}

.masonry-grid .video-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  break-inside: avoid;
}

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

.category-tile {
  min-height: 155px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, white, var(--cream-100));
}

.category-tile strong {
  font-size: 22px;
  color: var(--cocoa-900);
}

.category-tile span {
  color: var(--cocoa-500);
  font-size: 14px;
}

.category-tile em {
  color: var(--cocoa-600);
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  background: linear-gradient(135deg, var(--cocoa-800), var(--chocolate-600));
  color: var(--cream-100);
}

.page-hero.compact {
  padding: 62px 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 232, 214, 0.12);
  color: var(--cream-300);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--cream-200);
  font-size: 17px;
}

.filter-bar,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  padding: 18px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--cocoa-100);
  border-radius: 14px;
  background: var(--cream-50);
  color: var(--cocoa-900);
  padding: 12px 13px;
  outline: none;
}

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

.search-panel button {
  border: 0;
  background: var(--cocoa-700);
  color: var(--cream-100);
}

.result-info {
  margin: 10px 0 22px;
  color: var(--cocoa-500);
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: white;
  color: var(--cocoa-700);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

.pagination a.is-active {
  background: var(--cocoa-700);
  color: var(--cream-100);
}

.detail-shell {
  padding: 28px 0 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--cocoa-500);
  font-size: 14px;
}

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

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

.player-box {
  overflow: hidden;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: black;
}

.movie-player {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: black;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 10px;
  border: 0;
  background: rgba(44, 24, 16, 0.38);
  color: white;
  text-align: center;
  backdrop-filter: blur(2px);
}

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

.player-start span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 245, 237, 0.92);
  color: var(--cocoa-900);
  font-size: 30px;
  box-shadow: var(--shadow-strong);
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(44, 24, 16, 0.82);
  color: var(--cream-100);
}

.player-message.is-visible {
  display: block;
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.one-line {
  color: var(--cocoa-600);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cocoa-100);
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--cream-100);
  color: var(--cocoa-600);
  font-weight: 700;
  font-size: 14px;
}

.detail-text h2 {
  margin: 24px 0 8px;
  color: var(--cocoa-800);
  font-size: 22px;
}

.detail-text p {
  margin: 0;
  color: var(--cocoa-700);
}

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

.side-card {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 16px;
  color: var(--cocoa-900);
}

.related-section {
  padding-bottom: 0;
}

.site-footer {
  margin-top: 44px;
  background: linear-gradient(180deg, var(--cocoa-900), var(--chocolate-700));
  color: var(--cream-100);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-inner p {
  max-width: 440px;
  color: var(--cocoa-200);
}

.footer-inner h3 {
  margin: 0 0 14px;
  color: var(--cream-200);
}

.footer-inner a {
  display: block;
  margin: 8px 0;
  color: var(--cocoa-200);
}

.footer-inner a:hover {
  color: var(--cream-200);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 232, 214, 0.12);
  color: var(--cocoa-300);
  font-size: 14px;
}

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

.sitemap-card {
  padding: 22px;
}

.sitemap-card.wide {
  grid-column: 1 / -1;
}

.sitemap-card h2 {
  margin: 0 0 14px;
}

.sitemap-card ul {
  margin: 0;
  padding-left: 18px;
}

.sitemap-card a {
  color: var(--cocoa-700);
}

.multi-column {
  columns: 3;
}

.not-found {
  min-height: 52vh;
  display: grid;
  place-content: center;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  color: var(--cocoa-900);
  font-size: 90px;
}

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

  .desktop-nav,
  .header-search {
    display: none;
  }

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

@media (max-width: 860px) {
  .hero-slider {
    height: 66vh;
    min-height: 430px;
  }

  .hero-content {
    bottom: 86px;
  }

  .section-heading,
  .editor-layout,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .card-grid.four,
  .ranking-grid,
  .category-grid,
  .sitemap-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .masonry-grid {
    column-count: 2;
  }

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

  .horizontal-card {
    grid-template-columns: 150px 1fr;
  }

  .multi-column {
    columns: 2;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 60px;
  }

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

  .hero-slider {
    min-height: 520px;
  }

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

  .hero-dots {
    left: 16px;
    right: auto;
  }

  .card-grid.four,
  .category-grid,
  .ranking-grid,
  .sitemap-layout {
    grid-template-columns: 1fr;
  }

  .masonry-grid {
    column-count: 1;
  }

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

  .horizontal-poster {
    aspect-ratio: 16 / 9;
  }

  .gradient-panel,
  .ranking-panel {
    width: min(100% - 32px, 1180px);
    padding: 24px;
  }

  .multi-column {
    columns: 1;
  }
}
