:root {
  --color-amber: #d97706;
  --color-amber-dark: #b45309;
  --color-orange: #ea580c;
  --color-red: #dc2626;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-soft: #fff7ed;
  --color-line: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 999;
  transform: translateY(-140%);
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: #111827;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-red));
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.28);
}

.logo-text-wrap {
  display: grid;
  line-height: 1.12;
}

.logo-text {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 9px 15px;
  border-radius: 12px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: var(--color-amber);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #374151;
}

.mobile-nav {
  padding: 12px 16px 18px;
  background: #ffffff;
  border-top: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
}

.mobile-nav .nav-link {
  display: block;
  margin: 4px 0;
}

.mobile-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-line);
}

.mobile-category-row a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--color-amber-dark);
  background: #fffbeb;
  font-size: 13px;
}

main {
  min-height: 60vh;
}

.home-hero,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding-top: 120px;
}

.home-hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 42%, #fef2f2 100%);
}

.hero-bg,
.hero-bg .blob {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.22;
  animation: pulseBlob 6s ease-in-out infinite;
}

.blob-one {
  top: 140px;
  left: 6%;
  background: #f59e0b;
}

.blob-two {
  top: 210px;
  right: 8%;
  background: #fb923c;
  animation-delay: 1.2s;
}

.blob-three {
  bottom: 80px;
  left: 46%;
  background: #ef4444;
  animation-delay: 2s;
}

@keyframes pulseBlob {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 54px;
  align-items: center;
  padding-bottom: 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--color-amber-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 8px;
  color: var(--color-amber);
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 680px;
  margin: 22px 0 0;
  color: #4b5563;
  font-size: 18px;
}

.hero-search {
  display: flex;
  width: min(620px, 100%);
  margin-top: 30px;
  padding: 6px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px 18px;
  background: transparent;
}

.hero-search button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.button.primary {
  color: #ffffff;
  background: var(--color-amber);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
}

.button.secondary {
  color: var(--color-amber-dark);
  background: #ffffff;
  border: 2px solid var(--color-amber);
}

.button.white {
  color: var(--color-amber-dark);
  background: #ffffff;
}

.hero-search button:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(217, 119, 6, 0.26);
}

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

.hero-carousel {
  position: relative;
  height: 560px;
  border-radius: 34px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow-soft);
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.88));
}

.hero-slide-info {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 1;
  color: #ffffff;
}

.hero-slide-info span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.hero-slide-info h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.hero-slide-info p {
  margin: 10px 0 16px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-slide-info a {
  display: inline-flex;
  padding: 9px 16px;
  border-radius: 999px;
  color: #111827;
  background: #ffffff;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-dots button.active {
  width: 28px;
  background: #ffffff;
}

.stats-section {
  padding: 48px 0;
  background: #ffffff;
}

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

.stat-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--color-amber);
  font-size: 36px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--color-muted);
}

.content-section {
  padding: 78px 0;
  background: #ffffff;
}

.content-section.tinted {
  background: linear-gradient(135deg, #f9fafb, #fff7ed);
}

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-amber-dark);
  font-weight: 800;
}

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

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

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

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

.movie-card[hidden] {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.75);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-7px);
  border-color: rgba(217, 119, 6, 0.32);
  box-shadow: var(--shadow-soft);
}

.poster-wrap {
  position: relative;
  height: 238px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.featured-grid .poster-wrap {
  height: 290px;
}

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

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

.poster-type,
.poster-year,
.rank-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-type {
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  background: rgba(17, 24, 39, 0.72);
}

.poster-year {
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  background: rgba(217, 119, 6, 0.92);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: linear-gradient(135deg, var(--color-red), var(--color-amber));
}

.poster-play {
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 30px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-amber-dark);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card-link:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

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

.card-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.card-title-row h3 {
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title-row strong {
  color: var(--color-amber);
  font-size: 15px;
}

.movie-line {
  display: -webkit-box;
  min-height: 46px;
  margin: 12px 0;
  overflow: hidden;
  color: #5b6472;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  gap: 10px;
  color: var(--color-muted);
  font-size: 13px;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 650;
}

.gradient-cta {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange), var(--color-red));
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
}

.cta-panel p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #111827;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card img,
.category-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-card img {
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.4s ease;
}

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

.category-overlay {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.86));
}

.category-content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  color: #ffffff;
}

.category-content strong,
.category-content em,
.category-content small {
  display: block;
}

.category-content strong {
  font-size: 24px;
  line-height: 1.2;
}

.category-content em {
  margin-top: 5px;
  color: #fef3c7;
  font-style: normal;
  font-weight: 750;
}

.category-content small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero {
  padding-bottom: 76px;
  background: linear-gradient(135deg, #fff7ed, #ffffff 45%, #fef2f2);
}

.compact-hero .container,
.ranking-hero .container {
  padding-top: 78px;
}

.compact-hero h1,
.ranking-hero h1,
.category-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 70px);
}

.category-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: center;
  padding-top: 76px;
}

.mini-poster-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  transform: rotate(-2deg);
}

.mini-poster-stack img {
  height: 190px;
  width: 100%;
  border: 8px solid #ffffff;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.catalog-toolbar,
.search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.catalog-toolbar label,
.search-panel label {
  display: grid;
  gap: 6px;
}

.catalog-toolbar label span,
.search-panel label span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 750;
}

.catalog-toolbar input,
.catalog-toolbar select,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  outline: none;
  padding: 12px 14px;
  background: #f9fafb;
}

.catalog-toolbar input:focus,
.catalog-toolbar select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(217, 119, 6, 0.62);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.catalog-count,
.search-result-meta {
  color: var(--color-muted);
  font-weight: 650;
}

.catalog-count strong,
.search-result-meta strong {
  color: var(--color-amber-dark);
}

.empty-state {
  padding: 40px;
  border-radius: var(--radius-xl);
  background: #fff7ed;
  color: #92400e;
  font-weight: 750;
  text-align: center;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.podium-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.podium-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.88));
}

.podium-card span,
.podium-card strong,
.podium-card em {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
}

.podium-card span {
  top: 22px;
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-red));
  font-weight: 900;
}

.podium-card strong {
  bottom: 52px;
  font-size: 28px;
  line-height: 1.15;
}

.podium-card em {
  bottom: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.detail-hero {
  padding-bottom: 58px;
  background: linear-gradient(135deg, #fff7ed, #f9fafb 46%, #fef2f2);
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding-top: 76px;
}

.detail-poster {
  overflow: hidden;
  border: 10px solid #ffffff;
  border-radius: 34px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  box-shadow: var(--shadow-soft);
}

.detail-poster img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.detail-info h1 {
  max-width: 900px;
  font-size: clamp(38px, 5.6vw, 68px);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.detail-meta-grid div {
  padding: 16px;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.detail-meta-grid span,
.detail-meta-grid strong {
  display: block;
}

.detail-meta-grid span {
  color: var(--color-muted);
  font-size: 13px;
}

.detail-meta-grid strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: var(--shadow-soft);
}

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

.player-overlay-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.20), rgba(15, 23, 42, 0.70));
  cursor: pointer;
}

.player-card.is-playing .player-overlay-button {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-red));
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.45);
  font-size: 28px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 3;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
}

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

.detail-article,
.review-card {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-article h2,
.review-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.2;
}

.detail-article p,
.review-card p {
  margin: 0;
  color: #4b5563;
}

.review-card {
  background: #fffbeb;
  border-left: 5px solid var(--color-amber);
}

.review-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.review-card dl div {
  display: grid;
  gap: 3px;
}

.review-card dt {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 750;
}

.review-card dd {
  margin: 0;
  color: #78350f;
  font-weight: 700;
}

.search-panel {
  grid-template-columns: minmax(260px, 1fr) 200px 180px;
}

.search-result-meta {
  margin: 18px 0 24px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 48%, #111827);
}

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

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

.footer-grid p {
  margin: 12px 0 0;
  color: #9ca3af;
}

.footer-brand .logo-mark {
  width: 34px;
  height: 34px;
}

.footer-brand strong {
  color: #ffffff;
  font-size: 20px;
}

.footer-note {
  color: #fbbf24 !important;
}

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

.footer-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: #fbbf24;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(156, 163, 175, 0.22);
  color: #9ca3af;
  font-size: 14px;
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-carousel {
    height: 460px;
  }

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

  .catalog-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-count {
    grid-column: 1 / -1;
  }

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

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

  .header-inner {
    min-height: 66px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

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

  .logo-subtitle {
    display: none;
  }

  .home-hero,
  .page-hero,
  .detail-hero {
    padding-top: 96px;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-layout {
    gap: 30px;
    padding-bottom: 42px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-search {
    display: grid;
    border-radius: 22px;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-actions,
  .cta-panel,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-carousel {
    height: 410px;
    border-radius: 24px;
  }

  .stats-grid,
  .podium-grid,
  .detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .movie-grid,
  .featured-grid,
  .ranking-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .featured-grid .poster-wrap {
    height: 310px;
  }

  .catalog-toolbar,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .detail-poster img {
    height: 420px;
  }

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