:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --red: #ef4444;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --dark: #111827;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 36%, #ecfeff 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark,
.footer-logo span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  font-weight: 700;
  color: #374151;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 8px 8px 8px 14px;
  background: transparent;
}

.header-search button,
.big-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.big-search button:hover,
.search-page-form button:hover,
.btn-primary:hover,
.watch-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 22px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.mobile-nav a {
  padding: 10px 0;
  font-weight: 700;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}

.mobile-nav button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--orange);
}

.hero-carousel {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #111827;
}

.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;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 5s ease;
}

.hero-slide.is-active .hero-bg {
  transform: scale(1.1);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(6, 182, 212, 0.22), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.14));
}

.hero-content {
  position: relative;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.95), rgba(6, 182, 212, 0.85));
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 950;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-line span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

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

.btn-primary,
.btn-soft,
.btn-ghost,
.watch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.22s ease;
}

.btn-primary {
  padding: 15px 28px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
}

.btn-soft {
  padding: 15px 26px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.btn-ghost {
  padding: 15px 26px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
}

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

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

.hero-dot.is-active {
  width: 38px;
  background: var(--orange);
}

.quick-search-panel,
.content-section,
.page-shell,
.breadcrumb,
.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-search-panel {
  margin-top: -42px;
  position: relative;
  z-index: 5;
}

.big-search {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.big-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 18px;
  outline: none;
}

.big-search input:focus,
.search-page-form input:focus,
.search-page-form select:focus,
.inline-filter input:focus,
.inline-filter select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-cats a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #374151;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  font-weight: 800;
  transition: transform 0.2s ease, color 0.2s ease;
}

.quick-cats a:hover {
  color: var(--orange);
  transform: translateY(-2px);
}

.content-section {
  padding-top: 72px;
}

.content-section.no-top {
  padding-top: 34px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.section-link {
  color: var(--orange);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #374151);
}

.poster-wrap img,
.wide-cover img,
.rank-poster img,
.compact-card img,
.masonry-card img,
.mini-posters img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-wrap img,
.movie-card:hover .wide-cover img,
.compact-card:hover img,
.masonry-card:hover img {
  transform: scale(1.08);
}

.category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.hover-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  font-size: 42px;
  transition: opacity 0.22s ease;
}

.movie-card:hover .hover-play {
  opacity: 1;
}

.card-body {
  padding: 18px;
}

.movie-title {
  display: block;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  transition: color 0.2s ease;
}

.movie-title:hover,
.movie-card:hover .movie-title {
  color: var(--orange);
}

.card-body p,
.wide-content p,
.rank-info p {
  display: -webkit-box;
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.scroll-row-wrap {
  position: relative;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-row .movie-card {
  width: 300px;
}

.scroll-btn {
  position: absolute;
  top: 42%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  font-size: 32px;
  cursor: pointer;
}

.scroll-left {
  left: -18px;
}

.scroll-right {
  right: -18px;
}

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

.category-tile,
.category-index-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px;
  min-height: 140px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937 45%, #0e7490);
  box-shadow: var(--shadow);
}

.category-tile:nth-child(2n),
.category-index-card:nth-child(2n) {
  background: linear-gradient(135deg, #7c2d12, #ea580c 55%, #06b6d4);
}

.category-tile span,
.category-index-title {
  display: block;
  font-size: 24px;
  font-weight: 950;
}

.category-tile em,
.category-index-card p {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.6;
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 220px;
}

.wide-cover {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.play-float {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.26);
  font-size: 36px;
}

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

.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-line span {
  color: #374151;
  background: linear-gradient(90deg, #ffedd5, #cffafe);
}

.dark-stats {
  margin-top: 80px;
  padding: 72px 24px;
  color: #ffffff;
  background: radial-gradient(circle at 25% 20%, rgba(249, 115, 22, 0.22), transparent 30%), linear-gradient(135deg, #111827, #1f2937);
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.stats-inner h2 {
  margin: 0 0 14px;
  font-size: 38px;
}

.stats-inner p {
  margin: 0 auto;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.stats-grid div {
  padding: 28px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.stats-grid strong {
  display: block;
  font-size: 34px;
  color: #ffffff;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.masonry-grid {
  columns: 3 260px;
  column-gap: 22px;
}

.masonry-card {
  position: relative;
  display: block;
  overflow: hidden;
  break-inside: avoid;
  height: 320px;
  margin: 0 0 22px;
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
}

.masonry-2 {
  height: 390px;
}

.masonry-3 {
  height: 280px;
}

.masonry-4 {
  height: 350px;
}

.masonry-card span {
  position: absolute;
  inset: auto 0 0;
  padding: 26px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.masonry-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.35;
}

.masonry-card em {
  display: -webkit-box;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-shell {
  padding-top: 38px;
}

.page-hero {
  overflow: hidden;
  border-radius: 32px;
  padding: 52px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 26%, rgba(6, 182, 212, 0.34), transparent 28%),
    linear-gradient(135deg, #111827, #1f2937 56%, #7c2d12);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 860px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.8;
}

.inline-filter,
.search-page-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.inline-filter input,
.inline-filter select,
.search-page-form input,
.search-page-form select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  background: #ffffff;
}

.inline-filter input,
.search-page-form input {
  min-width: 260px;
  flex: 1;
}

.category-index-card {
  min-height: 260px;
}

.mini-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.mini-posters img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.category-index-card .watch-link {
  margin-top: 20px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 14px;
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 20px;
  font-weight: 950;
  box-shadow: 0 16px 28px rgba(239, 68, 68, 0.22);
}

.rank-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.rank-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: #111827;
}

.watch-link {
  padding: 11px 18px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
}

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

.empty-state {
  grid-column: 1 / -1;
  padding: 44px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.breadcrumb {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-page {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 54%, #ecfeff 100%);
}

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

.player-section {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.18), rgba(0, 0, 0, 0.48));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 20px 44px rgba(249, 115, 22, 0.36);
  font-size: 42px;
}

.detail-card,
.side-card {
  margin-top: 24px;
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-card h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}

.detail-card .lead {
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.detail-meta-grid div {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #ecfeff);
}

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

.detail-meta-grid strong {
  color: var(--muted);
  font-size: 13px;
}

.detail-meta-grid span {
  margin-top: 6px;
  font-weight: 900;
}

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

.detail-tags span {
  color: #374151;
  background: linear-gradient(90deg, #ffedd5, #cffafe);
}

.detail-card h2,
.side-card h2 {
  margin: 30px 0 14px;
  font-size: 24px;
}

.detail-card p,
.review-box p {
  color: #374151;
  line-height: 1.9;
  text-align: justify;
}

.review-box {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7ed, #ecfeff);
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 96px;
}

.side-card h2 {
  margin-top: 0;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: linear-gradient(90deg, #fff7ed, #ecfeff);
  transform: translateX(4px);
}

.compact-card img {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: #111827;
}

.compact-card strong {
  display: -webkit-box;
  color: #111827;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.site-footer {
  margin-top: 76px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  color: #ffffff;
  font-size: 22px;
}

.footer-brand p {
  max-width: 460px;
  color: #9ca3af;
  line-height: 1.8;
}

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

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

.footer-links a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

.is-missing {
  opacity: 0;
}

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

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

  .header-search input {
    width: 170px;
  }

  .movie-grid,
  .category-showcase-grid,
  .category-index-grid,
  .search-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-side {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-carousel {
    height: 560px;
  }

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

  .movie-grid,
  .wide-list,
  .category-showcase-grid,
  .category-index-grid,
  .search-results,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 640px) {
  .header-inner,
  .hero-content,
  .quick-search-panel,
  .content-section,
  .page-shell,
  .breadcrumb,
  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-carousel {
    height: 620px;
  }

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

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

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

  .hero-actions,
  .big-search,
  .search-page-form,
  .inline-filter {
    flex-direction: column;
  }

  .big-search input,
  .inline-filter input,
  .search-page-form input,
  .search-page-form select,
  .inline-filter select {
    width: 100%;
    min-width: 0;
  }

  .movie-grid,
  .wide-list,
  .category-showcase-grid,
  .category-index-grid,
  .search-results,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    grid-template-columns: 128px 1fr;
    min-height: 178px;
  }

  .wide-content {
    padding: 16px;
  }

  .page-hero {
    padding: 34px 22px;
    border-radius: 24px;
  }

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

  .rank-number {
    width: 44px;
    height: 44px;
  }

  .rank-card {
    grid-template-columns: 92px 1fr;
  }

  .rank-card .watch-link {
    grid-column: 1 / -1;
  }

  .detail-card,
  .side-card {
    padding: 22px;
  }

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

  .compact-card {
    grid-template-columns: 92px 1fr;
  }
}
