:root {
  --bg: #fff8ed;
  --bg-soft: #fff2d8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #eadfce;
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #f97316;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 48%, #fffaf1 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
  box-shadow: 0 8px 30px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: 1240px;
  height: 78px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
  transition: transform 0.25s ease;
}

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

.brand-text strong {
  display: block;
  font-size: 23px;
  color: #111827;
  letter-spacing: -0.02em;
}

.brand-text small {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber);
}

.nav-dropdown {
  position: relative;
  padding: 28px 0;
}

.dropdown-panel {
  position: absolute;
  left: 50%;
  top: 72px;
  width: 260px;
  transform: translateX(-50%) translateY(12px);
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.14);
  box-shadow: 0 24px 60px rgba(31, 41, 55, 0.16);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

.dropdown-panel a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 700;
}

.dropdown-panel a:hover {
  color: var(--amber);
  background: #fff7ed;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header-search {
  width: 260px;
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

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

.header-search button {
  width: 42px;
  height: 40px;
  border: 0;
  color: var(--amber);
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #78350f;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 11px 16px;
  outline: 0;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--amber);
  font-weight: 800;
}

.mobile-panel nav {
  display: grid;
  gap: 6px;
}

.mobile-panel nav a {
  padding: 11px 8px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-weight: 700;
}

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

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #b45309 0%, #d97706 45%, #f97316 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.7) 1px, transparent 0);
  background-size: 34px 34px;
}

.hero-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  min-height: 620px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: flex;
  align-items: center;
}

.hero-slides {
  position: relative;
  width: 100%;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
  animation: fadeUp 0.65s ease both;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy {
  color: #ffffff;
  max-width: 760px;
}

.hero-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(120, 53, 15, 0.26);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  text-shadow: 0 14px 34px rgba(63, 27, 8, 0.28);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #fffbeb;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-tags,
.tag-list,
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-list span,
.quick-tags a {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
}

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

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

.primary-button {
  color: var(--amber-dark);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(120, 53, 15, 0.2);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(120, 53, 15, 0.18);
}

.ghost-button.light {
  color: var(--amber);
  border-color: #fed7aa;
  background: #fff7ed;
}

.hero-art {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  min-height: 420px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 35px 80px rgba(63, 27, 8, 0.32);
  transform: rotate(1.5deg);
}

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

.hero-art span {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: 36px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.stats-strip {
  max-width: 1180px;
  margin: -48px auto 28px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0 24px;
}

.stats-strip div {
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

.stats-strip strong {
  display: block;
  color: var(--amber);
  font-size: 32px;
  line-height: 1;
  margin-bottom: 6px;
}

.stats-strip span {
  color: var(--muted);
  font-weight: 700;
}

.content-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 24px;
}

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

.section-heading span {
  display: block;
  margin-bottom: 4px;
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.16;
  color: #111827;
}

.section-heading a {
  color: var(--amber);
  font-weight: 900;
}

.section-heading.compact h2 {
  font-size: 28px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(120, 53, 15, 0.18);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f8e7c6;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.58));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  transition: 0.25s ease;
}

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

.year-chip {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber);
  font-weight: 900;
  font-size: 12px;
}

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

.movie-card-body h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h2 a:hover {
  color: var(--amber);
}

.movie-card-body p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

.movie-meta span {
  overflow: hidden;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.category-card,
.overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow);
}

.category-card {
  min-height: 178px;
  padding: 26px;
  transition: transform 0.25s ease;
}

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

.category-card::after,
.overview-main::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: var(--category-color);
  opacity: 0.12;
}

.category-badge,
.overview-main span {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--category-color);
  font-size: 13px;
  font-weight: 900;
}

.category-card h3,
.overview-card h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 21px;
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 100px;
  padding: 26px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

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

.compact-item {
  display: grid;
  grid-template-columns: auto 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease;
}

.rank-panel .compact-item {
  grid-template-columns: auto 96px minmax(0, 1fr);
  box-shadow: none;
  background: #fffaf1;
}

.compact-item:hover {
  transform: translateX(4px);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.compact-poster {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #fdecc8;
}

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

.compact-info {
  min-width: 0;
}

.compact-info h3 {
  margin: 0 0 5px;
  color: #111827;
  font-size: 16px;
  line-height: 1.32;
}

.compact-info p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.compact-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9ca3af;
  font-size: 12px;
}

.wide-cta {
  max-width: 1180px;
  margin: 30px auto 70px;
  padding: 48px 24px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffedd5, #fff7ed, #fef3c7);
  box-shadow: var(--shadow);
  text-align: center;
}

.wide-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.wide-cta p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
}

.wide-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber);
  font-weight: 900;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 24px;
  background: linear-gradient(135deg, #d97706, #f97316);
  color: #ffffff;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  top: -50px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero > div {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}

.page-hero p {
  margin: 0 0 8px;
  color: #fffbeb;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.page-hero span {
  display: block;
  max-width: 760px;
  color: #fff7ed;
  font-size: 19px;
}

.category-hero {
  background: linear-gradient(135deg, var(--category-color), #f97316);
}

.rank-hero {
  background: linear-gradient(135deg, #78350f, #f97316);
}

.search-hero {
  background: linear-gradient(135deg, #1d4ed8, #f97316);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}

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

.breadcrumb a::after {
  content: "/";
  margin-left: 8px;
  color: #d1d5db;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 200px 200px;
  gap: 16px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-bar.slim {
  grid-template-columns: minmax(260px, 1fr);
}

.filter-bar label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select,
.big-search input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  outline: 0;
  color: var(--text);
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus,
.big-search input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

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

.empty-state {
  display: none;
  padding: 54px 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.empty-state h2 {
  margin: 0 0 8px;
  color: #111827;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.overview-card {
  display: grid;
}

.overview-main {
  position: relative;
  padding: 26px;
  min-height: 190px;
}

.overview-links {
  display: grid;
  gap: 8px;
  padding: 0 26px 24px;
}

.overview-links a {
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
}

.overview-links a:hover {
  color: var(--amber);
}

.big-search {
  display: flex;
  max-width: 760px;
  gap: 12px;
  margin-top: 28px;
}

.big-search input {
  min-height: 54px;
  font-size: 18px;
}

.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  color: #ffffff;
  background: #111827;
  font-weight: 900;
  cursor: pointer;
}

.quick-tags {
  margin-top: 18px;
}

.detail-page {
  padding-top: 32px;
}

.detail-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card,
.detail-info,
.detail-side {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
  background: #000000;
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: #000000;
  cursor: pointer;
  overflow: hidden;
}

.player-cover.is-hidden {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  grid-area: 1 / 1;
}

.player-cover-shade {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.66));
}

.big-play {
  grid-area: 1 / 1;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  font-size: 34px;
  transform: translateY(-18px);
}

.player-cover strong {
  grid-area: 1 / 1;
  align-self: end;
  padding: 0 28px 30px;
  font-size: clamp(22px, 4vw, 38px);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.46);
}

.detail-info {
  padding: 30px;
}

.detail-info h1 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-weight: 800;
  font-size: 14px;
}

.lead-text {
  margin: 0 0 20px;
  color: #374151;
  font-size: 18px;
}

.detail-info .tag-list span {
  color: #4b5563;
  background: #f3f4f6;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.detail-actions .primary-button {
  color: #ffffff;
  background: var(--amber);
}

.story-block {
  padding-top: 26px;
  border-top: 1px solid #f1e5d4;
}

.story-block h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 24px;
}

.story-block p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.detail-side {
  position: sticky;
  top: 100px;
  padding: 22px;
}

.detail-side h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 24px;
}

.side-related {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: #fdecc8;
}

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

.side-cover span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.26);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.side-related:hover .side-cover span {
  opacity: 1;
}

.side-related h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 15px;
  line-height: 1.3;
}

.side-related h3 a:hover {
  color: var(--amber);
}

.side-related p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.related-bottom {
  padding-top: 44px;
}

.site-footer {
  margin-top: 36px;
  color: #d1d5db;
  background: #111827;
}

.footer-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 36px;
}

.brand-footer .brand-text strong {
  color: #ffffff;
}

.footer-brand p {
  max-width: 420px;
  color: #9ca3af;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-column a {
  color: #d1d5db;
}

.footer-column a:hover {
  color: #f59e0b;
}

.footer-bottom {
  padding: 18px 24px;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  text-align: center;
}

.is-hidden-by-filter {
  display: none;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-slide,
  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 420px;
    min-height: 360px;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }

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

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

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

@media (max-width: 780px) {
  .nav-shell {
    height: 68px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

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

  .brand-text small {
    display: none;
  }

  .hero-section,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell {
    padding: 44px 16px 86px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-actions,
  .big-search {
    flex-direction: column;
  }

  .hero-art {
    min-height: auto;
    max-width: none;
    transform: none;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -30px;
    padding: 0 16px;
  }

  .content-section,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid-two,
  .category-movie-grid,
  .category-grid,
  .overview-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

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

  .compact-item {
    grid-template-columns: auto 110px minmax(0, 1fr);
  }

  .rank-panel .compact-item {
    grid-template-columns: auto 96px minmax(0, 1fr);
  }

  .page-hero {
    padding: 56px 16px;
  }

  .detail-info,
  .detail-side {
    padding: 22px;
  }

  .side-related {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .footer-shell {
    grid-template-columns: 1fr;
    padding: 38px 16px;
  }
}

@media (max-width: 500px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .compact-item,
  .rank-panel .compact-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .compact-item .rank-number {
    display: none;
  }

  .compact-poster {
    grid-column: 1;
  }

  .compact-info {
    grid-column: 2;
  }

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