@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.36);
  }

  50% {
    box-shadow: 0 0 0 18px rgba(244, 63, 94, 0);
  }
}

:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --orange: #f97316;
  --amber: #f59e0b;
  --pink: #ec4899;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --teal: #14b8a6;
  --violet: #8b5cf6;
  --purple: #a855f7;
  --slate: #0f172a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 14px 32px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, #fff1f2 0%, #f9fafb 420px, #f9fafb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

img.image-missing {
  opacity: 0;
}

main {
  min-height: 70vh;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.logo-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
  font-size: 14px;
}

.logo-text {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
}

.desktop-nav a,
.mobile-panel a {
  transition: color 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--rose);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 250px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #ffffff;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.header-search input {
  padding: 11px 46px 11px 18px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
}

.header-search button {
  position: absolute;
  right: 5px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--gray-800);
}

.mobile-panel {
  padding: 0 16px 18px;
  border-top: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 0;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  padding: 12px 16px;
}

.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 800;
  white-space: nowrap;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: #ffffff;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.28), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(120deg, #f43f5e 0%, #ec4899 45%, #f97316 100%);
}

.hero-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.16);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 620px;
  padding: 70px 0 130px;
}

.hero-copy {
  animation: fadeInUp 700ms ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(48px, 8vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

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

.hero-search {
  display: flex;
  width: min(100%, 560px);
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-search input {
  border: 0;
  padding: 16px 20px;
}

.hero-search button {
  padding: 0 24px;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 16px 30px rgba(244, 63, 94, 0.26);
}

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

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

.full-width {
  width: 100%;
}

.hero-carousel {
  position: relative;
  height: 430px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.34);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.5), rgba(244, 63, 94, 0.5));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 650ms ease, transform 650ms ease;
  transform: scale(1.02);
}

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

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

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.82));
}

.hero-slide-copy {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
}

.hero-slide-copy span {
  display: inline-flex;
  padding: 6px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--rose);
  font-weight: 900;
  font-size: 13px;
}

.hero-slide-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
}

.hero-slide-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

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

.hero-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 140px;
  background: linear-gradient(0deg, #f9fafb, rgba(249, 250, 251, 0));
}

.featured-overlap {
  position: relative;
  z-index: 3;
  margin-top: -104px;
}

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

.page-section {
  padding: 62px 0;
}

.white-section {
  background: #ffffff;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: var(--shadow-soft);
  font-size: 22px;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--gray-800);
}

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

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

.section-line .section-heading {
  margin-bottom: 0;
}

.section-line > a,
.section-line > span {
  color: var(--rose);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 158px;
  padding: 24px;
  color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.category-card::after,
.category-overview-header::after,
.sub-hero::after {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

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

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
}

.category-card span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
  font-size: 13px;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.six-col {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(244, 63, 94, 0.82), rgba(249, 115, 22, 0.82)),
    linear-gradient(45deg, #f3f4f6, #ffffff);
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.movie-card-wide .movie-poster {
  min-height: 100%;
  aspect-ratio: auto;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

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

.poster-badge,
.poster-duration {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  top: 10px;
  right: 10px;
  background: rgba(244, 63, 94, 0.9);
  backdrop-filter: blur(10px);
}

.poster-duration {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.68);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 180ms ease;
}

.movie-card:hover .movie-info h3 {
  color: var(--rose);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gray-100);
}

.ranking-section {
  padding: 64px 0;
  background: linear-gradient(135deg, #fff1f2, #fffbeb);
}

.ranking-list,
.ranking-table {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.ranking-item,
.ranking-row {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 180ms ease;
}

.ranking-item {
  grid-template-columns: 52px 92px minmax(150px, 0.8fr) minmax(200px, 1.4fr) 90px;
}

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

.ranking-item:hover,
.ranking-row:hover {
  background: #fff7ed;
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  font-weight: 900;
}

.rank-1 {
  color: #ffffff;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.rank-2 {
  color: #ffffff;
  background: linear-gradient(135deg, #d1d5db, #6b7280);
}

.rank-3 {
  color: #ffffff;
  background: linear-gradient(135deg, #fdba74, #f59e0b);
}

.ranking-item img,
.ranking-row img {
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.ranking-row img {
  height: 76px;
}

.ranking-title,
.ranking-row h2 {
  font-weight: 900;
  color: var(--gray-800);
}

.ranking-desc,
.ranking-row p {
  overflow: hidden;
  color: var(--gray-500);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-row h2,
.ranking-row p {
  margin: 0 0 5px;
}

.ranking-row small {
  color: var(--gray-500);
}

.ranking-item strong,
.ranking-row strong {
  color: var(--rose);
  text-align: right;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 66px;
  color: #ffffff;
}

.sub-hero h1 {
  position: relative;
  z-index: 1;
  margin: 10px 0 10px;
  font-size: clamp(36px, 6vw, 58px);
}

.sub-hero p {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.7;
}

.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

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

.category-overview-list {
  display: grid;
  gap: 30px;
}

.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-overview-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  color: #ffffff;
}

.category-overview-header h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.category-overview-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.category-overview-header strong {
  font-size: 28px;
}

.compact-grid {
  padding: 22px;
}

.category-more {
  display: block;
  padding: 0 22px 24px;
  color: var(--rose);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) minmax(130px, 180px) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--gray-600);
  font-weight: 800;
  font-size: 14px;
}

.filter-panel input,
.filter-panel select {
  padding: 12px 14px;
  border-radius: 14px;
}

.filter-count {
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff1f2;
  color: var(--rose);
  font-weight: 900;
}

.search-page-form {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  width: min(100%, 640px);
  margin-top: 22px;
}

.search-page-form input {
  padding: 15px 18px;
}

.search-page-form button {
  padding: 0 26px;
}

.search-empty {
  padding: 46px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: var(--gray-500);
  text-align: center;
}

.detail-breadcrumb-bar {
  padding: 16px 0;
  background: linear-gradient(90deg, var(--gray-900), var(--gray-800));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  padding: 32px 0 72px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.24);
}

.movie-video {
  display: block;
  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.16), rgba(0, 0, 0, 0.46));
  transition: opacity 180ms ease;
}

.player-box.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 45px rgba(244, 63, 94, 0.42);
  animation: pulseGlow 2.4s ease infinite;
  font-size: 34px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  font-size: 13px;
  pointer-events: none;
}

.detail-card,
.sidebar-card {
  margin-top: 24px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--gray-800);
}

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

.detail-meta span,
.tag-list span {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-weight: 700;
  font-size: 13px;
}

.tag-list span {
  color: var(--rose);
  background: #fff1f2;
}

.detail-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.detail-section h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  color: var(--gray-800);
}

.detail-section p {
  margin: 0 0 14px;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.85;
}

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

.info-list div {
  padding: 14px;
  border-radius: 14px;
  background: var(--gray-50);
}

.info-list dt {
  color: var(--gray-500);
  font-size: 13px;
}

.info-list dd {
  margin: 4px 0 0;
  color: var(--gray-800);
  font-weight: 800;
}

.info-list a {
  color: var(--rose);
}

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

.detail-sidebar .sidebar-card:first-child {
  margin-top: 0;
}

.poster-card img {
  aspect-ratio: 3 / 4;
  margin-bottom: 16px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

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

.related-list .movie-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  box-shadow: none;
  border: 1px solid var(--gray-100);
}

.related-list .movie-poster {
  height: 100%;
  aspect-ratio: auto;
}

.related-list .movie-info {
  padding: 12px;
}

.related-list .movie-info h3 {
  min-height: auto;
  font-size: 15px;
}

.related-list .movie-info p {
  min-height: auto;
  margin-bottom: 8px;
  font-size: 12px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(120deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 46px 0;
}

.footer-logo {
  margin-bottom: 16px;
  font-size: 20px;
}

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

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

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

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.gradient-rose-orange {
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.gradient-orange-amber {
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.gradient-pink-rose {
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.gradient-red-orange {
  background: linear-gradient(135deg, #ef4444, var(--orange));
}

.gradient-slate-rose {
  background: linear-gradient(135deg, var(--slate), var(--rose));
}

.gradient-blue-cyan {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.gradient-emerald-teal {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.gradient-violet-purple {
  background: linear-gradient(135deg, var(--violet), var(--purple));
}

.gradient-amber-yellow {
  background: linear-gradient(135deg, var(--amber), #eab308);
}

.gradient-indigo-blue {
  background: linear-gradient(135deg, #4f46e5, var(--blue));
}

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

  .menu-toggle {
    display: block;
  }

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

  .detail-sidebar {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
  }

  .detail-sidebar .sidebar-card {
    margin-top: 0;
  }

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

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

@media (max-width: 760px) {
  .header-search {
    display: none;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-layout {
    min-height: auto;
    padding: 54px 0 120px;
  }

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

  .featured-overlap {
    margin-top: -76px;
  }

  .featured-grid,
  .category-grid,
  .three-col,
  .four-col,
  .six-col,
  .footer-grid,
  .detail-sidebar,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .ranking-item,
  .ranking-row {
    grid-template-columns: 44px 76px minmax(0, 1fr);
  }

  .ranking-desc,
  .ranking-item strong,
  .ranking-row strong {
    display: none;
  }

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

  .section-line {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .search-page-form button,
  .hero-search button {
    min-height: 48px;
  }
}

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

  .logo-text {
    font-size: 20px;
  }

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

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

  .movie-info {
    padding: 14px;
  }
}
