:root {
  color-scheme: light;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --teal-400: #2dd4bf;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --gray-600: #4b5563;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 30px 70px rgba(15, 23, 42, 0.2);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--slate-50), var(--blue-50));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  padding-top: 64px;
  min-height: 70vh;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.1);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-600);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text {
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.brand-mark svg path:last-child {
  fill: currentColor;
  stroke: none;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--slate-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--blue-600);
  background: var(--blue-50);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--blue-50);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue-600);
  border-radius: 99px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-menu-inner {
  display: grid;
  gap: 6px;
  padding: 12px 0 18px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500), var(--teal-400));
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.detail-backdrop,
.tile-overlay,
.poster-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shade {
  background:
    radial-gradient(circle at 78% 28%, rgba(34, 211, 238, 0.5), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 64, 175, 0.68) 48%, rgba(15, 23, 42, 0.32) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.1));
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(720px, 100%);
  color: var(--white);
  animation: fadeUp 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(191, 219, 254, 0.3);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 18px;
}

.hero-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-movie-name {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  color: #cffafe;
  line-height: 1.12;
}

.hero-copy p {
  margin: 22px 0 0;
  max-width: 660px;
  color: #dbeafe;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.75;
}

.hero-actions,
.callout-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

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

.primary-btn {
  color: var(--blue-600);
  background: var(--white);
  min-height: 48px;
  padding: 0 24px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

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

.ghost-btn {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  min-height: 48px;
  padding: 0 24px;
  backdrop-filter: blur(10px);
}

.ghost-btn.dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

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

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-controls button {
  border: 0;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 30px;
  background: var(--white);
}

.hero-search {
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(680px, calc(100% - 32px));
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-xl);
}

.hero-search input,
.search-page-form input,
.filter-search input,
.filter-select {
  border: 0;
  outline: 0;
  color: var(--slate-900);
}

.hero-search input {
  min-width: 0;
  padding: 0 18px;
  background: transparent;
}

.hero-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
  font-weight: 800;
  padding: 12px 22px;
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--slate-500);
  line-height: 1.7;
}

.section-more,
.text-link {
  color: var(--blue-600);
  font-weight: 850;
}

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

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

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

.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(-6px);
  box-shadow: var(--shadow-md);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-100), var(--slate-100));
}

.movie-card.landscape .movie-poster {
  aspect-ratio: 16 / 9;
}

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

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

.poster-shade {
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 54%);
  opacity: 0.75;
}

.play-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.movie-info {
  padding: 15px;
}

.movie-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 850;
  line-height: 1.35;
}

.movie-title:hover,
.wide-heading a:hover,
.category-overview-card h2 a:hover {
  color: var(--blue-600);
}

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-meta span,
.detail-meta span {
  border-radius: 999px;
  background: var(--slate-100);
  padding: 5px 9px;
}

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

.tag-row span {
  color: var(--blue-600);
  background: var(--blue-50);
}

.soft-section {
  background: linear-gradient(135deg, var(--slate-100), var(--blue-100));
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius-lg);
  padding: 22px;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.tile-overlay {
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(37, 99, 235, 0.22));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 21px;
  margin-bottom: 8px;
}

.category-tile em {
  font-style: normal;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.55;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 176px 1fr;
  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;
}

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

.wide-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--blue-100);
}

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

.wide-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.wide-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 850;
}

.rank-num {
  color: var(--blue-600);
  background: var(--blue-50);
  border-radius: 999px;
  min-width: 42px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wide-info p {
  color: var(--slate-500);
  line-height: 1.7;
  margin: 8px 0 12px;
}

.callout-section {
  padding-top: 0;
}

.callout-card {
  border-radius: var(--radius-2xl);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: var(--shadow-xl);
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
}

.callout-card h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.callout-card p {
  max-width: 780px;
  margin: 16px auto 0;
  color: #dbeafe;
  line-height: 1.8;
  font-size: 18px;
}

.callout-actions {
  justify-content: center;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
}

.small-hero {
  padding: 96px 0 74px;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 18px auto 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.category-hero {
  min-height: 420px;
  display: grid;
  align-items: center;
}

.category-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-hero .container {
  position: relative;
  z-index: 2;
  padding: 82px 0;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.filter-search span {
  display: block;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.filter-search input,
.filter-select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  background: var(--slate-100);
  padding: 0 14px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  border-radius: var(--radius-xl);
  background: var(--white);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.category-cover {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 5;
}

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

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

.category-overview-card p {
  color: var(--slate-500);
  line-height: 1.7;
}

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

.category-samples a {
  color: var(--blue-600);
  background: var(--blue-50);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 750;
}

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

.top-rank-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: var(--radius-xl);
  color: var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.top-rank-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.top-rank-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent 68%);
  z-index: 1;
}

.top-rank-card:hover img {
  transform: scale(1.08);
}

.top-rank-card strong,
.top-rank-card em,
.rank-badge {
  position: relative;
  z-index: 2;
}

.rank-badge {
  width: max-content;
  color: var(--slate-900);
  background: #facc15;
  border-radius: 999px;
  padding: 7px 12px;
  margin-bottom: 12px;
  font-weight: 900;
}

.top-rank-card strong {
  font-size: 24px;
  margin-bottom: 6px;
}

.top-rank-card em {
  font-style: normal;
  color: #dbeafe;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 760px;
  margin: 26px auto 0;
  padding: 10px;
  border-radius: 999px;
  background: var(--white);
}

.search-page-form input {
  min-width: 0;
  padding: 0 18px;
  background: transparent;
}

.hot-searches {
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hot-searches h2 {
  margin: 0 0 14px;
}

.hot-searches div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hot-searches a {
  color: var(--blue-600);
  background: var(--blue-50);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 750;
}

.search-status {
  color: var(--slate-500);
  margin: 0 0 18px;
  font-weight: 750;
}

.detail-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: var(--white);
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-backdrop {
  background:
    radial-gradient(circle at 82% 20%, rgba(34, 211, 238, 0.42), transparent 30%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.66), rgba(15, 23, 42, 0.42));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
  min-height: 540px;
  padding: 62px 0;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 3 / 4;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #bfdbfe;
  margin-bottom: 16px;
  font-size: 14px;
}

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

.detail-intro h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.detail-intro p {
  margin: 18px 0;
  max-width: 760px;
  color: #dbeafe;
  line-height: 1.8;
  font-size: 18px;
}

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

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

.detail-tags a {
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
}

.detail-intro .primary-btn {
  margin-top: 24px;
}

.player-panel {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #020617;
  box-shadow: var(--shadow-xl);
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--white);
  border: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.38));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: var(--blue-600);
  background: var(--white);
  font-size: 32px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.35);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding-bottom: 32px;
}

.detail-main,
.detail-side {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-main {
  padding: clamp(24px, 4vw, 38px);
}

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

.detail-main h2:not(:first-child) {
  margin-top: 34px;
}

.detail-main p {
  color: var(--gray-600);
  line-height: 2;
  font-size: 17px;
}

.detail-side {
  align-self: start;
  padding: 24px;
  display: grid;
  gap: 12px;
}

.detail-side a {
  color: var(--blue-600);
  background: var(--blue-50);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, #111827, #1e3a8a);
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-logo {
  color: var(--white);
  font-size: 20px;
}

.footer-brand p,
.site-footer a,
.footer-bottom {
  color: #cbd5e1;
}

.footer-brand p {
  max-width: 560px;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(203, 213, 225, 0.2);
  padding: 20px 16px;
  text-align: center;
  font-size: 14px;
}

.hidden-by-filter {
  display: none !important;
}

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

@media (max-width: 1100px) {
  .featured-grid,
  .top-rank-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  main {
    padding-top: 60px;
  }

  .brand-text {
    font-size: 15px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero-content {
    align-items: flex-start;
    padding-top: 76px;
  }

  .hero-controls {
    bottom: 104px;
  }

  .hero-search,
  .search-page-form {
    border-radius: 24px;
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .top-rank-grid,
  .category-overview-grid,
  .footer-grid,
  .detail-layout,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

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

  .wide-card,
  .category-overview-card {
    grid-template-columns: 120px 1fr;
  }

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

  .detail-cover {
    width: min(260px, 70vw);
  }
}

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

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero-title {
    font-size: 34px;
  }

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

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

  .poster-grid,
  .compact-grid,
  .category-grid {
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info p,
  .tag-row {
    display: none;
  }

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

  .wide-cover,
  .category-cover {
    aspect-ratio: 16 / 9;
  }

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

  .play-circle {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
}
