:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --yellow-500: #eab308;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --black: #030712;
  --white: #ffffff;
  --shadow-soft: 0 18px 60px rgba(17, 24, 39, 0.12);
  --shadow-card: 0 16px 36px rgba(17, 24, 39, 0.12);
  --radius-lg: 22px;
  --radius-xl: 30px;
  --container: 1180px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--amber-50) 0%, #ffffff 42%, #fff7ed 100%);
  color: var(--gray-900);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--amber-500), var(--yellow-500), var(--orange-500));
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.02em;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.95);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px;
}

.nav-search input,
.mobile-search input {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  min-width: 180px;
}

.nav-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--gray-900);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

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

.mobile-link {
  display: block;
  color: var(--white);
  font-weight: 800;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--amber-600);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background:
    linear-gradient(90deg, rgba(146, 64, 14, 0.92), rgba(245, 158, 11, 0.78), rgba(234, 179, 8, 0.58)),
    var(--hero-image) center / cover no-repeat;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0), var(--amber-50));
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(48px);
  animation: floatGlow 7s ease-in-out infinite;
}

.hero-glow-one {
  top: 7%;
  left: 5%;
}

.hero-glow-two {
  right: 5%;
  bottom: 6%;
  animation-delay: 1.5s;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -20px, 0) scale(1.08);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 46px;
  padding: 80px 0 110px;
}

.hero-copy {
  color: var(--white);
  max-width: 760px;
}

.welcome-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 700;
  color: var(--amber-100);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 40px);
  color: var(--amber-100);
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 26px 0 0;
  max-width: 720px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.75;
  color: #fff7ed;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  backdrop-filter: blur(8px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-light {
  background: var(--white);
  color: var(--amber-600);
  box-shadow: 0 16px 30px rgba(255, 255, 255, 0.18);
}

.btn-outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
}

.btn-gradient {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.24);
}

.btn-soft {
  color: var(--amber-700);
  background: var(--amber-100);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 56px;
  z-index: 10;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

.stats-card {
  position: relative;
  z-index: 3;
  margin-top: -54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stats-card strong {
  display: block;
  color: var(--amber-600);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.stats-card span {
  display: block;
  margin-top: 8px;
  color: var(--gray-500);
  font-weight: 700;
}

.content-section {
  padding: 70px 0;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--amber-600);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: var(--gray-900);
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.section-head p {
  max-width: 650px;
  color: var(--gray-500);
  line-height: 1.8;
  margin: 10px 0 0;
}

.section-more,
.text-link {
  color: var(--amber-600);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(217, 119, 6, 0.22);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--gray-200);
}

.poster-wrap img,
.rank-thumb img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.play-float,
.rank-badge,
.poster-score {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--white);
}

.play-float {
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

.movie-card-body {
  padding: 18px;
}

.card-meta,
.card-foot,
.rank-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
  font-weight: 800;
}

.card-meta strong {
  color: var(--gray-700);
}

.movie-card h3 {
  min-height: 52px;
  margin: 14px 0 8px;
  color: var(--gray-900);
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover {
  color: var(--amber-600);
}

.movie-card p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--gray-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-tags {
  min-height: 28px;
  margin-bottom: 14px;
}

.mini-tags span {
  padding: 5px 9px;
  color: var(--amber-700);
  background: var(--amber-100);
}

.card-foot {
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
}

.quick-panel,
.info-card,
.detail-sidebar,
.detail-article,
.cta-strip,
.filter-panel,
.global-search-box,
.category-overview-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.quick-panel {
  align-self: start;
  padding: 30px;
  position: sticky;
  top: 96px;
}

.quick-panel h2,
.info-card h2,
.detail-sidebar h2,
.detail-article h2,
.cta-strip h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.quick-panel p,
.info-card p,
.cta-strip p {
  color: var(--gray-500);
  line-height: 1.8;
}

.quick-panel .btn {
  width: 100%;
  margin-top: 12px;
}

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

.rank-list.compact .rank-item:nth-child(n + 8) {
  display: none;
}

.rank-item {
  display: grid;
  grid-template-columns: 62px 78px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.rank-number {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  font-weight: 900;
}

.rank-thumb {
  display: block;
  width: 78px;
  height: 104px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-200);
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--gray-500);
  line-height: 1.7;
}

.rank-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 28px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.86)),
    var(--tile-image) center / cover no-repeat;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
}

.category-tile span {
  display: inline-flex;
  margin-bottom: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.88);
  font-weight: 900;
}

.category-tile h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-tile p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(146, 64, 14, 0.96), rgba(249, 115, 22, 0.83)),
    var(--page-image, linear-gradient(90deg, var(--amber-600), var(--orange-500)));
  background-size: cover;
  background-position: center;
}

.small-hero .container,
.category-hero .container {
  padding: 90px 0;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(40px, 6vw, 68px);
}

.page-hero p {
  max-width: 780px;
  font-size: 20px;
  line-height: 1.8;
  color: var(--amber-100);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.category-cover {
  min-height: 250px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.78)),
    var(--category-image) center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.category-cover span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--white);
  font-weight: 900;
}

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

.category-overview-card p {
  color: var(--gray-500);
  line-height: 1.75;
}

.category-stats {
  color: var(--amber-600);
  font-weight: 900;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.sample-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

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

.filter-panel label,
.global-search-box label {
  color: var(--gray-700);
  font-weight: 900;
}

.filter-panel input,
.filter-panel select,
.global-search-box input,
.global-search-box select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: var(--gray-50);
  padding: 13px 14px;
  outline: none;
}

.filter-panel button {
  border: 0;
  border-radius: 16px;
  background: var(--gray-900);
  color: var(--white);
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 900;
}

.filter-count {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--gray-500);
  font-weight: 800;
}

.global-search-box {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  padding: 22px;
  margin-bottom: 18px;
}

.search-summary {
  color: var(--gray-500);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: var(--gray-900);
  color: var(--white);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(146, 64, 14, 0.82), rgba(17, 24, 39, 0.45)),
    var(--detail-image) center / cover no-repeat;
  filter: saturate(1.1);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  padding: 42px 0 74px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

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

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

.detail-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.poster-score {
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(40px, 6vw, 70px);
}

.one-line {
  max-width: 800px;
  color: var(--amber-100);
  font-size: 21px;
  line-height: 1.8;
}

.detail-tags {
  margin: 22px 0;
}

.detail-tags span {
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 780px;
}

.detail-meta-grid div {
  padding: 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

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

.detail-meta-grid strong {
  margin-bottom: 6px;
  color: var(--amber-100);
}

.player-section {
  padding-bottom: 30px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  text-align: center;
}

.player-overlay span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.35);
  font-size: 28px;
}

.player-overlay strong {
  font-size: clamp(22px, 3vw, 34px);
}

.player-overlay em {
  color: var(--amber-100);
  font-style: normal;
}

.movie-player.is-playing .player-overlay {
  display: none;
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 3;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.75);
  font-size: 13px;
}

.movie-player.is-playing .player-status {
  display: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
}

.detail-article,
.detail-sidebar {
  padding: 30px;
}

.detail-article p {
  color: var(--gray-700);
  font-size: 18px;
  line-height: 2;
}

.detail-sidebar dl {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0 0 26px;
}

.detail-sidebar dt {
  color: var(--gray-500);
  font-weight: 900;
}

.detail-sidebar dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
}

.side-tags span {
  background: var(--amber-100);
  color: var(--amber-700);
}

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

.info-card {
  padding: 28px;
}

.cta-strip {
  text-align: center;
  padding: 46px;
  margin-bottom: 70px;
}

.cta-strip .btn {
  margin: 8px;
}

.site-footer {
  padding: 64px 0 28px;
  background: linear-gradient(180deg, #111827, #030712);
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 16px;
  font-size: 24px;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: var(--white);
}

.site-footer p {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: var(--amber-500);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  display: inline-flex;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  width: min(100% - 32px, var(--container));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  text-align: center;
}

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

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

  .category-overview-grid,
  .split-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-poster {
    max-width: 320px;
    transform: none;
  }

  .stats-card,
  .movie-grid,
  .category-grid,
  .about-grid,
  .footer-grid,
  .filter-panel,
  .global-search-box,
  .detail-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .filter-count {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 740px;
  }

  .hero-content {
    padding-top: 54px;
    gap: 24px;
  }

  .hero-poster img {
    height: 380px;
  }

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

  .btn,
  .mobile-search button {
    width: 100%;
  }

  .stats-card,
  .movie-grid,
  .category-grid,
  .about-grid,
  .footer-grid,
  .filter-panel,
  .global-search-box,
  .detail-meta-grid,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-item {
    align-items: start;
  }

  .rank-thumb {
    width: 120px;
    height: 160px;
  }

  .section-head {
    display: block;
  }

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

  .detail-wrap {
    padding-top: 30px;
  }

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