:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #16a34a;
  --rose: #e11d48;
  --orange: #f97316;
  --violet: #7c3aed;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.24);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50) 0%, #ffffff 42%, var(--slate-50) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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: 80;
  background: linear-gradient(90deg, var(--slate-950), var(--slate-900) 50%, var(--slate-800));
  color: var(--white);
  box-shadow: 0 8px 26px rgba(2, 6, 23, 0.28);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.24);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #60a5fa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: -2px;
  color: var(--slate-300);
  font-size: 12px;
}

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

.nav-link,
.dropdown-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--slate-200);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 180px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--slate-200);
}

.dropdown-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.header-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.header-search input:focus {
  border-color: rgba(103, 232, 249, 0.8);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18);
}

.header-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

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

.hero {
  position: relative;
  height: min(680px, calc(100vh - var(--header-height)));
  min-height: 520px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-slider,
.hero-slide,
.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-slide.active .hero-bg {
  animation: heroZoom 8s ease forwards;
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 22%, rgba(6, 182, 212, 0.24), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.76), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1240px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  margin-left: max(16px, calc((100vw - 1240px) / 2));
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--slate-200);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.detail-tags a,
.tag-list span,
.mini-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--slate-100);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.24);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.ghost-button.dark {
  color: var(--slate-800);
  border-color: var(--slate-200);
  background: var(--white);
}

.wide {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(12px);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

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

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

.hero-dot.active {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.site-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.soft-panel {
  width: min(1240px, calc(100% - 32px));
  margin-top: 42px;
  padding: 42px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
}

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

.section-heading h2,
.panel-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--slate-600);
}

.section-more,
.text-button {
  color: var(--blue);
  font-weight: 800;
}

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

.full-grid {
  align-items: stretch;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(6, 182, 212, 0.36);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-800);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .card-cover img {
  filter: saturate(1.12) contrast(1.05);
  transform: scale(1.08);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-mark,
.category-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-meta,
.ranking-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
}

.card-meta a,
.detail-meta a {
  color: var(--blue);
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.3;
}

.movie-card h3 a:hover,
.ranking-info h3 a:hover {
  color: var(--blue);
}

.movie-card p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-tags span {
  color: var(--slate-600);
  background: var(--slate-100);
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: var(--white);
  background: var(--slate-900);
  box-shadow: var(--shadow-md);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 70%);
}

.category-tile strong,
.category-tile em,
.category-count {
  position: absolute;
  z-index: 1;
}

.category-tile strong {
  left: 18px;
  right: 18px;
  bottom: 58px;
  font-size: 23px;
  font-style: normal;
}

.category-tile em {
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--slate-200);
  font-size: 13px;
  font-style: normal;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.two-column-section .movie-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-panel,
.side-card,
.search-panel,
.prose-panel {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ranking-panel,
.side-card,
.search-panel {
  padding: 24px;
}

.panel-heading {
  margin-bottom: 16px;
}

.panel-heading span {
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ranking-row {
  display: grid;
  grid-template-columns: 46px 78px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--slate-100);
}

.ranking-list .ranking-row {
  grid-template-columns: 64px 132px minmax(0, 1fr);
  padding: 18px;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.ranking-index {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.ranking-thumb {
  overflow: hidden;
  border-radius: 12px;
  background: var(--slate-800);
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  min-height: 70px;
  object-fit: cover;
}

.ranking-info h3 {
  margin: 0 0 6px;
  color: var(--slate-900);
  font-size: 17px;
}

.ranking-info p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-meta strong {
  color: var(--orange);
}

.page-hero,
.detail-top {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero > div {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.compact-hero > div {
  padding: 72px 0;
}

.category-hero,
.search-hero,
.ranking-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.28), transparent 28%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--slate-300);
  font-size: 14px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 220px;
  background: var(--slate-900);
}

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

.category-overview-body {
  padding: 26px;
}

.category-overview-body span {
  color: var(--cyan);
  font-weight: 900;
}

.category-overview-body h2 {
  margin: 10px 0;
  color: var(--slate-900);
}

.category-overview-body p {
  color: var(--slate-600);
}

.filter-bar,
.search-layout {
  display: grid;
  gap: 20px;
}

.filter-bar {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: end;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-bar label,
.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-700);
  font-weight: 800;
}

.filter-bar input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
}

.filter-bar input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--slate-700);
  background: var(--slate-100);
  cursor: pointer;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.search-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.search-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 12px;
}

.search-summary {
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  color: var(--slate-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-top {
  min-height: 520px;
}

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

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

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72));
}

.detail-inner {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
}

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

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

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

.detail-poster span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.72);
  font-weight: 900;
}

.detail-main h1 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  color: var(--slate-200);
  font-size: 20px;
}

.detail-meta {
  margin: 22px 0;
  color: var(--slate-200);
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
}

.detail-tags a {
  color: var(--white);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-lg);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.20), transparent 28%),
    rgba(2, 6, 23, 0.46);
  cursor: pointer;
}

.player-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 20px 42px rgba(6, 182, 212, 0.28);
  font-size: 34px;
}

.player-overlay strong {
  font-size: 22px;
}

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

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

.player-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.74);
  font-size: 13px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.prose-panel {
  padding: 32px;
}

.prose-panel h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 26px;
}

.prose-panel h2:not(:first-child) {
  margin-top: 32px;
}

.prose-panel p,
.prose-panel li {
  color: var(--slate-700);
  font-size: 17px;
}

.prose-panel a {
  color: var(--blue);
  font-weight: 800;
}

.side-card {
  display: grid;
  gap: 12px;
}

.side-card h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
}

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

.site-footer {
  margin-top: 64px;
  color: var(--slate-300);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

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

.footer-inner p {
  color: var(--slate-400);
}

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

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--slate-500);
  font-size: 14px;
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12);
  }
}

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

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

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

  .two-column-section,
  .search-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .search-panel {
    position: static;
  }

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

@media (max-width: 840px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 10px 0;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link,
  .dropdown-button {
    justify-content: center;
  }

  .nav-dropdown {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    margin-left: 16px;
    margin-right: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .two-column-section .movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-card,
  .detail-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .category-preview {
    min-height: 150px;
  }

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

  .ranking-list .ranking-row {
    grid-template-columns: 48px 92px minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-text small {
    display: none;
  }

  .hero h1,
  .page-hero h1,
  .detail-main h1 {
    font-size: 36px;
  }

  .site-section,
  .soft-panel {
    width: min(100% - 24px, 1240px);
    padding-left: 0;
    padding-right: 0;
  }

  .soft-panel {
    padding: 24px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }

  .movie-grid,
  .two-column-section .movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .ranking-row,
  .ranking-list .ranking-row {
    grid-template-columns: 44px 76px minmax(0, 1fr);
    gap: 10px;
  }

  .prose-panel,
  .ranking-panel,
  .side-card,
  .search-panel {
    padding: 22px;
  }

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