:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --blue: #60a5fa;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --panel: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.96), rgba(139, 92, 246, 0.94), rgba(96, 165, 250, 0.94));
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.22);
  backdrop-filter: blur(18px);
}

.nav-shell {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  margin-left: auto;
}

.main-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 180px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  color: #374151;
}

.dropdown-panel a:hover {
  color: var(--pink-dark);
  background: #fdf2f8;
}

.nav-search {
  display: flex;
  align-items: center;
  width: min(330px, 32vw);
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 9px 12px;
  color: #374151;
  background: transparent;
}

.nav-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.22);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero {
  position: relative;
  height: min(640px, calc(100vh - 72px));
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 0.6s ease;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 45%, rgba(236, 72, 153, 0.26), transparent 30%), linear-gradient(0deg, rgba(17, 24, 39, 0.38), transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  align-items: center;
  gap: 48px;
}

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

.hero-kicker,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 750;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.25);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.hero-tags a {
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  padding: 13px 26px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.34);
}

.ghost-btn {
  padding: 12px 24px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

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

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

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

.hero-dot,
.hero-arrow {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

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

.hero-arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

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

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

.section-heading h2 {
  margin: 0 auto 0 0;
  color: #1f2937;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.1;
}

.section-heading a,
.text-link {
  color: var(--pink-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
}

.movie-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-badge,
.movie-duration {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.movie-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: var(--pink);
}

.movie-duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.68);
}

.movie-body {
  padding: 17px;
}

.movie-body h2,
.ranking-copy h2,
.category-card-large h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-body h2 a:hover,
.ranking-copy h2 a:hover,
.category-card-large h2 a:hover {
  color: var(--pink-dark);
}

.movie-body p,
.ranking-copy p,
.category-card-large p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags a,
.detail-tags a {
  padding: 4px 9px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 0.78rem;
}

.movie-tags a:hover,
.detail-tags a:hover {
  color: var(--pink-dark);
  background: #fce7f3;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 13px;
  color: #6b7280;
  font-size: 0.84rem;
}

.soft-band {
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.86), rgba(237, 233, 254, 0.86), rgba(219, 234, 254, 0.86));
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.horizontal-card img {
  width: 150px;
  height: 118px;
  object-fit: cover;
}

.horizontal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 14px;
}

.horizontal-copy strong {
  color: #1f2937;
  font-size: 1rem;
}

.horizontal-copy em,
.horizontal-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

.horizontal-copy em {
  display: -webkit-box;
  margin: 4px 0 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  padding: 68px 0;
}

.category-panel,
.ranking-panel,
.related-panel,
.detail-card,
.player-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.category-panel,
.ranking-panel {
  padding: 24px;
}

.compact-heading {
  margin-bottom: 20px;
}

.compact-heading h2 {
  font-size: 1.65rem;
}

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

.category-tile {
  display: block;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(236, 72, 153, 0.13);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 1 / 0.8;
  border-radius: 12px;
  object-fit: cover;
}

.category-tile strong {
  display: block;
  color: #1f2937;
  font-size: 1.05rem;
}

.category-tile em {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.ranking-list a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-list a:hover {
  background: #fdf2f8;
  transform: translateX(3px);
}

.rank-num {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 850;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.rank-title {
  overflow: hidden;
  color: #1f2937;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.page-hero {
  padding: 78px 0;
  color: #fff;
}

.gradient-hero {
  background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
}

.search-hero {
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(90deg, #3b82f6, var(--purple), var(--pink));
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.06;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
}

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

.detail-breadcrumb-wrap {
  padding: 18px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.detail-breadcrumb-wrap .breadcrumb {
  margin: 0;
  color: #6b7280;
}

.detail-breadcrumb-wrap .breadcrumb a:hover {
  color: var(--pink-dark);
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  border-radius: 14px;
  object-fit: cover;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 166px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.ranking-cover img {
  width: 100%;
  height: 126px;
  object-fit: cover;
}

.ranking-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 850;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.search-page-form {
  display: flex;
  gap: 10px;
  width: min(680px, 100%);
  margin-top: 28px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  border-radius: 999px;
  color: #111827;
  background: transparent;
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
  border-radius: 24px;
  color: var(--muted);
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.empty-state h2 {
  margin: 0 0 8px;
  color: #1f2937;
}

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

.detail-main {
  min-width: 0;
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.player-box {
  position: relative;
  background: #050816;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(0deg, rgba(5, 8, 22, 0.48), rgba(5, 8, 22, 0.16));
  cursor: pointer;
}

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

.play-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 22px 40px rgba(236, 72, 153, 0.32);
}

.player-overlay strong {
  max-width: min(80%, 560px);
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 18px;
  color: #111827;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-meta-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
  color: #1f2937;
}

.detail-text {
  margin-top: 24px;
}

.detail-text h2,
.related-panel h2 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 1.35rem;
}

.detail-text p {
  margin: 0 0 12px;
  color: #4b5563;
}

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

.related-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 22px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: #fdf2f8;
  transform: translateX(3px);
}

.compact-card img {
  width: 100px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #1f2937;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-logo {
  margin-bottom: 14px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.05rem;
}

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

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

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

  .horizontal-grid,
  .ranking-page-grid,
  .category-list-grid {
    grid-template-columns: 1fr;
  }

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

  .related-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-shell {
    height: 64px;
  }

  .main-nav,
  .nav-search {
    display: none;
  }

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

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

  .hero {
    min-height: 640px;
    height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
    min-height: 640px;
  }

  .hero-slide.active {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 56px 0 82px;
  }

  .hero-poster {
    max-width: 280px;
    transform: none;
  }

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

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

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

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

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

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

  .movie-grid,
  .wide-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .horizontal-card,
  .ranking-card,
  .category-card-large {
    grid-template-columns: 1fr;
  }

  .horizontal-card img,
  .ranking-cover img {
    width: 100%;
    height: 190px;
  }

  .category-covers {
    min-height: 170px;
  }

  .detail-card,
  .category-panel,
  .ranking-panel,
  .related-panel {
    padding: 18px;
  }

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

  .search-page-form {
    border-radius: 22px;
    flex-direction: column;
  }
}
