:root {
  --craft-brown-900: #5a442c;
  --craft-brown-800: #6d5336;
  --craft-brown-700: #88663f;
  --craft-brown-600: #a37d4d;
  --craft-brown-100: #f5f0e8;
  --craft-brown-50: #faf8f5;
  --craft-beige-500: #d0b784;
  --craft-beige-300: #e7d9ba;
  --craft-beige-100: #f9f5ed;
  --craft-beige-50: #fdfbf7;
  --craft-green-700: #4a6e3b;
  --craft-green-600: #5d8a49;
  --craft-green-100: #eaf3e7;
  --text-main: #1f2933;
  --text-muted: #64748b;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(90, 68, 44, 0.16);
  --shadow-card: 0 10px 25px rgba(90, 68, 44, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--craft-beige-50), #ffffff 38%, var(--craft-brown-50));
  color: var(--text-main);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(90, 68, 44, 0.96);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(90, 68, 44, 0.25);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--craft-beige-300), var(--craft-beige-500));
  color: var(--craft-brown-900);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

.logo-text {
  font-size: 1.25rem;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--craft-beige-100);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  min-width: 180px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--craft-brown-800);
  box-shadow: var(--shadow-soft);
}

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--craft-brown-800);
  font-weight: 700;
}

.dropdown-menu a:hover {
  background: var(--craft-beige-100);
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.header-search {
  display: flex;
  flex: 0 1 300px;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.header-search input {
  min-width: 0;
  width: 100%;
  padding: 9px 12px 9px 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
}

.header-search input::placeholder {
  color: rgba(249, 245, 237, 0.72);
}

.header-search button {
  padding: 9px 14px;
  border: 0;
  background: var(--craft-beige-500);
  color: var(--craft-brown-900);
  font-weight: 800;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--craft-beige-100);
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--craft-beige-100);
  font-weight: 700;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(90, 68, 44, 0.95), rgba(90, 68, 44, 0.62) 48%, rgba(90, 68, 44, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 760px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: var(--craft-beige-300);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--craft-beige-100);
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 28px 0;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  padding: 8px 14px;
  background: rgba(208, 183, 132, 0.18);
  color: var(--craft-beige-100);
  border: 1px solid rgba(231, 217, 186, 0.26);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: var(--craft-beige-500);
  color: var(--craft-brown-900);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.24);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

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

.hero-arrow.prev {
  left: 20px;
}

.hero-arrow.next {
  right: 20px;
}

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

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

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

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

.soft-section {
  background: var(--craft-beige-100);
}

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

.section-heading h2 {
  margin: 0;
  color: var(--craft-brown-800);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.15;
  font-weight: 900;
}

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

.section-more {
  flex: 0 0 auto;
  color: var(--craft-brown-700);
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.five-cols {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.six-cols {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.compact-gap {
  gap: 18px;
}

.poster-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--craft-brown-100), var(--craft-beige-100));
}

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

.poster-card:hover .poster-frame img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 58%);
  transition: opacity 0.3s ease;
}

.poster-card:hover .poster-shade {
  opacity: 1;
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--craft-brown-900);
  font-weight: 900;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-card:hover .play-hover {
  opacity: 1;
  transform: scale(1);
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: var(--craft-beige-500);
  color: var(--craft-brown-900);
}

.poster-info {
  display: block;
  padding: 16px 16px 10px;
}

.card-tags {
  margin-bottom: 8px;
}

.card-tags span {
  padding: 4px 8px;
  background: var(--craft-brown-100);
  color: var(--craft-brown-700);
  font-size: 0.74rem;
}

.card-tags span:nth-child(2) {
  background: var(--craft-green-100);
  color: var(--craft-green-700);
}

.poster-info strong {
  display: -webkit-box;
  min-height: 3.1em;
  overflow: hidden;
  color: var(--craft-brown-800);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.poster-info em {
  display: -webkit-box;
  min-height: 2.8em;
  margin-top: 6px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.poster-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px 16px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.poster-foot a {
  color: var(--craft-brown-700);
  font-weight: 800;
}

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

.compact-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(90, 68, 44, 0.08);
}

.compact-cover {
  position: relative;
  flex: 0 0 140px;
  height: 88px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--craft-brown-100);
}

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

.compact-cover span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--white);
  font-size: 0.75rem;
}

.compact-body h3 {
  margin: 0 0 6px;
  color: var(--craft-brown-800);
  font-size: 1rem;
}

.compact-body p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.card-meta a {
  color: var(--craft-brown-700);
  font-weight: 800;
}

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

.category-tile,
.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-tile {
  display: block;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.tile-images,
.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.tile-images img,
.category-cover-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: var(--craft-brown-100);
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  margin: 0;
  color: var(--craft-brown-800);
  font-size: 1.25rem;
  font-weight: 900;
}

.category-tile em,
.category-overview-card span {
  display: inline-block;
  margin-top: 6px;
  color: var(--craft-green-700);
  font-style: normal;
  font-weight: 800;
}

.category-tile p,
.category-overview-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.category-overview-card {
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover-strip {
  grid-template-columns: repeat(4, 1fr);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 88px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--craft-brown-800), var(--craft-brown-900));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.ranking-panel h2 {
  margin: 0 0 18px;
  font-size: 1.45rem;
}

.ranking-panel ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-panel li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.ranking-panel span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--craft-beige-300);
  font-weight: 900;
}

.ranking-panel a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.ranking-panel em {
  color: rgba(249, 245, 237, 0.8);
  font-style: normal;
  font-size: 0.85rem;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--craft-brown-900), var(--craft-brown-700));
  color: var(--white);
}

.small-hero {
  padding: 86px 0 76px;
}

.page-hero span {
  color: var(--craft-beige-300);
  font-weight: 900;
}

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--craft-beige-100);
  font-size: 1.1rem;
}

.inline-filter,
.search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.inline-filter input,
.search-controls input,
.search-controls select {
  min-height: 46px;
  border: 1px solid rgba(231, 217, 186, 0.36);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  outline: 0;
}

.inline-filter input,
.search-controls input {
  min-width: min(430px, 100%);
  padding: 0 16px;
}

.search-controls select {
  padding: 0 36px 0 14px;
}

.search-controls option {
  color: var(--text-main);
}

.search-controls button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--craft-beige-500);
  color: var(--craft-brown-900);
  font-weight: 900;
  cursor: pointer;
}

.inline-filter span,
.search-controls span {
  color: var(--craft-beige-100);
  font-weight: 800;
}

.wide-filter {
  margin-bottom: 24px;
  color: var(--craft-brown-800);
}

.wide-filter input {
  background: var(--white);
  color: var(--text-main);
  border-color: #e7ddcc;
}

.wide-filter span {
  color: var(--craft-brown-700);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--craft-brown-100);
  text-align: left;
  vertical-align: top;
}

.ranking-table th {
  background: var(--craft-brown-800);
  color: var(--white);
}

.ranking-table a {
  color: var(--craft-brown-800);
  font-weight: 900;
}

.ranking-table p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.rank-number {
  color: var(--craft-brown-700);
  font-weight: 900;
}

.detail-hero {
  min-height: 620px;
}

.detail-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(90, 68, 44, 0.98), rgba(90, 68, 44, 0.7) 58%, rgba(90, 68, 44, 0.45));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 44px 0 66px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  color: var(--craft-beige-100);
}

.breadcrumb a {
  color: var(--craft-beige-300);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

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

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

.detail-info p {
  max-width: 780px;
  color: var(--craft-beige-100);
  font-size: 1.18rem;
}

.detail-tags {
  margin: 22px 0;
}

.movie-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 14px;
  margin: 0 0 26px;
}

.movie-facts div {
  padding: 14px;
  border: 1px solid rgba(231, 217, 186, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.movie-facts dt {
  color: var(--craft-beige-300);
  font-size: 0.85rem;
  font-weight: 800;
}

.movie-facts dd {
  margin: 4px 0 0;
  color: var(--white);
  font-weight: 900;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.player-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #111827;
}

.player-poster.hidden {
  display: none;
}

.player-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.player-play-button {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--craft-beige-500);
  color: var(--craft-brown-900);
  font-weight: 900;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  background: #0f172a;
}

.source-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--craft-beige-100);
  cursor: pointer;
}

.source-tabs button.active {
  background: var(--craft-beige-500);
  color: var(--craft-brown-900);
  font-weight: 900;
}

.player-status {
  margin: 0;
  padding: 0 16px 16px;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.detail-article {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-article h2 {
  margin: 0 0 14px;
  color: var(--craft-brown-800);
}

.detail-article p {
  margin: 0;
  color: #374151;
}

.prev-next-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.prev-next-links a {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--white);
  color: var(--craft-brown-800);
  font-weight: 900;
  box-shadow: var(--shadow-card);
}

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

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

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1.1rem;
}

.site-footer p {
  margin: 0;
  color: rgba(249, 245, 237, 0.82);
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  text-align: center;
  color: rgba(249, 245, 237, 0.74);
}

[hidden],
.is-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .five-cols,
  .six-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero-carousel {
    height: 540px;
  }

  .hero-arrow {
    display: none;
  }

  .split-layout,
  .detail-layout,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

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

  .header-inner {
    height: 62px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-content {
    padding: 0 12px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

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

  .section-heading {
    display: block;
  }

  .three-cols,
  .four-cols,
  .five-cols,
  .six-cols,
  .category-grid,
  .category-overview-grid,
  .compact-list {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 16px;
  }

  .poster-frame {
    aspect-ratio: 16 / 10;
  }

  .compact-cover {
    flex-basis: 112px;
    height: 78px;
  }

  .movie-facts {
    grid-template-columns: 1fr;
  }

  .prev-next-links {
    flex-direction: column;
  }

  .ranking-table th:nth-child(3),
  .ranking-table td:nth-child(3),
  .ranking-table th:nth-child(4),
  .ranking-table td:nth-child(4) {
    display: none;
  }
}
