:root {
  --color-primary: #f97316;
  --color-secondary: #ec4899;
  --color-rose: #f43f5e;
  --color-amber: #f59e0b;
  --color-blue: #0ea5e9;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-500: #64748b;
  --color-slate-700: #334155;
  --color-slate-900: #0f172a;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-slate-900);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfeff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.site-nav {
  max-width: var(--max-width);
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.3);
}

.logo-text {
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--color-slate-700);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--color-slate-100);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-slate-700);
}

.mobile-menu {
  display: none;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--color-slate-200);
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg, #f97316 0%, #f43f5e 45%, #ec4899 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  min-height: 580px;
  margin: 0 auto;
  padding: 88px 20px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 42px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 30px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  opacity: 0.92;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.hero-search,
.search-box-large {
  display: flex;
  width: min(100%, 620px);
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-search input,
.search-box-large input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 18px;
  color: var(--color-slate-900);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.hero-search button,
.search-box-large button,
.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 14px 24px rgba(236, 72, 153, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-search button:hover,
.search-box-large button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(236, 72, 153, 0.36);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-pills a,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-carousel {
  position: relative;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  backdrop-filter: blur(14px);
}

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

.hero-poster {
  min-height: 330px;
  border-radius: 30px 30px 0 0;
}

.hero-slide-copy {
  padding: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.78));
}

.hero-slide-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.8rem;
  line-height: 1.1;
}

.hero-slide-copy p {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  opacity: 0.9;
}

.hero-watch {
  display: inline-flex;
  padding: 9px 15px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.22);
}

.hero-dots {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  width: 28px;
  background: #fff;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(0deg, #f8fafc, rgba(248, 250, 252, 0));
}

.hero-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.22;
  background: #fff;
}

.hero-glow-one {
  top: -90px;
  right: 12%;
}

.hero-glow-two {
  bottom: -110px;
  left: 8%;
}

.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 20px;
}

.inner-tight {
  padding-top: 60px;
  padding-bottom: 60px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 34px;
}

.section-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 14px 24px rgba(236, 72, 153, 0.22);
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--color-slate-500);
}

.featured-grid,
.movie-grid,
.rank-grid,
.category-grid,
.category-large-grid,
.info-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.wide-rank-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
}

.movie-card.compact {
  border-radius: var(--radius-lg);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 180px;
  background: linear-gradient(135deg, #fb923c, #ec4899 55%, #8b5cf6);
}

.poster-frame::after {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 4rem;
  font-weight: 900;
}

.poster-frame.image-missing::after {
  display: flex;
}

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

.movie-card:hover .poster-frame img,
.hero-slide:hover .poster-frame img {
  transform: scale(1.08);
}

.movie-card > .poster-frame {
  aspect-ratio: 3 / 4;
}

.featured-grid .movie-card > .poster-frame {
  aspect-ratio: 4 / 5;
}

.poster-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.68));
  pointer-events: none;
}

.rating-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.rating-badge {
  top: 12px;
  right: 12px;
  min-width: 46px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--color-amber);
}

.rating-badge.big {
  top: 18px;
  right: 18px;
  min-width: 62px;
  height: 40px;
  font-size: 1.1rem;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

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

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: var(--color-primary);
}

.movie-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--color-slate-500);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.tag-list,
.detail-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta span,
.tag-list span,
.detail-meta span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--color-slate-700);
  background: var(--color-slate-100);
  font-size: 0.82rem;
  font-weight: 700;
}

.tag-list span,
.detail-tags a {
  color: #fff;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.85), rgba(236, 72, 153, 0.85));
}

.rank-strip {
  background: linear-gradient(90deg, #f3e8ff 0%, #fce7f3 50%, #fee2e2 100%);
}

.category-tile,
.category-card-large,
.text-panel,
.side-card,
.search-console {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.category-tile {
  min-height: 170px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
}

.category-tile span,
.category-card-head span {
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile strong,
.category-card-head strong {
  width: fit-content;
  padding: 7px 13px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.category-tile small,
.category-card-large p {
  color: var(--color-slate-500);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg, #f97316 0%, #f43f5e 45%, #ec4899 100%);
}

.page-hero > div {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 82px 20px;
}

.small-hero > div {
  padding-top: 70px;
  padding-bottom: 70px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 1.18rem;
  opacity: 0.92;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.92rem;
  opacity: 0.92;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.filter-panel,
.search-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.sticky-filter {
  position: sticky;
  top: 86px;
  z-index: 20;
}

.filter-panel input,
.filter-panel select,
.search-tools select {
  min-height: 44px;
  border: 1px solid var(--color-slate-200);
  border-radius: 12px;
  padding: 0 14px;
  outline: 0;
  background: #fff;
}

.filter-panel input {
  flex: 1 1 260px;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-tools select:focus,
.search-box-large input:focus {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-count {
  margin-left: auto;
  color: var(--color-slate-500);
  font-weight: 700;
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

.category-card-large {
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-card-large ul {
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.category-card-large li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--color-slate-200);
}

.category-card-large li a {
  color: var(--color-slate-700);
  font-weight: 700;
}

.text-link {
  color: var(--color-primary);
  font-weight: 900;
}

.table-wrap {
  overflow: auto;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.ranking-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-slate-200);
  text-align: left;
  vertical-align: top;
}

.ranking-table th {
  color: var(--color-slate-500);
  background: var(--color-slate-50);
  font-size: 0.86rem;
}

.ranking-table td a {
  display: block;
  font-weight: 900;
}

.ranking-table td small {
  display: block;
  max-width: 620px;
  color: var(--color-slate-500);
}

.table-rank {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-primary));
  font-weight: 900;
}

.search-console {
  padding: 24px;
}

.search-box-large {
  width: 100%;
  margin-bottom: 16px;
  background: var(--color-slate-100);
}

.search-box-large input {
  border: 1px solid var(--color-slate-200);
}

.detail-hero {
  min-height: 560px;
  background: var(--color-slate-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  filter: blur(8px);
  transform: scale(1.06);
  opacity: 0.56;
}

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

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.45));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 58px 20px 74px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-hero-inner .breadcrumb {
  grid-column: 1 / -1;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.detail-one-line {
  max-width: 850px;
  margin: 0 0 22px;
  font-size: 1.2rem;
  opacity: 0.9;
}

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.detail-main,
.detail-sidebar {
  display: grid;
  gap: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 65px rgba(15, 23, 42, 0.22);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.4), rgba(15, 23, 42, 0.74));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 18px 35px rgba(236, 72, 153, 0.35);
  font-size: 2rem;
}

.player-overlay strong {
  font-size: 1.4rem;
}

.player-overlay small {
  opacity: 0.82;
}

.player-status {
  margin: 0;
  padding: 12px 16px;
  color: #cbd5e1;
  background: #020617;
  font-size: 0.92rem;
}

.text-panel,
.side-card {
  padding: 26px;
}

.text-panel h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.text-panel p,
.side-card p {
  margin: 0;
  color: var(--color-slate-700);
}

.side-card dl {
  margin: 0;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--color-slate-200);
}

.side-card dt {
  color: var(--color-slate-500);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: var(--color-slate-900);
  font-weight: 700;
}

.accent-card {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.accent-card p,
.accent-card .text-link {
  color: #fff;
}

.site-footer {
  color: #fff;
  background: #111827;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-inner p {
  max-width: 520px;
  color: #9ca3af;
}

.footer-inner h3 {
  margin: 0 0 14px;
}

.footer-inner a,
.footer-inner span {
  display: block;
  margin-bottom: 8px;
  color: #9ca3af;
}

.footer-inner a:hover {
  color: #fff;
}

.footer-stat {
  font-weight: 800;
}

@media (max-width: 1024px) {
  .hero-inner,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 480px;
  }

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

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

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

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

  .nav-links {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

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

  .logo-text {
    font-size: 1.1rem;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 64px;
    grid-template-columns: 1fr;
  }

  .hero-search,
  .search-box-large {
    flex-direction: column;
    border-radius: 24px;
  }

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

  .hero-carousel {
    min-height: 440px;
  }

  .content-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .featured-grid,
  .movie-grid,
  .rank-grid,
  .wide-rank-grid,
  .category-grid,
  .category-large-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .movie-desc {
    min-height: 42px;
    font-size: 0.86rem;
  }

  .detail-hero-inner {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .detail-copy h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .detail-one-line {
    font-size: 1rem;
  }

  .detail-meta,
  .detail-actions {
    display: none;
  }

  .filter-count {
    width: 100%;
    margin-left: 0;
  }

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

@media (max-width: 480px) {
  .featured-grid,
  .movie-grid,
  .rank-grid,
  .wide-rank-grid,
  .category-grid,
  .category-large-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 410px;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: 180px;
  }
}
