* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 45%, #fef3c7 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.12);
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.28);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
  color: transparent;
  background: linear-gradient(135deg, #ea580c, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small,
.footer-brand small {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #ea580c;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: #ea580c;
  background: #ffedd5;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid #fed7aa;
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #f97316;
}

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

.hero-slide {
  opacity: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.32), transparent 26%), linear-gradient(180deg, transparent 76%, #fffbeb 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
  min-height: 660px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
  color: #ffffff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff7ed;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 16px 30px rgba(194, 65, 12, 0.28);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  border-radius: 16px;
  padding: 12px;
  color: #ffffff;
  font-weight: 800;
  text-align: center;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-controls button,
.carousel-btn {
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ea580c;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.2);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  font-size: 0;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-glow {
  position: absolute;
  z-index: 3;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(2px);
  animation: float 6s ease-in-out infinite;
}

.hero-glow-one {
  top: 70px;
  left: 8%;
}

.hero-glow-two {
  right: 12%;
  bottom: 120px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-22px);
  }
}

.intro-panel {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 24px;
  align-items: center;
  margin-top: -38px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(154, 52, 18, 0.14);
}

.intro-panel h2,
.section-heading h2,
.sub-hero h1,
.detail-intro h1 {
  margin: 0;
  color: #1f2937;
  letter-spacing: -0.04em;
}

.intro-panel h2 {
  font-size: clamp(26px, 3.3vw, 42px);
}

.intro-panel p,
.section-heading p,
.sub-hero p,
.movie-summary,
.detail-section p,
.poster-card p,
.category-overview p {
  color: #6b7280;
  line-height: 1.75;
}

.quick-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #374151;
  background: #ffffff;
}

.quick-search input {
  min-width: 0;
  padding: 0 14px;
  background: transparent;
}

.quick-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

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

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.section-link {
  min-height: 40px;
  color: #ea580c;
  background: #ffedd5;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(154, 52, 18, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(154, 52, 18, 0.16);
}

.cover-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

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

.cover-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
  transition: opacity 0.2s ease;
}

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

.duration,
.category-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(8px);
}

.category-pill {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.68);
}

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

.movie-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.38;
}

.movie-card h2 a:hover {
  color: #ea580c;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #f97316;
}

.movie-summary {
  display: -webkit-box;
  min-height: 3.5em;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: #c2410c;
  background: #ffedd5;
}

.ranking-band,
.category-band {
  padding: 72px 0;
  background: linear-gradient(100deg, #ffedd5, #fef3c7, #fff7ed);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.ranking-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.ranking-copy p {
  margin-bottom: 24px;
  color: #6b7280;
  line-height: 1.8;
}

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

.ranking-list a,
.rank-line {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.08);
}

.ranking-list span,
.rank-line span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.ranking-list em,
.rank-line em {
  color: #ea580c;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.carousel {
  position: relative;
}

.carousel-window {
  overflow: hidden;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 4px 20px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 42%;
  z-index: 4;
}

.carousel-btn.prev {
  left: -16px;
}

.carousel-btn.next {
  right: -16px;
}

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

.category-tile,
.category-overview {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 24px;
  padding: 24px;
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(154, 52, 18, 0.13);
  transition: transform 0.2s ease;
}

.category-tile:hover,
.category-overview:hover {
  transform: translateY(-5px);
}

.category-tile span,
.category-overview-head span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 18px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.22);
}

.category-tile strong,
.category-overview h2 {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.category-tile small {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.accent-orange { background: linear-gradient(135deg, #f97316, #f59e0b); }
.accent-amber { background: linear-gradient(135deg, #d97706, #fbbf24); }
.accent-green { background: linear-gradient(135deg, #16a34a, #14b8a6); }
.accent-rose { background: linear-gradient(135deg, #e11d48, #fb7185); }
.accent-pink { background: linear-gradient(135deg, #db2777, #f472b6); }
.accent-purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.accent-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.accent-teal { background: linear-gradient(135deg, #0d9488, #22c55e); }

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

.waterfall-column {
  display: grid;
  align-content: start;
  gap: 24px;
}

.waterfall-column:nth-child(2) {
  padding-top: 36px;
}

.waterfall-column:nth-child(3) {
  padding-top: 72px;
}

.sub-hero {
  position: relative;
  padding: 72px 0 62px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b, #fde047);
  overflow: hidden;
}

.sub-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.sub-hero .container {
  position: relative;
  z-index: 2;
}

.sub-hero h1 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 66px);
}

.sub-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

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

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

.category-overview {
  min-height: auto;
  color: #ffffff;
}

.category-overview p {
  color: rgba(255, 255, 255, 0.9);
}

.category-overview-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.category-overview-head span {
  margin-bottom: 0;
}

.category-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.category-preview-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
}

.filter-panel {
  margin-bottom: 28px;
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(154, 52, 18, 0.1);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(130px, 0.7fr));
  gap: 14px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  height: 44px;
  border-radius: 14px;
  padding: 0 14px;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.empty-result {
  margin: 18px 0 0;
  border-radius: 14px;
  padding: 14px;
  color: #9a3412;
  background: #ffedd5;
}

.ranking-page-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  align-items: start;
}

.rank-sidebar {
  position: sticky;
  top: 92px;
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(154, 52, 18, 0.1);
}

.rank-sidebar h2 {
  margin: 0 0 16px;
}

.rank-line {
  grid-template-columns: 36px 1fr;
  margin-bottom: 10px;
}

.rank-line em {
  grid-column: 2;
}

.detail-wrap {
  padding: 34px 0 32px;
}

.detail-breadcrumb {
  color: #9a3412;
}

.detail-breadcrumb strong {
  color: #374151;
}

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

.player-card,
.detail-section,
.poster-card,
.info-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(154, 52, 18, 0.12);
}

.player-card {
  position: relative;
  margin-bottom: 24px;
  background: #000000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.32));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  padding-left: 6px;
  font-size: 40px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 18px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

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

.detail-section {
  margin-bottom: 24px;
  padding: 28px;
}

.detail-intro h1 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
}

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

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

.detail-tags {
  margin-bottom: 24px;
}

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

.review-box {
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.detail-side {
  display: grid;
  gap: 24px;
}

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

.poster-card div,
.info-card {
  padding: 22px;
}

.poster-card h2,
.info-card h2 {
  margin: 0 0 12px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.info-card dt {
  color: #9a3412;
  font-weight: 900;
}

.info-card dd {
  margin: 0;
  color: #4b5563;
}

.horizontal-card {
  display: flex;
  gap: 14px;
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(154, 52, 18, 0.1);
}

.horizontal-card img {
  width: 132px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.horizontal-card strong,
.horizontal-card small {
  display: block;
}

.horizontal-card small {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #6b7280;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-footer {
  padding: 52px 0 26px;
  color: #e5e7eb;
  background: linear-gradient(180deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 36px;
}

.footer-brand .brand-mark {
  box-shadow: none;
}

.footer-brand strong {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.footer-brand small,
.site-footer p,
.site-footer a {
  color: #9ca3af;
}

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid,
  .catalog-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-content,
  .detail-grid,
  .ranking-page-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .rank-sidebar {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .intro-panel,
  .ranking-layout,
  .footer-grid,
  .category-overview-grid,
  .waterfall-grid {
    grid-template-columns: 1fr;
  }

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

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

  .waterfall-column:nth-child(2),
  .waterfall-column:nth-child(3) {
    padding-top: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

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

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

  .hero-content {
    align-items: end;
    padding-bottom: 100px;
  }

  .hero-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .section-link {
    width: 100%;
  }

  .quick-search,
  .footer-bottom {
    flex-direction: column;
    border-radius: 22px;
  }

  .quick-search input,
  .quick-search button {
    min-height: 44px;
  }

  .movie-grid,
  .catalog-grid,
  .category-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .ranking-list a {
    grid-template-columns: 42px 1fr;
  }

  .ranking-list em {
    grid-column: 2;
  }

  .detail-section,
  .poster-card div,
  .info-card {
    padding: 20px;
  }
}
