:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-md: 0 8px 22px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.13);
  --shadow-xl: 0 28px 70px rgba(15, 23, 42, 0.18);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 30px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.45), #ffffff 38%, rgba(254, 243, 199, 0.32));
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red-500), var(--orange-500));
  box-shadow: 0 12px 25px rgba(239, 68, 68, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--red-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-slogan {
  margin-top: 3px;
  color: var(--gray-500);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 3px;
  border-radius: 99px;
  background: var(--amber-600);
  transition: right 0.25s ease;
}

.nav-link:hover,
.nav-active {
  color: var(--amber-700);
}

.nav-link:hover::after,
.nav-active::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-form {
  position: relative;
  width: min(280px, 28vw);
}

.search-form input,
.mobile-search input,
.search-hero input,
.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  border: 1px solid var(--gray-300);
  background: #fff;
  color: var(--gray-800);
  outline: none;
  border-radius: 999px;
  padding: 12px 48px 12px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.mobile-search input:focus,
.search-hero input:focus,
.catalog-toolbar input:focus,
.catalog-toolbar select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.search-form button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  color: var(--gray-500);
  background: transparent;
}

.search-form button:hover {
  color: var(--amber-700);
  background: var(--amber-50);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--gray-100);
  color: var(--gray-800);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--gray-200);
}

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

.mobile-panel a,
.mobile-search button {
  display: block;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--gray-700);
  font-weight: 700;
  background: #fff;
}

.mobile-panel a:hover {
  color: var(--amber-700);
  background: var(--amber-50);
}

.mobile-search {
  display: grid;
  gap: 10px;
}

.mobile-search input {
  padding-right: 18px;
}

.mobile-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), #eab308);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: #0f172a;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(245, 158, 11, 0.38), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(239, 68, 68, 0.3), transparent 30%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(15, 23, 42, 0.72));
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.72);
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  min-height: 620px;
  padding: 76px 0;
}

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

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 34px;
}

.hero-meta span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-actions,
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), #eab308);
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--amber-600), #ca8a04);
}

.btn-soft {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.hero-side {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 14px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-mini:hover,
.hero-mini.is-active {
  transform: translateX(-4px);
  background: rgba(245, 158, 11, 0.28);
}

.hero-mini img {
  width: 92px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-mini strong {
  display: block;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.hero-mini span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: var(--amber-500);
}

.main-section {
  padding: 54px 0 0;
}

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

.section-head > div {
  display: grid;
  gap: 6px;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-500), var(--orange-500));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.24);
}

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

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

.featured-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #fff;
  box-shadow: var(--shadow-xl);
}

.featured-image {
  position: relative;
  display: block;
  min-height: 430px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.08);
}

.featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.66), transparent 55%);
}

.featured-play,
.play-float,
.play-dot {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.32);
}

.featured-play {
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 30px;
}

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

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
}

.featured-copy .section-kicker {
  align-self: start;
  color: var(--amber-700);
  background: var(--amber-100);
}

.featured-copy h2 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  color: var(--gray-900);
}

.featured-copy p {
  color: var(--gray-600);
  margin: 0 0 18px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.feature-tags .tag-pill,
.detail-tags .tag-pill {
  color: var(--amber-700);
  background: var(--amber-100);
}

.featured-copy .btn-soft,
.detail-actions .btn-soft {
  color: var(--gray-700);
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-200);
}

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

.card-grid:hover .poster-link img {
  transform: scale(1.1);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card-grid:hover .poster-link::after {
  opacity: 1;
}

.duration-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 8px;
  color: #fff;
  font-size: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
}

.play-float {
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.76);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-category {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  color: var(--gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h3 a:hover,
.list-info h3 a:hover,
.rank-title:hover {
  color: var(--amber-700);
}

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

.card-foot,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gray-500);
  font-size: 12px;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.movie-list-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.list-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  background: var(--gray-200);
}

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

.play-dot {
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.list-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.list-info h3 {
  margin: 7px 0;
  font-size: 21px;
  line-height: 1.32;
}

.list-info p {
  margin: 0 0 12px;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--amber-100), #fef9c3);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -52px;
  bottom: -54px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  font-size: 36px;
}

.category-tile h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.rank-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 82px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: var(--amber-50);
}

.rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red-500), var(--orange-500));
}

.rank-row img {
  width: 82px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-title {
  font-weight: 800;
  line-height: 1.35;
}

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

.rank-score {
  color: var(--amber-700);
  font-weight: 900;
  white-space: nowrap;
}

.page-hero {
  color: #fff;
  padding: 54px 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(90deg, var(--amber-500), #eab308);
}

.page-hero.blue {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(90deg, #3b82f6, #06b6d4);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

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

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 104px;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.catalog-sidebar h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.catalog-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
}

.catalog-sidebar a:hover,
.catalog-sidebar a.is-current {
  color: var(--amber-700);
  background: var(--amber-50);
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.catalog-toolbar input,
.catalog-toolbar select {
  border-radius: 14px;
  padding-right: 14px;
}

.filter-empty {
  display: none;
  padding: 38px;
  text-align: center;
  color: var(--gray-500);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

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

.player-panel,
.detail-section,
.side-section {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.player-panel {
  overflow: hidden;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.18));
}

.player-cover.hidden {
  display: none;
}

.player-start-inner {
  display: grid;
  place-items: center;
  gap: 12px;
}

.player-start-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.94);
  box-shadow: 0 22px 48px rgba(245, 158, 11, 0.34);
  font-size: 34px;
}

.player-info {
  padding: 28px;
}

.player-info h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.player-info p {
  margin: 0;
  color: var(--gray-600);
}

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

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

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-section {
  padding: 28px;
  margin-top: 24px;
}

.detail-section h2,
.side-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.9;
}

.side-section {
  padding: 20px;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--gray-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-card:hover {
  transform: translateX(4px);
  background: var(--amber-50);
}

.side-card img {
  width: 88px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.side-card strong {
  display: block;
  color: var(--gray-800);
  line-height: 1.35;
  font-size: 14px;
}

.side-card span {
  color: var(--gray-500);
  font-size: 12px;
}

.search-hero {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-hero input {
  border-radius: 18px;
  padding: 15px 18px;
}

.search-hero button {
  border: 0;
  border-radius: 18px;
  padding: 0 24px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--red-500), var(--orange-500));
}

.search-status {
  color: var(--gray-600);
  margin-bottom: 20px;
}

.site-footer {
  margin-top: 78px;
  padding: 46px 0 22px;
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--gray-800);
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 10px;
  color: var(--gray-600);
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--amber-700);
}

.footer-brand p {
  margin-top: 16px;
  max-width: 340px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  color: var(--gray-500);
  font-size: 13px;
}

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

.animate-in {
  animation: fadeIn 0.55s ease both;
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 18px;
  }

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

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

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

  .hero-mini img {
    width: 100%;
  }

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

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

  .catalog-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .desktop-nav,
  .search-form {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-slogan {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-side {
    display: none;
  }

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

  .featured-image {
    min-height: 310px;
  }

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

  .movie-list-card {
    grid-template-columns: 120px 1fr;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 74px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

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

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

  .hero h1 {
    font-size: 42px;
  }

  .hero-content {
    padding: 52px 0 78px;
  }

  .hero-actions,
  .feature-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

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

  .list-cover {
    aspect-ratio: 16 / 9;
  }

  .rank-row {
    grid-template-columns: 38px 1fr;
  }

  .rank-row img {
    display: none;
  }

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

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

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