:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --pink-500: #ec4899;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 28px 60px rgba(15, 23, 42, 0.24);
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 48%, #fff7ed 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container,
.section-block,
.header-inner,
.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500), var(--orange-400));
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.24);
}

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

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

.site-logo {
  min-width: max-content;
  font-size: 22px;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: var(--rose-600);
  background: var(--white);
  box-shadow: inset 0 -4px 10px rgba(225, 29, 72, 0.14);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a,
.mobile-panel a {
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fef08a;
  opacity: 1;
}

.header-search,
.mobile-search,
.quick-search {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.quick-search input {
  width: 230px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 11px 16px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button,
.quick-search button {
  border: 0;
  padding: 11px 18px;
  color: var(--rose-600);
  background: var(--white);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--white);
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-panel a.active,
.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-section {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(125deg, #be123c 0%, #db2777 48%, #f97316 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.20), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(254, 240, 138, 0.25), transparent 28%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.02));
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.9) 12%, transparent 12%, transparent 88%, rgba(255, 255, 255, 0.9) 88%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 12%, transparent 12%, transparent 88%, rgba(255, 255, 255, 0.9) 88%);
  background-size: 54px 54px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 56px 0 76px;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
  gap: 52px;
}

.hero-slide.active {
  display: grid;
  animation: heroFade 0.55s ease both;
}

.hero-kicker,
.section-heading p,
.ranking-head p,
.page-hero p:first-child {
  margin: 0 0 12px;
  color: #fff7ad;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.65;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  padding: 8px 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

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

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

.primary-btn {
  color: var(--rose-600);
  background: var(--white);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.ghost-btn {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-btn.light {
  border-color: rgba(255, 255, 255, 0.48);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-play,
.hover-play {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(12px);
}

.hero-play {
  right: 22px;
  bottom: 22px;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  font-size: 28px;
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 26px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 99px;
  opacity: 0.7;
}

.hero-dot.active {
  width: 34px;
  background: var(--white);
  opacity: 1;
}

.quick-search-section {
  position: relative;
  z-index: 4;
  margin-top: -34px;
}

.quick-search {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.quick-search input {
  flex: 1;
  width: 100%;
  color: var(--gray-900);
  padding: 16px 18px;
}

.quick-search input::placeholder {
  color: var(--gray-500);
}

.quick-search button {
  min-width: 140px;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose-600), var(--orange-500));
}

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

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

.section-heading p,
.ranking-head p {
  color: var(--rose-600);
}

.section-heading h2,
.ranking-head h2,
.content-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-heading a {
  color: var(--rose-600);
  font-weight: 900;
}

.compact-heading {
  align-items: center;
}

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

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

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

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.movie-card a {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 2.65;
  background: linear-gradient(135deg, var(--rose-100), #ffedd5);
}

.movie-grid-large .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

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

.region-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.region-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: var(--rose-500);
}

.year-badge {
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fde047, #f97316);
}

.hover-play {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .hover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-eyebrow {
  margin: 0 0 8px;
  color: var(--rose-600);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h2 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--rose-700);
  background: var(--rose-100);
}

.soft-panel {
  width: min(1220px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 44px;
  border-radius: var(--radius-xl);
  background: linear-gradient(100deg, #ffedd5, #ffe4e6, #fce7f3);
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-tile {
  min-height: 230px;
  padding: 22px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.category-tile img,
.category-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06);
  transition: transform 0.35s ease;
}

.category-tile::after,
.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(15, 23, 42, 0.82) 100%);
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.category-tile:hover img,
.category-cover:hover img {
  transform: scale(1.08);
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.ranking-panel.full {
  position: static;
}

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

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

.rank-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff7ed;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-line:hover {
  transform: translateX(4px);
  background: var(--rose-100);
}

.list-number,
.list-dot {
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.list-number {
  width: 30px;
  height: 30px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--orange-500));
}

.list-dot {
  width: 10px;
  height: 10px;
  background: var(--rose-500);
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-meta {
  color: var(--gray-500);
  font-size: 12px;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(110deg, var(--rose-600), var(--pink-500), var(--orange-500));
  padding: 82px 0;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.75;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 230px;
}

.category-overview-card > div:last-child {
  padding: 26px;
}

.category-cover {
  position: relative;
  min-height: 230px;
  color: var(--white);
  display: grid;
  align-items: end;
  padding: 20px;
  overflow: hidden;
}

.category-cover span {
  position: relative;
  z-index: 2;
  font-size: 24px;
  font-weight: 900;
}

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

.category-overview-card p {
  margin: 0 0 18px;
  color: var(--gray-600);
  line-height: 1.7;
}

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

.category-samples a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--rose-700);
  background: var(--rose-100);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: 0;
  padding: 13px 14px;
  background: #fff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 30px;
  text-align: center;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.empty-state.show {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 46px 0 72px;
  background: linear-gradient(120deg, var(--slate-950), var(--rose-700), var(--orange-500));
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background:
    radial-gradient(circle at 20% 16%, #ffffff, transparent 24%),
    radial-gradient(circle at 90% 70%, #fde047, transparent 22%);
}

.detail-wrap {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--white);
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, 0.12);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 2.8;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 860px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.75;
}

.player-block {
  padding-bottom: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.56));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-trigger span {
  display: grid;
  width: clamp(72px, 10vw, 104px);
  height: clamp(72px, 10vw, 104px);
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  font-size: clamp(28px, 5vw, 44px);
  color: var(--rose-600);
  background: var(--white);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
}

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

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 28px;
}

.content-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.content-card p {
  margin: 16px 0 0;
  color: var(--gray-600);
  line-height: 1.9;
}

.related-grid .movie-card-compact .poster-wrap {
  aspect-ratio: 16 / 10;
}

.site-footer {
  margin-top: 38px;
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-900), var(--slate-800));
}

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

.footer-logo {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 14px;
}

.footer-inner p {
  max-width: 520px;
  margin: 0;
  line-height: 1.75;
}

.footer-inner h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .mobile-panel.open {
    display: block;
  }

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

  .hero-poster {
    min-height: 360px;
    transform: none;
  }

  .hero-poster img {
    min-height: 360px;
  }

  .ranking-panel {
    position: static;
  }

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

  .overview-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .container,
  .section-block,
  .header-inner,
  .footer-inner,
  .hero-inner,
  .mobile-panel {
    width: min(100% - 22px, 1220px);
  }

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

  .hero-section,
  .hero-inner {
    min-height: 0;
  }

  .hero-inner {
    padding: 42px 0 88px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

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

  .hero-controls {
    left: 0;
    right: 0;
    justify-content: center;
  }

  .quick-search {
    display: grid;
    border-radius: 24px;
  }

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

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

  .soft-panel {
    padding: 24px;
  }

  .section-heading,
  .compact-heading {
    display: block;
  }

  .section-heading a {
    display: inline-flex;
    margin-top: 12px;
  }

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

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

  .movie-card h2 {
    font-size: 16px;
  }

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

  .category-cover {
    min-height: 260px;
  }

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

  .detail-hero {
    padding: 30px 0 48px;
  }

  .detail-grid {
    gap: 24px;
  }

  .detail-poster {
    max-width: 280px;
  }

  .two-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .movie-grid-large,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 300px;
  }

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

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

  .rank-meta {
    grid-column: 2;
  }
}
