:root {
  --amber-50: #fff8e7;
  --amber-100: #ffedbf;
  --amber-200: #f9d976;
  --amber-400: #f6a621;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-900: #7c2d12;
  --yellow-50: #fefce8;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f2d7a0;
  --paper: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, var(--amber-50), var(--yellow-50) 48%, #fff7ed);
  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 {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 248, 231, 0.95), rgba(254, 252, 232, 0.94), rgba(255, 237, 213, 0.95));
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.12);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  color: #8a3c09;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--amber-600);
  font-size: 12px;
}

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

.nav-link {
  color: #9a4b11;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  position: relative;
  width: min(280px, 26vw);
}

.header-search input,
.mobile-search input,
.quick-search-card input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 10px 44px 10px 18px;
}

.header-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.header-search input:focus,
.mobile-search input:focus,
.quick-search-card input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

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

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

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

.mobile-search input {
  padding: 11px 16px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: white;
  background: var(--orange-600);
}

.mobile-link {
  display: block;
  padding: 10px 0;
  color: #9a4b11;
  font-weight: 700;
}

.mobile-link.active {
  color: var(--orange-600);
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #120904;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.04);
}

.hero-shade,
.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 70% 35%, rgba(249, 115, 22, 0.26), transparent 32%),
    linear-gradient(90deg, rgba(17, 9, 3, 0.95), rgba(60, 24, 6, 0.82) 46%, rgba(0, 0, 0, 0.25)),
    linear-gradient(0deg, rgba(12, 7, 3, 0.92), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.58fr);
  gap: 44px;
  align-items: center;
  padding: 70px 0 84px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--orange-600);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 900px;
  font-size: clamp(36px, 6vw, 76px);
}

.hero-copy h2 {
  margin-top: 16px;
  color: #fff8e7;
  font-size: clamp(30px, 4.8vw, 58px);
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 248, 231, 0.9);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(255, 237, 191, 0.92);
  font-size: 12px;
  font-weight: 800;
}

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

.btn-primary,
.btn-ghost,
.quick-search-card button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  padding: 0 24px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.32);
}

.btn-ghost {
  padding: 0 22px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-ghost:hover,
.quick-search-card button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(360px, 100%);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  aspect-ratio: 2 / 3;
  background: #1f130a;
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span,
.play-glow,
.video-cover span {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(234, 88, 12, 0.92));
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.34);
}

.hero-poster span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search-section,
.section-block {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-search-section {
  transform: translateY(-34px);
  position: relative;
  z-index: 5;
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search-card h2,
.section-title-row h2,
.detail-section h2,
.detail-side h2,
.overview-body h2,
.category-card h2 {
  margin: 0;
  color: #7c2d12;
  line-height: 1.16;
}

.quick-search-card form {
  display: flex;
  gap: 12px;
}

.quick-search-card input {
  min-height: 50px;
  padding: 0 18px;
}

.quick-search-card button {
  min-width: 108px;
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.section-block {
  padding: 54px 0;
}

.section-block.narrow {
  max-width: 980px;
}

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

.section-title-row.tight {
  margin-bottom: 16px;
}

.section-title-row h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-more {
  min-height: 38px;
  padding: 0 16px;
  color: var(--orange-600);
  background: #fff3d6;
}

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

.category-card,
.overview-card,
.movie-card,
.ranking-panel,
.detail-section,
.detail-side,
.filter-bar,
.quick-search-card {
  border: 1px solid rgba(217, 119, 6, 0.13);
}

.category-card {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.9));
  box-shadow: 0 16px 34px rgba(146, 64, 14, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 55px rgba(146, 64, 14, 0.18);
}

.category-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 900;
}

.category-card p,
.overview-body p {
  color: var(--muted);
}

.category-samples,
.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-samples a,
.overview-links a {
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fff3d6;
  font-size: 12px;
  font-weight: 700;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card a {
  display: block;
  height: 100%;
}

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #2b1608;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.08);
  filter: brightness(0.82);
}

.play-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.type-badge {
  right: 10px;
  top: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.card-body {
  padding: 15px;
}

.card-body h2 {
  margin: 0 0 8px;
  color: #3b220f;
  font-size: 17px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
  color: #9a4b11;
  font-size: 12px;
  font-weight: 700;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  min-height: 22px;
  padding: 3px 8px;
  background: #fff3d6;
  font-size: 11px;
}

.movie-card-compact .card-body h2 {
  font-size: 15px;
}

.movie-card-compact .card-body p {
  min-height: 38px;
  font-size: 12px;
}

.movie-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x proximity;
}

.movie-strip .movie-card {
  scroll-snap-align: start;
}

.ranking-panel {
  position: sticky;
  top: 94px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.ranking-list {
  display: grid;
  gap: 10px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 38px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff8e7;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  background: #ffedbf;
  transform: translateX(3px);
}

.ranking-number {
  color: var(--orange-600);
  font-weight: 900;
}

.ranking-item img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: #2b1608;
}

.ranking-text {
  min-width: 0;
}

.ranking-text strong,
.ranking-text em,
.small-card strong,
.small-card em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-text strong {
  color: #3b220f;
  font-size: 14px;
}

.ranking-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.ranking-score {
  color: #b45309;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
}

.page-hero > div {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero.warm {
  background:
    radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.16), transparent 24%),
    linear-gradient(135deg, #fff8e7, #fff7ed);
}

.page-hero.dark {
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.3), transparent 26%),
    linear-gradient(135deg, #2b1205, #7c2d12 64%, #92400e);
}

.page-hero h1 {
  color: #7c2d12;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero.dark h1 {
  color: white;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.page-hero.dark p:not(.eyebrow) {
  color: rgba(255, 248, 231, 0.82);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: #9a4b11;
  font-size: 14px;
  font-weight: 700;
}

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

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.1);
}

.filter-bar-wide {
  grid-template-columns: minmax(260px, 1fr) repeat(4, minmax(130px, 180px));
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
}

.empty-state {
  display: none;
  padding: 50px 20px;
  border-radius: 22px;
  color: #9a4b11;
  text-align: center;
  background: #fff3d6;
  font-weight: 800;
}

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

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

.overview-card {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.overview-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: #2b1608;
}

.detail-hero {
  position: relative;
  min-height: 680px;
  color: white;
  background: #160b05;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.05);
  transform: scale(1.05);
  opacity: 0.48;
}

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 34px;
  align-items: center;
  min-height: 680px;
  padding: 64px 0;
}

.player-shell {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  background: #050505;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: #050505;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  filter: brightness(0.72);
}

.video-cover span {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  font-size: 26px;
}

.detail-info h1 {
  color: white;
  font-size: clamp(34px, 5vw, 60px);
}

.detail-one-line {
  margin: 18px 0 0;
  color: rgba(255, 248, 231, 0.88);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff8e7;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.detail-tags {
  margin: 20px 0 28px;
}

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

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

.detail-section,
.detail-side {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.1);
}

.detail-section h2,
.detail-side h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.detail-section p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 16px;
}

.detail-section p:last-child {
  margin-bottom: 0;
}

.detail-side {
  position: sticky;
  top: 94px;
}

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

.small-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff8e7;
  transition: background 0.2s ease, transform 0.2s ease;
}

.small-card:hover {
  background: #ffedbf;
  transform: translateX(3px);
}

.small-card img {
  width: 66px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  background: #2b1608;
}

.small-card strong {
  color: #3b220f;
  font-size: 14px;
}

.small-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  margin-top: 44px;
  color: #fff8e7;
  background: linear-gradient(135deg, #78350f, #7c2d12 48%, #92400e);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 248, 231, 0.78);
}

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

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 248, 231, 0.82);
}

.footer-links a:hover {
  color: #fde68a;
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(253, 230, 138, 0.24);
  color: rgba(255, 248, 231, 0.72);
  font-size: 14px;
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-poster {
    justify-self: start;
    width: min(260px, 70vw);
  }

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

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

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

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

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

  .hero-carousel,
  .hero-content {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 42px;
    gap: 24px;
  }

  .quick-search-section {
    transform: none;
    padding-top: 18px;
  }

  .quick-search-card,
  .footer-grid,
  .overview-card,
  .ranking-list.wide {
    grid-template-columns: 1fr;
  }

  .quick-search-card form,
  .section-title-row {
    flex-direction: column;
    align-items: stretch;
  }

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

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

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

  .detail-layout {
    padding: 34px 0;
  }

  .detail-info h1 {
    font-size: 34px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h2 {
    font-size: 15px;
  }

  .section-block {
    padding: 36px 0;
  }
}

@media (max-width: 460px) {
  .category-grid,
  .movie-grid,
  .all-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy h2 {
    font-size: 29px;
  }
}
