* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 22%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.34);
  font-size: 14px;
}

.site-logo__text,
.footer-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #f43f5e, #ec4899, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: #f43f5e;
}

.header-search,
.mobile-search,
.search-banner,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.search-banner input,
.search-page-form input,
.filter-panel input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  outline: none;
  background: #ffffff;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 210px;
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-banner input:focus,
.search-page-form input:focus,
.filter-panel input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.24);
}

.header-search button,
.mobile-search button,
.search-banner button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 10px 22px rgba(244, 63, 94, 0.24);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  color: #e11d48;
}

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

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

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

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7f8;
  color: #374151;
  font-weight: 700;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 640px;
  color: #ffffff;
  background: #0f172a;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.55), transparent 36%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.78) 48%, rgba(15, 23, 42, 0.62) 100%);
}

.hero-slide__backdrop {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: 100vw;
  transform: translateX(-50%);
  overflow: hidden;
}

.hero-slide__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.52;
}

.hero-slide__content,
.hero-slide__poster {
  position: relative;
  z-index: 2;
}

.hero-controls {
  position: relative;
  z-index: 4;
}

.hero-kicker,
.section-heading span,
.sub-hero span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 8px 14px;
  color: #be123c;
  background: #ffe4e6;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-kicker {
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.32);
}

.hero h1 {
  max-width: 820px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.genre-tags,
.movie-card__tags,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.genre-tags span,
.movie-card__tags span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fecdd3;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.34);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-light {
  color: #be123c;
  background: #ffffff;
}

.hero-slide__poster {
  display: block;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-slide__poster span,
.detail-poster span,
.movie-card__play {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 14px 32px rgba(244, 63, 94, 0.42);
}

.hero-slide__poster span {
  left: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
}

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

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

.hero-dot.is-active {
  width: 54px;
  background: #fb7185;
}

.panel-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.quick-search {
  padding: 58px 0 26px;
}

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

.section-heading.centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

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

.section-heading h2,
.sub-hero h1 {
  margin: 10px 0 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading p,
.sub-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #6b7280;
  line-height: 1.8;
}

.section-heading a {
  color: #e11d48;
  font-weight: 900;
}

.search-banner,
.search-page-form {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 10px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.search-banner input,
.search-page-form input {
  border: 0;
  padding: 16px 20px;
  font-size: 18px;
}

.search-banner input:focus,
.search-page-form input:focus {
  box-shadow: none;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
}

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.88) 100%);
}

.movie-card__play {
  left: 14px;
  bottom: 14px;
  z-index: 1;
  width: 42px;
  height: 42px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .movie-card__play {
  opacity: 1;
  transform: scale(1.05);
}

.movie-card__type {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.66);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.movie-card__body {
  padding: 16px 16px 18px;
}

.movie-card__title {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 800;
}

.movie-card__tags {
  margin-top: 12px;
}

.movie-card__tags span,
.detail-tags span,
.genre-tags span {
  color: #be123c;
  background: #ffe4e6;
}

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

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

.category-card,
.category-overview-card,
.content-card,
.ranking-panel,
.filter-panel {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.category-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

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

.category-card__images img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.category-card strong,
.category-overview-card__title {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.category-card em,
.category-overview-card p {
  color: #6b7280;
  font-style: normal;
  line-height: 1.6;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.ranking-list,
.ranking-page-list,
.compact-list {
  display: grid;
  gap: 12px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 38px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.ranking-row__rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #6b7280;
  background: #f3f4f6;
  font-weight: 900;
}

.ranking-row__rank.hot {
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.ranking-row img {
  width: 54px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

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

.ranking-row strong,
.compact-card strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row em,
.compact-card em {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row__meta {
  color: #e11d48;
  font-size: 13px;
  font-weight: 900;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

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

.sub-hero {
  min-height: 320px;
  display: grid;
  align-items: end;
  padding: 96px max(16px, calc((100vw - 1240px) / 2)) 58px;
  background:
    radial-gradient(circle at 78% 20%, rgba(244, 63, 94, 0.2), transparent 34%),
    linear-gradient(180deg, #fff1f2, #ffffff);
}

.sub-hero > div {
  max-width: 820px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: #e11d48;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
}

.filter-panel input {
  padding: 14px 18px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #4b5563;
  background: #f3f4f6;
  font-weight: 900;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  overflow: hidden;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-card__media {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  align-self: stretch;
}

.category-overview-card__media img {
  height: 100%;
  min-height: 168px;
  border-radius: 16px;
  object-fit: cover;
}

.category-overview-card__body {
  display: grid;
  align-content: center;
  gap: 10px;
}

.category-overview-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-overview-card__links a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #be123c;
  background: #ffe4e6;
  font-size: 12px;
  font-weight: 800;
}

.ranking-page-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.side-movie-grid {
  display: grid;
  gap: 16px;
}

.side-movie-grid .movie-card__title {
  min-height: 0;
}

.search-page-form {
  margin: 0 auto 34px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-hero__backdrop {
  position: absolute;
  inset: 0;
}

.detail-hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 22%, rgba(244, 63, 94, 0.45), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.66));
}

.detail-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  padding: 110px 0 58px;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

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

.detail-poster span {
  left: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
}

.detail-info {
  align-self: center;
}

.detail-info .breadcrumb {
  color: #e5e7eb;
}

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.player-card {
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
}

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

.movie-video {
  width: 100%;
  height: 100%;
  background: #020617;
}

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

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 18px 45px rgba(244, 63, 94, 0.46);
  font-size: 28px;
}

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

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
}

.info-list dt {
  color: #9ca3af;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.compact-list .compact-card {
  box-shadow: none;
  border: 1px solid #f3f4f6;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f9fafb, #fff1f2);
}

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

.site-footer p {
  max-width: 420px;
  color: #6b7280;
  line-height: 1.8;
}

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

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

.footer-links a {
  color: #6b7280;
  font-weight: 700;
}

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid #e5e7eb;
  padding: 18px 0 28px;
  color: #6b7280;
  font-size: 14px;
}

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

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

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

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

  .split-layout,
  .detail-layout,
  .ranking-page-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

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

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

  .site-logo__text,
  .footer-logo {
    font-size: 20px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: end;
    gap: 22px;
    padding: 92px 0 92px;
  }

  .hero-slide__poster {
    width: min(240px, 70vw);
    justify-self: start;
    grid-row: 1;
  }

  .hero h1 {
    font-size: clamp(38px, 14vw, 58px);
  }

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

  .hero-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .panel-section {
    padding: 46px 0;
  }

  .section-heading {
    display: grid;
    justify-content: start;
  }

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

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

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

  .category-overview-card__media img {
    min-height: 132px;
  }

  .ranking-row {
    grid-template-columns: 34px 48px minmax(0, 1fr);
  }

  .ranking-row__meta {
    display: none;
  }

  .sub-hero {
    min-height: 260px;
    padding-top: 76px;
  }

  .detail-hero__inner {
    grid-template-columns: 1fr;
    padding-top: 86px;
  }

  .detail-poster {
    width: min(250px, 72vw);
  }

  .detail-info h1 {
    font-size: clamp(36px, 12vw, 56px);
  }

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

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

  .search-banner,
  .search-page-form {
    border-radius: 26px;
    flex-direction: column;
  }

  .search-banner button,
  .search-page-form button,
  .mobile-search button {
    width: 100%;
  }
}
