*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --cyan-400: #22d3ee;
  --orange-500: #f97316;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 48%, #e2e8f0 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  backdrop-filter: blur(18px);
  color: var(--white);
  box-shadow: 0 10px 35px rgba(2, 6, 23, 0.32);
}

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

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.32);
  font-size: 14px;
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #2dd4bf, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: 1;
}

.nav-main,
.nav-categories {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.nav-category-link {
  color: #cbd5e1;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-category-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(20, 184, 166, 0.88);
  transform: translateY(-1px);
}

.nav-category-link {
  background: rgba(51, 65, 85, 0.45);
}

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

.nav-search input,
.home-search input,
.search-hero-form input,
.filter-controls input,
.filter-controls select {
  border: 1px solid rgba(148, 163, 184, 0.28);
  outline: none;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 180px;
  color: var(--white);
  background: rgba(51, 65, 85, 0.8);
}

.nav-search input::placeholder {
  color: #94a3b8;
}

.nav-search input:focus,
.home-search input:focus,
.search-hero-form input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.nav-search button,
.home-search button,
.search-hero-form button,
.primary-button,
.text-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  color: var(--white);
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button {
  padding: 10px 16px;
  border-radius: 12px;
}

.nav-search button:hover,
.home-search button:hover,
.search-hero-form button:hover,
.primary-button:hover,
.text-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(20, 184, 166, 0.32);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.8);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
}

.hero-carousel {
  position: relative;
  height: min(720px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: var(--slate-950);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.55) 46%, rgba(2, 6, 23, 0.15) 100%),
              radial-gradient(circle at 18% 35%, rgba(20, 184, 166, 0.28), transparent 34%);
}

.hero-copy {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 92px;
  max-width: 780px;
  color: var(--white);
}

.hero-tags,
.card-meta,
.detail-actions,
.quick-links,
.breadcrumb,
.filter-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a,
.hero-tags span,
.card-meta span,
.category-pill,
.year-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags a,
.category-pill,
.eyebrow {
  color: var(--white);
  background: var(--teal-500);
}

.hero-tags span,
.year-pill {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.65;
}

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

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 12px 22px;
  color: var(--white);
  font-weight: 700;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(12px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(2, 6, 23, 0.76);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.58);
  transition: width 0.2s ease, background-color 0.2s ease;
}

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

.hero-search-panel {
  width: min(1050px, calc(100% - 32px));
  margin: -48px auto 0;
  position: relative;
  z-index: 2;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.home-search,
.search-hero-form {
  display: flex;
  gap: 12px;
}

.home-search input,
.search-hero-form input {
  flex: 1;
  min-width: 0;
}

.quick-links {
  margin-top: 14px;
}

.quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--teal-700);
  background: #ccfbf1;
  font-size: 14px;
  font-weight: 700;
}

.page-stack {
  display: grid;
  gap: 58px;
  padding-top: 64px;
  padding-bottom: 72px;
}

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

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.section-title p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--gray-500);
  line-height: 1.7;
}

.section-title a,
.text-button {
  color: var(--teal-700);
  font-weight: 800;
}

.section-title a span {
  font-size: 22px;
}

.movie-grid,
.large-card-grid,
.horizontal-grid,
.category-grid,
.overview-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.movie-card {
  color: inherit;
}

.movie-card-grid,
.movie-card-horizontal,
.category-overview-card,
.content-card,
.info-card,
.related-panel,
.filter-panel,
.side-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.movie-card-grid {
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-grid:hover,
.movie-card-horizontal:hover,
.movie-card-large:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.poster-wrap,
.horizontal-poster,
.movie-card-large,
.category-tile,
.overview-image {
  position: relative;
  overflow: hidden;
}

.poster-wrap {
  aspect-ratio: 16 / 10;
}

.poster-wrap img,
.horizontal-poster img,
.movie-card-large img,
.category-tile img,
.overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover img,
.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.poster-gradient,
.card-shade,
.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.66), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-gradient,
.movie-card:hover .card-shade,
.category-tile:hover .tile-shade {
  opacity: 1;
}

.category-pill {
  position: absolute;
  left: 12px;
  top: 12px;
  box-shadow: 0 10px 18px rgba(20, 184, 166, 0.28);
}

.year-pill {
  position: absolute;
  top: 12px;
  right: 12px;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal-500);
  box-shadow: 0 18px 36px rgba(20, 184, 166, 0.34);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-mark.small {
  width: 44px;
  height: 44px;
}

.movie-card:hover .play-mark,
.category-tile:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body,
.horizontal-body {
  padding: 18px;
}

.card-body h3,
.horizontal-body h3,
.large-card-content h3,
.ranking-text strong {
  margin: 0;
  line-height: 1.35;
}

.card-body h3,
.horizontal-body h3 {
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p,
.horizontal-body p,
.category-overview-card p,
.content-card p,
.detail-intro p,
.filter-panel p,
.side-card p {
  color: var(--gray-500);
  line-height: 1.7;
}

.card-body p,
.horizontal-body p {
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-info {
  color: var(--gray-500);
  font-size: 14px;
}

.movie-card-large {
  height: 430px;
  display: block;
  border-radius: 26px;
  background: var(--slate-900);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-large .card-shade {
  opacity: 0.86;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.18));
}

.large-card-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: var(--white);
}

.large-card-content h3 {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.large-card-content p {
  color: #dbeafe;
  line-height: 1.7;
}

.card-meta span {
  color: var(--teal-700);
  background: #ccfbf1;
}

.movie-card-horizontal {
  display: flex;
  min-height: 178px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-poster {
  width: 42%;
  min-width: 170px;
}

.category-tile {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 22px;
  border-radius: 24px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.category-tile img,
.tile-shade {
  position: absolute;
  inset: 0;
}

.category-tile .tile-shade {
  opacity: 1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.08));
}

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

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

.category-tile em {
  color: #e2e8f0;
  font-style: normal;
  line-height: 1.55;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 42px 82px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.ranking-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange-500), var(--teal-500));
}

.ranking-text {
  min-width: 0;
}

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

.ranking-text em {
  margin-top: 4px;
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.ranking-score {
  color: var(--teal-700);
  font-weight: 800;
}

.sub-hero {
  color: var(--white);
  padding: 74px 0;
}

.teal-hero {
  background: linear-gradient(110deg, var(--teal-600), #0891b2);
}

.dark-hero {
  background: linear-gradient(110deg, var(--slate-900), var(--slate-800));
}

.sub-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(38px, 6vw, 60px);
  letter-spacing: -0.05em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: #dffcf7;
  font-size: 19px;
  line-height: 1.7;
}

.breadcrumb {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 64px 0 76px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.overview-image {
  min-height: 250px;
}

.category-overview-card > div {
  padding: 24px;
}

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

.category-overview-card ul {
  margin: 18px 0 22px;
  padding-left: 18px;
  color: var(--gray-500);
  line-height: 1.9;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
}

.filter-panel.slim {
  margin-bottom: -26px;
}

.filter-panel h2 {
  margin: 0 0 8px;
}

.filter-panel p {
  margin: 0;
}

.filter-controls input,
.filter-controls select {
  min-width: 180px;
}

.empty-state {
  margin: 0;
  padding: 34px;
  border-radius: 22px;
  text-align: center;
  color: var(--gray-500);
  background: var(--white);
  box-shadow: var(--shadow);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.side-card {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 18px;
}

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

.side-list .movie-card-grid {
  box-shadow: none;
  border: 1px solid var(--gray-200);
}

.detail-hero {
  padding: 34px 0 58px;
  color: var(--white);
  background: radial-gradient(circle at 18% 20%, rgba(20, 184, 166, 0.32), transparent 32%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 30px;
  align-items: center;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.22));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--teal-500);
  box-shadow: 0 24px 50px rgba(20, 184, 166, 0.38);
  font-size: 28px;
}

.player-overlay strong {
  width: min(80%, 560px);
  text-align: center;
  font-size: clamp(20px, 3vw, 34px);
}

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

.detail-intro p {
  margin-bottom: 24px;
  color: #e2e8f0;
  font-size: 18px;
}

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

.detail-content {
  display: grid;
  gap: 20px;
}

.content-card,
.info-card,
.related-panel {
  padding: 24px;
}

.content-card h2,
.related-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  font-size: 16px;
}

.lead-text {
  font-size: 19px !important;
  color: var(--gray-700) !important;
}

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

.detail-meta-grid div {
  padding: 16px;
  border-radius: 16px;
  background: var(--gray-100);
}

.detail-meta-grid span,
.detail-meta-grid strong {
  display: block;
}

.detail-meta-grid span {
  color: var(--gray-500);
  font-size: 13px;
}

.detail-meta-grid strong {
  margin-top: 6px;
  color: var(--gray-900);
}

.tag-cloud {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag-cloud a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.tag-cloud a:hover {
  color: var(--teal-700);
  background: #ccfbf1;
}

.related-panel {
  position: sticky;
  top: 92px;
}

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

.related-list .movie-card-horizontal {
  min-height: 132px;
  box-shadow: none;
  border: 1px solid var(--gray-200);
}

.related-list .horizontal-poster {
  min-width: 120px;
  width: 38%;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

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

.footer-logo {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 14px;
}

.footer-brand p,
.site-footer li {
  color: #cbd5e1;
  line-height: 1.8;
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  padding: 22px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  color: #94a3b8;
}

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

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

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

  .side-card,
  .related-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .mobile-menu-button {
    display: inline-flex;
  }

  .nav-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
  }

  body.menu-open .nav-panel {
    display: flex;
  }

  .nav-main,
  .nav-categories,
  .nav-search {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-categories {
    display: flex;
  }

  .nav-link,
  .nav-category-link,
  .nav-search button {
    text-align: center;
  }

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

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

  .hero-copy {
    left: 24px;
    right: 24px;
    bottom: 86px;
  }

  .hero-arrow {
    display: none;
  }

  .home-search,
  .search-hero-form,
  .filter-panel,
  .detail-hero-grid {
    flex-direction: column;
    display: flex;
    align-items: stretch;
  }

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

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

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

  .overview-image {
    min-height: 220px;
  }

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

@media (max-width: 620px) {
  .container,
  .site-nav,
  .footer-inner,
  .hero-search-panel {
    width: min(100% - 24px, 1180px);
  }

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

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

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

  .hero-copy p {
    font-size: 16px;
  }

  .hero-search-panel {
    margin-top: -34px;
    padding: 16px;
    border-radius: 20px;
  }

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

  .movie-card-large {
    height: 360px;
  }

  .movie-card-horizontal {
    min-height: 150px;
  }

  .horizontal-poster {
    min-width: 132px;
  }

  .ranking-row {
    grid-template-columns: 34px 70px 1fr;
  }

  .ranking-score {
    display: none;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .content-card,
  .info-card,
  .related-panel,
  .filter-panel {
    padding: 18px;
  }
}
