:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --sky: #38bdf8;
  --sky-dark: #0ea5e9;
  --emerald: #34d399;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.48), #ffffff 36%, rgba(240, 249, 255, 0.72));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand.compact {
  margin-bottom: 14px;
}

.brand-icon {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--sky), var(--emerald));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

.brand-icon::before {
  content: "▶";
  font-size: 13px;
  transform: translateX(1px);
}

.brand-icon span {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--pink);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.hero-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search {
  position: relative;
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.local-filter-input {
  border: 1px solid transparent;
  background: #f3f4f6;
  color: var(--ink);
  outline: none;
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 250px;
  padding: 10px 46px 10px 18px;
}

.header-search button {
  position: absolute;
  right: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.local-filter-input:focus {
  background: #ffffff;
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.mobile-link {
  display: block;
  padding: 10px 0;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 16px;
}

.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.22);
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.56fr);
  align-items: center;
  gap: 40px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.hero-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(1.08);
  opacity: 0.92;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.34), transparent 28%), radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.28), transparent 32%);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f9a8d4;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 820px;
  margin: 18px 0 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  color: #475569;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.34);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 28px;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--pink), var(--sky));
}

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

.section-intro {
  padding-bottom: 36px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.center {
  text-align: center;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 10px auto 0;
  color: var(--muted);
}

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

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.22);
}

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

.section-icon.green {
  background: linear-gradient(135deg, var(--emerald), var(--sky));
}

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

.hero-search {
  width: min(720px, 100%);
  margin: 28px auto 0;
  padding: 8px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-search input,
.search-page-form input {
  min-width: 0;
  flex: 1;
  padding: 14px 18px;
  background: transparent;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(236, 72, 153, 0.24);
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(56, 189, 248, 0.16));
}

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.72));
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.rank-number {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 42px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--pink));
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.card-body h2 {
  margin: 9px 0 8px;
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.card-body h2 a:hover {
  color: var(--pink);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  min-height: auto;
  padding: 4px 10px;
  color: #be185d;
  background: #fdf2f8;
  border-color: #fce7f3;
}

.category-band {
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.55), rgba(224, 242, 254, 0.65), rgba(209, 250, 229, 0.58));
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: var(--radius);
  color: #ffffff;
  isolation: isolate;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

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

.category-tile em {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 14px;
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(3px);
  background: #fff1f2;
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--sky));
}

.rank-item img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  font-size: 15px;
}

.rank-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rank-heat {
  color: var(--pink);
  font-weight: 900;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.page-hero {
  padding: 92px 16px 70px;
  text-align: center;
  background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.16), transparent 28%), radial-gradient(circle at 75% 45%, rgba(56, 189, 248, 0.18), transparent 34%), linear-gradient(135deg, rgba(253, 242, 248, 0.72), rgba(240, 249, 255, 0.72));
}

.page-hero h1 {
  margin: 12px auto;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.category-page {
  text-align: left;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
}

.category-page p {
  margin-left: 0;
}

.filter-panel {
  width: min(760px, 100%);
  margin-top: 28px;
  padding: 12px;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.local-filter-input {
  width: 100%;
  padding: 13px 18px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.filter-chip {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 8px 14px;
  color: #475569;
  background: #ffffff;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--sky));
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.category-cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 22px;
}

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

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

.category-card-large p {
  color: var(--muted);
}

.mini-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.mini-title-row span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
}

.detail-hero {
  min-height: 620px;
  color: #ffffff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 25%, rgba(236, 72, 153, 0.28), transparent 32%), radial-gradient(circle at 82% 65%, rgba(56, 189, 248, 0.24), transparent 34%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.72);
}

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

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

.detail-poster {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.detail-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.detail-tags span {
  color: #ffffff;
  background: rgba(236, 72, 153, 0.28);
  border-color: rgba(236, 72, 153, 0.34);
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 32px;
  align-items: start;
}

.watch-panel,
.story-panel {
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.watch-panel {
  padding: 14px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #020617;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.56));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
  font-size: 28px;
  transform: translateX(2px);
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.story-panel {
  padding: 28px;
}

.story-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.story-panel h2:not(:first-child) {
  margin-top: 28px;
}

.story-panel p {
  margin: 0;
  color: #475569;
}

.search-page-form {
  width: min(720px, 100%);
  margin: 28px auto 0;
  padding: 8px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.search-result-title {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 900;
}

.site-footer {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.88), rgba(240, 249, 255, 0.88), rgba(236, 253, 245, 0.88));
  border-top: 1px solid rgba(229, 231, 235, 0.82);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

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

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

.footer-links a {
  color: #64748b;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  color: #64748b;
  border-top: 1px solid rgba(203, 213, 225, 0.72);
  text-align: center;
}

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

  .two-column-section,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 42px 0 96px;
  }

  .hero-poster {
    justify-self: start;
    width: min(250px, 68vw);
  }

  .detail-grid,
  .category-card-large,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 100%);
  }

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

@media (max-width: 640px) {
  .header-inner,
  .section-wrap,
  .detail-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

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

  .movie-grid,
  .featured-grid,
  .category-grid,
  .ranking-grid,
  .category-movie-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-search,
  .search-page-form {
    align-items: stretch;
    flex-direction: column;
    border-radius: 28px;
  }

  .hero-search button,
  .search-page-form button {
    width: 100%;
  }

  .hero-content h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.045em;
  }

  .hero-control {
    width: calc(100% - 32px);
    justify-content: center;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
  }
}
