:root {
  --bg: #ffffff;
  --soft-bg: #f5f8fc;
  --ink: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.nav-shell {
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(6deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

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

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transform: scaleX(0.4);
  transition: all 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

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

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

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 14px 24px 20px;
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #334155;
  font-weight: 700;
}

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

.section-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-section {
  position: relative;
  min-height: 680px;
  padding-top: 72px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 52%, #14b8a6 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 28%), radial-gradient(circle at 80% 10%, rgba(250, 204, 21, 0.22), transparent 24%), rgba(15, 23, 42, 0.22);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
  background-size: 36px 36px;
}

.hero-slider {
  position: relative;
  max-width: 1200px;
  min-height: 608px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.hero-slide {
  position: absolute;
  inset: 72px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 52px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow.blue {
  color: var(--blue);
  background: #dbeafe;
}

.hero-copy h1 {
  margin: 0 0 24px;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #e0f2fe;
  font-size: clamp(18px, 2vw, 24px);
}

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

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.28);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.primary-btn,
.ghost-btn,
.home-search button,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn,
.home-search button,
.search-panel button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.hero-section .primary-btn {
  color: var(--blue);
  background: #ffffff;
}

.ghost-btn {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover,
.home-search button:hover,
.search-panel button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.2);
}

.primary-btn.full {
  width: 100%;
  margin-top: 18px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border-radius: 34px;
  box-shadow: 0 36px 80px rgba(15, 23, 42, 0.36);
  isolation: isolate;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.42));
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-controls {
  position: absolute;
  left: 24px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 32px;
  line-height: 1;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

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

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

.quick-search-panel,
.search-panel,
.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.quick-search-panel h2,
.filter-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.home-search,
.search-panel {
  flex: 1;
  display: flex;
  max-width: 620px;
  gap: 12px;
}

.home-search input,
.search-panel input,
.filter-panel input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: #f8fafc;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.home-search input:focus,
.search-panel input:focus,
.filter-panel input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.stats-section {
  padding: 44px 0 20px;
  background: #ffffff;
}

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

.stats-grid div {
  padding: 26px;
  border-radius: 22px;
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.stats-grid strong {
  display: block;
  color: var(--blue);
  font-size: 30px;
}

.stats-grid span {
  color: var(--muted);
  font-weight: 700;
}

.section-block {
  padding: 86px 0;
  background: #ffffff;
}

.soft-bg {
  background: var(--soft-bg);
}

.dark-panel {
  color: #ffffff;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

.section-heading.center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.section-heading h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

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

.section-heading.light h2,
.section-heading.light p {
  color: #ffffff;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}

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

.category-card {
  min-height: 230px;
  padding: 26px;
  border-radius: var(--radius);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.overview-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.category-card span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.category-card.orange { background: linear-gradient(135deg, #ef4444, #f97316); }
.category-card.cyan { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.category-card.green { background: linear-gradient(135deg, #16a34a, #10b981); }
.category-card.amber { background: linear-gradient(135deg, #f59e0b, #eab308); }
.category-card.violet { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.category-card.rose { background: linear-gradient(135deg, #e11d48, #fb7185); }
.category-card.blue { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.category-card.teal { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.category-card.slate { background: linear-gradient(135deg, #334155, #0f172a); }
.category-card.pink { background: linear-gradient(135deg, #db2777, #f472b6); }

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dark-panel .movie-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-thumb {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.compact .movie-thumb {
  height: 210px;
}

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

.movie-card:hover .movie-thumb img {
  transform: scale(1.09);
}

.thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.52));
  opacity: 0.85;
}

.year-badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.year-badge {
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.7);
  font-size: 12px;
}

.rank-badge {
  top: 14px;
  right: 14px;
  min-width: 34px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  text-align: center;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  transform: scale(0.9);
  transition: transform 0.25s ease;
}

.movie-card:hover .play-chip {
  transform: scale(1.06);
}

.movie-info {
  padding: 20px;
}

.movie-info h2 {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.dark-panel .movie-info h2 {
  color: #ffffff;
}

.meta-line,
.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.meta-line {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 13px;
  -webkit-line-clamp: 1;
}

.movie-desc {
  min-height: 50px;
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
  -webkit-line-clamp: 2;
}

.dark-panel .meta-line,
.dark-panel .movie-desc {
  color: #cbd5e1;
}

.tag-row {
  align-items: center;
}

.tag-row span,
.tag-row strong {
  padding: 5px 9px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.tag-row strong {
  margin-left: auto;
  color: #0f766e;
  background: #ccfbf1;
}

.page-hero,
.detail-hero {
  position: relative;
  padding-top: 72px;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb, #06b6d4 55%, #14b8a6);
}

.slim-hero .section-shell {
  padding-top: 88px;
  padding-bottom: 70px;
}

.page-hero h1,
.detail-hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-hero p {
  max-width: 780px;
  margin: 0;
  color: #e0f2fe;
  font-size: 19px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 800;
}

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

.filter-panel {
  margin-bottom: 28px;
}

.filter-panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

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

.overview-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.overview-card a {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 220px;
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 14px;
  background: #e0f2fe;
}

.overview-thumbs img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  border-radius: 16px;
}

.overview-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.overview-content h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.overview-content p {
  margin: 0 0 20px;
  color: var(--muted);
}

.overview-content span {
  color: var(--blue);
  font-weight: 900;
}

.rank-shell {
  max-width: 980px;
}

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

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

.rank-item {
  border-radius: 20px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 50px 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

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

.rank-item h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.rank-item p,
.rank-item span {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.rank-item strong {
  color: #f59e0b;
  font-size: 18px;
}

.search-shell {
  max-width: 980px;
}

.search-panel {
  max-width: none;
  margin-bottom: 24px;
}

.search-results {
  display: grid;
  gap: 16px;
}

.search-empty {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: #f8fafc;
}

.search-result {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-result img {
  width: 94px;
  height: 128px;
  object-fit: cover;
  border-radius: 16px;
}

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

.search-result p {
  margin: 0 0 8px;
  color: var(--muted);
}

.detail-hero {
  min-height: 560px;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.88));
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.08);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 78px;
  padding-bottom: 68px;
}

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

.detail-cover {
  width: 280px;
  height: 380px;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.detail-main {
  padding-top: 42px;
}

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

.detail-primary {
  display: grid;
  gap: 24px;
}

.player-card,
.content-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
}

.video-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  font-size: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.player-cover strong {
  font-size: 20px;
}

.content-card,
.info-card {
  padding: 28px;
}

.content-card h2,
.info-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

.info-card {
  position: sticky;
  top: 96px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

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

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 36px;
}

.footer-logo .brand-text strong {
  color: #ffffff;
}

.footer-logo .brand-text small {
  color: #94a3b8;
}

.footer-brand p {
  max-width: 460px;
  margin: 18px 0 0;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

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

.footer-column a:hover {
  color: #38bdf8;
}

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

[hidden],
.is-filtered-out {
  display: none !important;
}

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

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

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

  .info-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slide {
    inset: 56px 24px 100px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
  }

  .hero-poster {
    min-height: 280px;
  }

  .hero-poster img {
    min-height: 280px;
  }

  .quick-search-panel,
  .filter-panel,
  .section-heading.split {
    align-items: stretch;
    flex-direction: column;
  }

  .home-search,
  .search-panel {
    max-width: none;
    flex-direction: column;
  }

  .stats-grid,
  .category-grid,
  .movie-grid,
  .category-movies,
  .featured-grid,
  .latest-grid,
  .related-grid,
  .compact-rank,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-title-grid,
  .footer-inner,
  .overview-card a {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: 210px;
    height: 300px;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-slider {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-slide {
    left: 16px;
    right: 16px;
  }

  .stats-grid,
  .category-grid,
  .movie-grid,
  .category-movies,
  .featured-grid,
  .latest-grid,
  .related-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .rank-item a,
  .search-result {
    grid-template-columns: 1fr;
  }

  .rank-number {
    position: absolute;
    margin: 12px;
  }

  .rank-item {
    position: relative;
  }

  .rank-item img,
  .search-result img {
    width: 100%;
    height: 240px;
  }

  .movie-thumb,
  .compact .movie-thumb {
    height: 240px;
  }
}
