:root {
  --color-slate-950: #020617;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  --color-teal-900: #134e4a;
  --color-teal-800: #115e59;
  --color-teal-700: #0f766e;
  --color-teal-600: #0d9488;
  --color-teal-500: #14b8a6;
  --color-teal-100: #ccfbf1;
  --color-amber-500: #f59e0b;
  --color-white: #ffffff;
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-slate-900);
  background: linear-gradient(180deg, var(--color-slate-50), var(--color-white));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--color-white);
  background: linear-gradient(90deg, var(--color-teal-900), var(--color-slate-800));
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.22);
}

.top-nav {
  position: relative;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100% - 32px, var(--max-width));
  min-height: 68px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--color-slate-900);
  background: var(--color-amber-500);
  border-radius: 50%;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}

.brand-text small {
  color: #99f6e4;
  font-size: 12px;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #5eead4;
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input {
  width: 220px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 12px;
  outline: none;
  padding: 10px 12px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.nav-search button,
.mobile-search button,
.search-page-form button,
.quick-search-band button {
  cursor: pointer;
  color: var(--color-white);
  background: var(--color-teal-600);
  border: 0;
  border-radius: 12px;
  padding: 10px 15px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.quick-search-band button:hover {
  background: var(--color-teal-500);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--color-white);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--color-slate-800);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 16px 0 8px;
}

.mobile-search input {
  width: 100%;
}

.mobile-links {
  display: grid;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 8px 0 18px;
}

.mobile-nav-link {
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-carousel {
  position: relative;
  min-height: 600px;
  color: var(--color-white);
  background: linear-gradient(110deg, var(--color-slate-950), var(--color-teal-900));
  overflow: hidden;
}

.hero-slides,
.hero-slide {
  min-height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(9px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.68;
}

.hero-bg.image-missing {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 24%, rgba(20, 184, 166, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.14));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 32px, var(--max-width));
  min-height: 600px;
  margin: 0 auto;
  max-width: 1180px;
}

.hero-content > * {
  max-width: 720px;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #0f172a;
  background: var(--color-amber-500);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--color-teal-700);
  background: var(--color-teal-100);
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-one-line {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.3vw, 24px);
}

.hero-meta,
.movie-card-meta,
.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.ranking-meta span {
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

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

.tag-pill {
  display: inline-flex;
  align-items: center;
  color: var(--color-teal-700);
  background: var(--color-teal-100);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

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

.primary-action {
  color: var(--color-white);
  background: var(--color-teal-600);
  box-shadow: 0 16px 30px rgba(13, 148, 136, 0.28);
}

.secondary-action {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - var(--max-width)) / 2));
  bottom: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.hero-arrow {
  width: 46px;
  height: 46px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  backdrop-filter: blur(14px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--color-white);
}

.quick-search-band {
  background: var(--color-slate-900);
  color: var(--color-white);
}

.quick-search-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 34px 0;
}

.quick-search-inner span {
  color: #5eead4;
  font-weight: 800;
}

.quick-search-inner h2 {
  margin: 4px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
}

.quick-search-inner form,
.search-page-form {
  display: flex;
  gap: 10px;
}

.quick-search-inner input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  outline: none;
  padding: 13px 14px;
  background: var(--color-white);
}

.page-container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 54px 0 0;
}

.content-section {
  margin-bottom: 72px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #64748b;
}

.section-more {
  flex-shrink: 0;
  color: var(--color-teal-700);
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: grid;
  height: 100%;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-shell {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 10%, rgba(245, 158, 11, 0.26), transparent 28%),
    linear-gradient(135deg, var(--color-teal-900), var(--color-slate-900));
}

.poster-shell::after {
  content: attr(data-poster-title);
  position: absolute;
  inset: auto 12px 16px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

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

.poster-shell img.image-missing {
  opacity: 0;
}

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

.poster-year,
.poster-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.poster-year {
  top: 10px;
  left: 10px;
  color: var(--color-white);
  background: rgba(15, 23, 42, 0.70);
}

.poster-type {
  right: 10px;
  bottom: 10px;
  color: var(--color-slate-900);
  background: rgba(245, 158, 11, 0.92);
}

.rank-badge {
  top: 10px;
  right: 10px;
  color: var(--color-white);
  background: var(--color-teal-600);
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-card-meta {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: #64748b;
  font-size: 12px;
}

.movie-card-footer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card-footer strong {
  flex-shrink: 0;
  color: var(--color-teal-700);
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

.movie-card-compact h3 {
  font-size: 16px;
}

.movie-card-horizontal .movie-card-link {
  grid-template-columns: 180px 1fr;
}

.movie-card-horizontal .poster-shell {
  aspect-ratio: auto;
  min-height: 240px;
}

.movie-card-horizontal .movie-card-body {
  justify-content: center;
}

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

.category-tile,
.category-overview-card,
.detail-text-card,
.filter-panel,
.search-panel {
  background: var(--color-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.category-tile {
  display: grid;
  gap: 8px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
  color: var(--color-teal-700);
  font-weight: 800;
}

.category-tile strong {
  font-size: 20px;
}

.category-tile small {
  color: #64748b;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  padding: 54px;
  color: var(--color-white);
  background:
    radial-gradient(circle at 78% 18%, rgba(20, 184, 166, 0.30), transparent 30%),
    linear-gradient(125deg, var(--color-slate-950), var(--color-teal-900));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.small-hero {
  min-height: 260px;
}

.category-meta,
.detail-meta {
  margin-top: 20px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.category-overview-main {
  display: block;
  padding: 28px;
}

.category-overview-main h2 {
  margin: 0;
  font-size: 28px;
}

.category-overview-main p {
  color: #64748b;
}

.category-overview-main strong {
  display: inline-flex;
  margin-top: 18px;
  color: var(--color-teal-700);
}

.category-preview-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 28px 24px;
  list-style: none;
}

.category-preview-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--color-slate-800);
}

.category-preview-list span {
  color: #64748b;
  flex-shrink: 0;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 26px;
  padding: 20px;
}

.filter-panel label {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.filter-count {
  margin: 0;
  color: #64748b;
  white-space: nowrap;
}

.filter-count strong {
  color: var(--color-teal-700);
}

.js-filter-card.is-hidden {
  display: none;
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin-bottom: 72px;
}

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

.lead-ranking-grid .movie-card-horizontal .movie-card-link {
  grid-template-columns: 140px minmax(0, 1fr);
}

.ranking-row {
  background: var(--color-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.ranking-link {
  display: grid;
  grid-template-columns: 70px 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
}

.ranking-number {
  color: var(--color-teal-700);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.ranking-row img {
  width: 92px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-teal-900), var(--color-slate-900));
}

.ranking-row img.image-missing {
  opacity: 0.08;
}

.ranking-row h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.ranking-row p {
  margin: 0 0 12px;
  color: #64748b;
}

.ranking-meta span {
  color: #475569;
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.06);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-teal-700);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 44px;
  padding: 34px;
  background: var(--color-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  border-radius: 22px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

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

.detail-one-line {
  margin: 16px 0 0;
  color: #475569;
  font-size: 20px;
}

.detail-meta span {
  color: #475569;
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.06);
}

.player-section {
  margin-bottom: 44px;
}

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

.video-frame {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(20, 184, 166, 0.16), transparent 32%),
    #020617;
  border-radius: var(--radius-xl);
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.28);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--color-white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.20), rgba(2, 6, 23, 0.72));
  border: 0;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: var(--color-slate-900);
  background: var(--color-amber-500);
  border-radius: 50%;
  font-size: 28px;
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.32);
}

.video-frame.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.player-status {
  color: #64748b;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 58px;
}

.detail-text-card {
  padding: 28px;
}

.detail-text-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.detail-text-card p {
  margin: 0;
  color: #475569;
  font-size: 16px;
}

.search-panel {
  margin-bottom: 28px;
  padding: 22px;
}

.search-page-form input {
  flex: 1;
}

.search-summary {
  margin: 14px 0 0;
  color: #64748b;
}

.search-results {
  display: grid;
  gap: 14px;
  margin-bottom: 72px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--color-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.search-result-card img {
  width: 88px;
  height: 116px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-teal-900), var(--color-slate-900));
}

.search-result-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.search-result-card p {
  margin: 0 0 10px;
  color: #64748b;
}

.site-footer {
  margin-top: 80px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--color-slate-900), var(--color-slate-950));
}

.footer-inner {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 46px 0 28px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--color-white);
  font-size: 18px;
}

.site-footer p {
  color: #94a3b8;
}

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

.footer-links a,
.footer-links button {
  color: #cbd5e1;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.footer-links a:hover,
.footer-links button:hover {
  color: #5eead4;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
}

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

  .menu-toggle {
    display: inline-block;
  }

  .movie-grid,
  .all-movies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .lead-ranking-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hero-carousel,
  .hero-slides,
  .hero-slide,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 110px;
  }

  .hero-controls {
    left: 16px;
    right: auto;
    bottom: 30px;
  }

  .quick-search-inner,
  .filter-panel,
  .detail-hero,
  .detail-content-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero {
    padding: 28px;
  }

  .detail-poster {
    max-width: 330px;
  }

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

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

  .quick-search-inner form,
  .search-page-form {
    flex-direction: column;
  }

  .ranking-link {
    grid-template-columns: 44px 74px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-row img {
    width: 74px;
    height: 98px;
  }
}

@media (max-width: 540px) {
  .nav-inner {
    width: min(100% - 24px, var(--max-width));
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-actions,
  .hero-meta {
    gap: 8px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .page-container {
    width: min(100% - 24px, var(--max-width));
  }

  .movie-grid,
  .all-movies-grid,
  .compact-grid,
  .category-tile-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .movie-card-link,
  .lead-ranking-grid .movie-card-horizontal .movie-card-link {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .ranking-link,
  .search-result-card {
    grid-template-columns: 1fr;
  }

  .ranking-number {
    text-align: left;
  }
}
