:root {
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --blue: #2563eb;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 38%, #eef6fb 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 14px;
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.main-nav a,
.mobile-menu a {
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--cyan);
}

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

.header-search input,
.mobile-search input,
.filter-box input,
.filter-box select {
  border: 1px solid #dbe4ef;
  background: var(--white);
  color: var(--gray-900);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
  width: 230px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
}

.header-search button,
.mobile-search button {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--cyan);
  cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-box input:focus,
.filter-box select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eef6fb;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--slate-800);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid #e5eef7;
  background: var(--white);
}

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

.mobile-menu nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mobile-menu nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--slate-50);
}

.mobile-search input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--slate-950), var(--slate-800));
}

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

.hero-slide {
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.55) 48%, rgba(15, 23, 42, 0.08) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.05) 48%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px 86px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 12px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-summary {
  max-width: 690px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-btn,
.ghost-btn,
.ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 32px rgba(8, 145, 178, 0.28);
}

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.ghost-dark {
  color: var(--slate-800);
  background: #e0f2fe;
}

.primary-btn:hover,
.ghost-btn:hover,
.ghost-dark:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.muted-section {
  max-width: none;
  background: linear-gradient(180deg, #ffffff, #f1f8fc);
}

.muted-section > .section-head,
.muted-section > .movie-grid,
.muted-section > .filter-box,
.muted-section > [data-card-list] {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.page-intro {
  padding-top: 42px;
  padding-bottom: 28px;
}

.intro-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0f172a, #0e7490 55%, #2563eb);
  color: var(--white);
  box-shadow: var(--shadow);
}

.intro-card h2,
.intro-card p {
  max-width: 860px;
}

.intro-card h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.intro-card p:not(.eyebrow) {
  margin: 0;
  color: #e0f2fe;
  line-height: 1.75;
}

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

.section-head h2,
.panel-title h2,
.filter-box h2,
.content-card h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--gray-500);
}

.section-more,
.panel-title a {
  color: var(--cyan);
  font-weight: 800;
}

.featured-grid,
.movie-grid,
.category-grid,
.category-card-grid,
.mini-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--slate-800);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.movie-link:hover .poster-frame img,
.mini-card:hover img,
.rank-row:hover img,
.ranking-item:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.58));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-link:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(8, 145, 178, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-year {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(8, 145, 178, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  display: block;
  padding: 15px;
}

.movie-info strong {
  display: block;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-desc {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow: hidden;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.movie-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
}

.ranking-panel,
.content-card,
.filter-box {
  border: 1px solid #e5eef7;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.ranking-panel {
  align-self: start;
  padding: 22px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.rank-list,
.side-list,
.ranking-page-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 38px 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--slate-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover,
.ranking-item:hover,
.mini-card:hover {
  background: #e0f2fe;
  transform: translateX(3px);
}

.rank-num,
.ranking-index {
  color: var(--cyan);
  font-size: 18px;
  font-weight: 900;
}

.rank-row img {
  width: 54px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

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

.rank-info strong {
  font-size: 14px;
}

.rank-info em {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.rank-row b {
  color: var(--cyan-dark);
  font-size: 12px;
}

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

.category-tile {
  min-height: 164px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  border: 1px solid #dbeafe;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-copy em {
  color: var(--cyan);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.category-tile strong,
.category-copy strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.category-tile em,
.category-copy b {
  display: block;
  margin-top: 12px;
  color: var(--gray-500);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.6;
}

.year-stack {
  display: grid;
  gap: 26px;
}

.year-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.year-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  border-radius: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(8, 145, 178, 0.18);
}

.year-cards,
.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.mini-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card img {
  width: 80px;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.mini-card strong,
.mini-card em,
.mini-card b {
  display: block;
  overflow: hidden;
}

.mini-card strong {
  color: var(--gray-900);
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-card em {
  margin-top: 5px;
  color: var(--cyan-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-card b {
  display: -webkit-box;
  margin-top: 7px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 24px;
  color: var(--white);
  text-align: center;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.34), transparent 30%), linear-gradient(135deg, var(--slate-950), var(--slate-800) 56%, #0e7490);
}

.sub-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
  letter-spacing: -0.06em;
}

.sub-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px auto 0;
  color: #dbeafe;
  line-height: 1.75;
}

.filter-box {
  margin-bottom: 28px;
  padding: 24px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, 170px);
  gap: 12px;
  margin-top: 16px;
}

.filter-box input,
.filter-box select {
  height: 46px;
  padding: 0 14px;
  border-radius: 13px;
}

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

.category-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 162px;
  overflow: hidden;
  background: var(--slate-800);
}

.category-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-copy {
  display: block;
  padding: 22px;
}

.breadcrumb {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.detail-hero {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px 42px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: var(--slate-800);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--gray-700);
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta span,
.tag-row span {
  color: var(--cyan-dark);
  background: #e0f2fe;
}

.tag-row {
  margin-top: 14px;
}

.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.3);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
  z-index: 1;
}

.video-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.25), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

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

.video-cover button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 18px 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 42px rgba(8, 145, 178, 0.42);
  cursor: pointer;
  font-weight: 900;
}

.video-cover button span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.content-card {
  padding: 26px;
  margin-bottom: 24px;
}

.content-card p {
  margin: 16px 0 0;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

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

.ranking-page-list {
  gap: 14px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-item img {
  width: 86px;
  height: 118px;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.ranking-copy strong,
.ranking-copy em,
.ranking-copy b {
  display: block;
}

.ranking-copy strong {
  font-size: 19px;
}

.ranking-copy em {
  margin-top: 8px;
  color: var(--cyan-dark);
  font-style: normal;
  font-weight: 800;
}

.ranking-copy b {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-action {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.site-footer {
  margin-top: 30px;
  padding: 54px 24px 26px;
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-grid p {
  max-width: 540px;
  color: #94a3b8;
  line-height: 1.75;
}

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

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(8, 145, 178, 0.45);
}

.footer-bottom {
  max-width: 1280px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

  .compact-grid,
  .year-cards,
  .mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .ranking-panel,
  .sticky-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    height: 74vh;
    min-height: 520px;
  }

  .hero-content {
    padding-bottom: 76px;
  }

  .hero-arrow {
    display: none;
  }

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

  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-hero {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    height: 62px;
    padding: 0 16px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 0 18px 72px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-summary {
    font-size: 15px;
  }

  .section {
    padding: 44px 16px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-grid,
  .movie-grid,
  .archive-grid,
  .compact-grid,
  .category-grid,
  .category-card-grid,
  .year-cards,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-desc {
    display: none;
  }

  .split-section {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .year-badge {
    height: 52px;
  }

  .mini-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .mini-card img {
    width: 64px;
    height: 88px;
  }

  .sub-hero {
    padding: 58px 18px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .player-section,
  .detail-layout,
  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ranking-item {
    grid-template-columns: 40px 66px minmax(0, 1fr);
  }

  .ranking-action {
    display: none;
  }

  .ranking-item img {
    width: 66px;
    height: 92px;
  }

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