:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-900: #0f172a;
  --text: #111827;
  --muted: #64748b;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
  --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--slate-50), var(--amber-50), var(--slate-100));
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
  background: rgba(120, 53, 15, 0.12);
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #78350f, #92400e, #78350f);
  box-shadow: 0 8px 24px rgba(92, 42, 9, 0.24);
  backdrop-filter: blur(16px);
}

.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #fde68a;
}

.brand-text {
  font-size: 25px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fef3c7, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fde68a, #f59e0b 58%, #b45309);
  color: #78350f;
  box-shadow: 0 0 24px rgba(252, 211, 77, 0.5);
  font-size: 15px;
}

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

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

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

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 310px;
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.home-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(146, 64, 14, 0.18);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.home-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.nav-search button,
.mobile-search button,
.search-page-form button,
.home-search button,
.btn,
.hero-arrows button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button,
.search-page-form button,
.home-search button,
.btn.primary {
  color: #78350f;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.24);
  padding: 12px 18px;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.home-search button:hover,
.btn:hover,
.hero-arrows button:hover {
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fef3c7;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(253, 230, 138, 0.2);
}

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

.mobile-link {
  display: block;
  color: #fef3c7;
  font-weight: 700;
  padding: 12px 0;
}

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

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #92400e 52%, #0f172a);
  color: #fff7ed;
}

.hero-slider {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  transform: translateX(26px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0 auto 0 45%;
  width: 55vw;
  background-image: linear-gradient(90deg, rgba(120, 53, 15, 0.95), rgba(15, 23, 42, 0.25)), var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  filter: saturate(1.1);
  border-radius: 0 0 0 80px;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.28;
  animation: glowPulse 5s ease-in-out infinite;
}

.hero-glow.one {
  width: 180px;
  height: 180px;
  background: #fde68a;
  top: 80px;
  left: 10%;
}

.hero-glow.two {
  width: 240px;
  height: 240px;
  background: #f59e0b;
  bottom: 70px;
  right: 12%;
  animation-delay: 0.8s;
}

.hero-glow.three {
  width: 130px;
  height: 130px;
  background: #fcd34d;
  top: 46%;
  left: 35%;
  animation-delay: 1.6s;
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 64px;
}

.hero-kicker {
  display: inline-flex;
  color: #fcd34d;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero-content h2,
.page-hero h1,
.detail-info-card h1,
.home-search h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-content h2 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  background: linear-gradient(90deg, #fef3c7, #fde68a, #fff7ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #fde68a;
  font-size: 21px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.chip-row a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.14);
  color: #fef3c7;
  border: 1px solid rgba(253, 230, 138, 0.3);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

.btn.ghost {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(253, 230, 138, 0.26);
}

.btn.subtle {
  color: #fde68a;
  background: rgba(15, 23, 42, 0.22);
}

.hero-poster {
  position: relative;
  z-index: 2;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(253, 230, 138, 0.24);
}

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

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(254, 243, 199, 0.8);
  background: transparent;
  cursor: pointer;
}

.hero-dot.is-active {
  width: 32px;
  background: #fcd34d;
}

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

.hero-arrows button {
  width: 44px;
  height: 44px;
  color: #78350f;
  background: #fef3c7;
  font-size: 30px;
  line-height: 1;
}

.lift-card {
  position: relative;
  z-index: 4;
  margin-top: -54px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 30px;
}

.home-search {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.home-search h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.home-search p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.home-search form,
.search-page-form {
  display: flex;
  gap: 12px;
}

.chip-row {
  grid-column: 1 / -1;
}

.chip-row a {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.section-block {
  margin-top: 54px;
  margin-bottom: 54px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.04em;
}

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

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #92400e);
}

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

.poster-wrap.small img {
  height: 210px;
}

.movie-card-link:hover img {
  transform: scale(1.07);
}

.poster-type,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: white;
  background: rgba(15, 23, 42, 0.74);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: #f59e0b;
  color: #78350f;
}

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

.movie-meta {
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
  padding: 4px 8px;
  font-size: 12px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.panel {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  padding: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 68px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fffbeb;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: #fef3c7;
}

.rank-index {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-weight: 900;
}

.rank-row img {
  width: 68px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
}

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

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

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

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

.category-card {
  display: block;
  border-radius: 20px;
  padding: 22px;
  min-height: 150px;
  background: linear-gradient(135deg, #fff, #fffbeb);
  border: 1px solid #fde68a;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
  display: block;
  font-size: 22px;
  color: #78350f;
  margin-bottom: 12px;
}

.category-card span {
  color: var(--muted);
  line-height: 1.7;
}

.category-card.small {
  min-height: auto;
  margin-top: 12px;
}

.closing-banner,
.page-hero {
  color: #fff7ed;
  background: linear-gradient(135deg, #78350f, #92400e 58%, #0f172a);
  position: relative;
  overflow: hidden;
}

.closing-banner {
  margin-top: 70px;
  padding: 74px 0;
  text-align: center;
}

.closing-banner h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
}

.closing-banner p,
.page-hero p {
  color: #fde68a;
  font-size: 18px;
  line-height: 1.8;
}

.page-hero {
  padding: 76px 0;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(34px, 6vw, 58px);
}

.page-hero p {
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #fde68a;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #fff7ed;
}

.category-overview {
  display: grid;
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 60px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  padding: 24px;
}

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

.category-visual img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.8;
}

.category-overview-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding-left: 18px;
}

.category-overview-card li a:hover {
  color: var(--amber-700);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
}

.filter-bar select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #92400e 50%), linear-gradient(135deg, #92400e 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.is-filtered-out {
  display: none !important;
}

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

.rank-full-row a {
  display: grid;
  grid-template-columns: 56px 92px minmax(0, 1fr) 92px;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-full-row a:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

.rank-full-row b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.rank-full-row img {
  width: 92px;
  height: 70px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-full-main strong,
.rank-full-main em {
  display: block;
}

.rank-full-main strong {
  font-size: 18px;
  margin-bottom: 6px;
}

.rank-full-main em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-full-meta {
  color: var(--amber-700);
  text-align: right;
  font-weight: 900;
  line-height: 1.7;
}

.search-hero .search-page-form {
  max-width: 760px;
  margin-top: 28px;
}

.search-note {
  padding: 18px 22px;
  margin-bottom: 24px;
  border-radius: 18px;
  color: #78350f;
  background: #fef3c7;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  padding: 36px 0 10px;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(120, 53, 15, 0.72), rgba(248, 250, 252, 0)), var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.detail-main .breadcrumb {
  margin-bottom: 20px;
  color: #fef3c7;
}

.player-card,
.detail-info-card,
.side-panel {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.player-card {
  padding: 14px;
}

.video-shell {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay button {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 0;
  color: #78350f;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  cursor: pointer;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.35);
}

.player-overlay span {
  display: inline-block;
  transform: translateX(3px);
  font-size: 34px;
}

.detail-info-card {
  margin-top: 20px;
  padding: 28px;
}

.detail-tags span {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.detail-info-card h1 {
  margin-top: 18px;
  font-size: clamp(32px, 5vw, 52px);
}

.lead {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.85;
}

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

.info-grid span {
  display: block;
  padding: 14px;
  border-radius: 16px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 800;
}

.info-grid b {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.content-section {
  margin-top: 24px;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #fde68a;
}

.content-section.warm {
  background: linear-gradient(135deg, #fffbeb, #fff);
}

.content-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-section p {
  margin: 0;
  color: #334155;
  line-height: 1.9;
  font-size: 17px;
}

.detail-nav-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.detail-nav-row a {
  padding: 14px 16px;
  border-radius: 16px;
  color: #78350f;
  background: #fef3c7;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-side {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 20px;
}

.side-panel {
  padding: 20px;
}

.side-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

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

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

.compact-card img {
  width: 112px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
}

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

.compact-card strong {
  font-size: 15px;
}

.compact-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  margin-top: 5px;
}

.site-footer {
  margin-top: 70px;
  color: #fef3c7;
  background: linear-gradient(180deg, #0f172a, #451a03 48%, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding-top: 48px;
  padding-bottom: 34px;
}

.footer-brand {
  font-size: 21px;
  margin-bottom: 14px;
}

.site-footer p {
  color: #fde68a;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fcd34d;
}

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

.site-footer a {
  color: #fde68a;
}

.site-footer a:hover {
  color: #fef3c7;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-row span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(146, 64, 14, 0.72);
  font-weight: 900;
}

.footer-bottom {
  border-top: 1px solid rgba(253, 230, 138, 0.16);
  text-align: center;
  color: #fcd34d;
  padding: 20px;
}

@media (max-width: 1080px) {
  .nav-search {
    display: none;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

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

  .detail-side {
    position: static;
  }

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

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

@media (max-width: 820px) {
  .site-nav {
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero {
    min-height: 760px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    align-content: center;
    padding-top: 20px;
  }

  .hero-backdrop {
    inset: 0;
    width: 100%;
    border-radius: 0;
  }

  .hero-poster {
    max-width: 250px;
    margin: 0 auto;
  }

  .hero-content h2 {
    font-size: clamp(36px, 12vw, 58px);
  }

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

  .hero-controls {
    bottom: 24px;
  }

  .home-search {
    grid-template-columns: 1fr;
  }

  .home-search form,
  .search-page-form,
  .mobile-search {
    flex-direction: column;
  }

  .feature-grid,
  .movie-grid,
  .hot-grid,
  .category-movie-grid,
  .related-grid,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .rank-full-row a {
    grid-template-columns: 42px 78px minmax(0, 1fr);
  }

  .rank-full-meta {
    display: none;
  }

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

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    min-height: 790px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .feature-grid,
  .movie-grid,
  .hot-grid,
  .category-movie-grid,
  .related-grid,
  .search-results,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap img,
  .poster-wrap.small img {
    height: 240px;
  }

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

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

  .rank-full-row a {
    grid-template-columns: 38px 70px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-full-row img {
    width: 70px;
    height: 58px;
  }

  .info-grid,
  .detail-nav-row {
    grid-template-columns: 1fr;
  }

  .detail-info-card {
    padding: 20px;
  }

  .compact-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .compact-card img {
    width: 96px;
  }
}
