:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: #1e293b;
  --panel-soft: #273449;
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --orange: #f97316;
  --red: #dc2626;
  --yellow: #eab308;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.16), transparent 28%), linear-gradient(180deg, #111827 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.header-inner,
.category-strip-inner,
.page-shell,
.footer-grid,
.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.25);
}

.logo-text {
  font-size: 1.25rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav-link {
  color: var(--muted-strong);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(148, 163, 184, 0.12);
}

.header-search,
.mobile-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-input,
.filter-year {
  color: #fff;
  background: rgba(51, 65, 85, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  outline: none;
  transition: 0.2s ease;
}

.header-search input,
.mobile-search input {
  width: 260px;
  padding: 11px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-year:focus {
  border-color: rgba(249, 115, 22, 0.75);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #fff;
  padding: 11px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  background: rgba(51, 65, 85, 0.88);
}

.category-strip {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.category-strip-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.category-strip-inner::-webkit-scrollbar,
.scroll-row::-webkit-scrollbar {
  display: none;
}

.pill-link,
.search-hotwords a {
  flex: 0 0 auto;
  color: var(--muted-strong);
  background: rgba(51, 65, 85, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.86rem;
  transition: 0.2s ease;
}

.pill-link:hover,
.pill-link.is-active,
.search-hotwords a:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(220, 38, 38, 0.92));
  border-color: transparent;
}

.mobile-panel {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-links,
.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

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

.hero-slides,
.hero-slide,
.hero-slide img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 1.2s ease;
}

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

.hero-slide img,
.detail-poster img,
.poster img,
.overview-posters img,
.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(30, 41, 59, 0.9));
}

.hero-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.66) 48%, rgba(0, 0, 0, 0.18) 100%), linear-gradient(0deg, rgba(15, 23, 42, 0.88) 0%, transparent 42%);
}

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

.hero-content h1 {
  max-width: 760px;
  margin: 14px 0 16px;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1.05;
  font-weight: 950;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: 1.12rem;
}

.hero-kicker,
.detail-kicker,
.sub-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  color: #fff;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-actions,
.sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 850;
  transition: 0.22s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.22);
}

.btn-ghost {
  color: #fff;
  background: rgba(51, 65, 85, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-plain {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.24);
}

.btn:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  font-size: 2.4rem;
  line-height: 1;
  transition: 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.page-shell {
  padding: 56px 0;
}

.home-shell {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.content-section {
  display: block;
}

.panel-section,
.ranking-teaser {
  padding: 32px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(51, 65, 85, 0.64));
  box-shadow: var(--shadow);
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.section-icon {
  font-size: 1.6rem;
}

.section-more {
  color: #fb923c;
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.five-cols {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.six-cols {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

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

.poster img {
  transition: transform 0.34s ease;
}

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  transition: 0.24s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.score,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.rank-badge {
  left: 12px;
  right: auto;
  min-width: 34px;
  text-align: center;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.play-mini {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.84);
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  opacity: 0;
  transition: 0.24s ease;
}

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

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 3.1em;
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: 0.18s ease;
}

.movie-card:hover .card-title {
  color: #fb923c;
}

.card-meta {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.card-body p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-tags span {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.76rem;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 180px;
}

.movie-card-horizontal .poster {
  height: 100%;
  aspect-ratio: auto;
}

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

.category-card,
.category-overview-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 0.9fr;
  gap: 20px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.72));
  box-shadow: var(--shadow);
  transition: 0.24s ease;
}

.category-copy h3,
.overview-copy h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.category-copy p,
.overview-copy p {
  color: #d1d5db;
  margin: 0 0 18px;
}

.category-copy span,
.overview-copy span {
  color: #fed7aa;
  font-weight: 900;
}

.category-thumbs,
.overview-posters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-self: stretch;
}

.category-thumbs img,
.overview-posters img {
  min-height: 98px;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.overview-posters {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 180px;
}

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

.from-orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.28), rgba(30, 41, 59, 0.9));
}

.from-red {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.26), rgba(30, 41, 59, 0.9));
}

.from-yellow {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.22), rgba(30, 41, 59, 0.9));
}

.from-purple {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.24), rgba(30, 41, 59, 0.9));
}

.from-pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(30, 41, 59, 0.9));
}

.from-blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(30, 41, 59, 0.9));
}

.from-green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(30, 41, 59, 0.9));
}

.from-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(30, 41, 59, 0.9));
}

.from-indigo {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(30, 41, 59, 0.9));
}

.from-slate {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.36), rgba(30, 41, 59, 0.9));
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.scroll-item {
  flex: 0 0 250px;
  scroll-snap-align: start;
}

.rank-grid,
.rank-list,
.related-list {
  display: grid;
  gap: 18px;
}

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

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.9), rgba(220, 38, 38, 0.9)), radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.24), transparent 32%);
}

.sub-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -42% 40%;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(20px);
}

.sub-hero-inner {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.channel-hero .sub-hero-inner,
.rank-hero .sub-hero-inner,
.search-hero .sub-hero-inner {
  text-align: left;
  width: min(1280px, calc(100% - 32px));
}

.sub-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1.08;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: 1.1rem;
}

.sub-actions {
  margin-top: 24px;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.86);
}

.filter-panel h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
}

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

.filter-controls {
  display: flex;
  gap: 12px;
  min-width: min(520px, 100%);
}

.filter-input {
  flex: 1 1 auto;
  padding: 13px 15px;
}

.filter-year {
  flex: 0 0 150px;
  padding: 13px 15px;
}

.empty-state {
  display: none;
  margin-top: 22px;
  padding: 32px;
  text-align: center;
  color: var(--muted-strong);
  border: 1px dashed rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.6);
}

.empty-state.is-visible {
  display: block;
}

.search-hotwords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 0.88)), var(--detail-cover);
  background-position: center;
  background-size: cover;
  filter: saturate(1.1);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #fed7aa;
  font-size: 0.92rem;
}

.breadcrumb strong {
  color: #fff;
  font-weight: 800;
}

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1.08;
}

.detail-copy p {
  max-width: 760px;
  margin: 0 0 20px;
  color: #d1d5db;
  font-size: 1.1rem;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-shell {
  padding-top: 36px;
}

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

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.7));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-button {
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 24px 48px rgba(249, 115, 22, 0.3);
  font-size: 2.4rem;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.9rem;
}

.player-message:empty {
  display: none;
}

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

.detail-article,
.related-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.detail-article {
  padding: 30px;
}

.detail-article h2,
.related-panel h2 {
  margin: 0 0 16px;
  font-size: 1.45rem;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin: 0;
  color: #d1d5db;
  font-size: 1.02rem;
}

.related-panel {
  position: sticky;
  top: 126px;
  padding: 22px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  color: #fff;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 36px;
  padding: 42px 0;
}

.footer-grid p {
  max-width: 520px;
  color: var(--muted);
}

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid a:not(.footer-logo) {
  display: block;
  width: fit-content;
  margin: 7px 0;
  color: var(--muted-strong);
}

.footer-grid a:hover {
  color: #fb923c;
}

.footer-bottom {
  padding: 18px 0 28px;
  color: #64748b;
  font-size: 0.92rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .five-cols,
  .six-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    align-items: stretch;
    padding-right: 12px;
  }

  .hero-control {
    display: none;
  }

  .four-cols,
  .five-cols,
  .six-cols,
  .three-cols,
  .rank-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .filter-panel,
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }

  .filter-year {
    flex: 1 1 auto;
  }

  .detail-grid,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .related-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .page-shell,
  .footer-grid,
  .footer-bottom,
  .hero-content,
  .detail-hero-inner,
  .sub-hero-inner {
    width: min(100% - 24px, 1280px);
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .hero-carousel {
    height: 620px;
  }

  .hero-content h1 {
    font-size: 2.35rem;
  }

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

  .hero-actions,
  .sub-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .four-cols,
  .five-cols,
  .six-cols,
  .three-cols,
  .rank-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 16px;
  }

  .movie-card-horizontal {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 160px;
  }

  .card-body {
    padding: 13px;
  }

  .panel-section,
  .ranking-teaser,
  .filter-panel,
  .detail-article,
  .related-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .player-button {
    width: 72px;
    height: 72px;
  }
}
