:root {
  --color-emerald: #059669;
  --color-teal: #0d9488;
  --color-emerald-dark: #047857;
  --color-amber: #d97706;
  --color-bg: #f8fafc;
  --color-panel: #ffffff;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #ecfdf5;
  --color-line: #e5e7eb;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 25px 55px rgba(15, 23, 42, 0.20);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex: 1;
}

.nav-link,
.mobile-link {
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #374151;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
  color: var(--color-emerald);
  background: #f3f4f6;
}

.menu-toggle {
  display: none;
}

.header-search-panel {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 0 0 16px;
}

.header-search-panel.is-open {
  display: block;
  animation: slideDown 0.22s ease both;
}

.header-search-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 12px 16px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-line);
  padding: 12px 16px 16px;
  background: #ffffff;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
  animation: slideDown 0.22s ease both;
}

.mobile-link {
  display: block;
  border-radius: 12px;
  padding: 10px 12px;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--color-emerald);
  background: var(--color-soft);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  background:
    radial-gradient(circle at 72% 35%, rgba(16, 185, 129, 0.22), transparent 38%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.58), transparent 42%);
}

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

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 14px;
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.24);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 24px 0 18px;
  max-width: 780px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--color-emerald-dark);
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 700;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.text-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-teal));
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.24);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.32);
}

.ghost-button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  padding: 0 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.22);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(16, 185, 129, 0.48);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 28px;
  background: #10b981;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px 170px;
  gap: 14px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0 13px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

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

.content-section + .content-section {
  padding-top: 34px;
}

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

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-head p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.section-more,
.text-button {
  color: var(--color-emerald-dark);
  font-size: 15px;
}

.section-more:hover,
.text-button:hover {
  color: var(--color-teal);
  transform: translateX(3px);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(16, 185, 129, 0.36);
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

.movie-card.is-hidden {
  display: none;
}

.movie-cover-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e5e7eb;
}

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

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

.movie-cover-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.62) 100%);
  opacity: 0.84;
}

.play-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 12px;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: #d1d5db;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.movie-card h3 a:hover {
  color: var(--color-emerald);
}

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

.movie-card-compact .movie-card-body {
  padding: 14px;
}

.movie-card-compact h3 {
  font-size: 16px;
}

.category-section {
  background: linear-gradient(180deg, #ffffff, #f0fdfa);
}

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

.category-tile {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-tile img,
.category-tile span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  transition: transform 0.36s ease;
}

.category-tile span {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.78));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
  padding-left: 18px;
  padding-right: 18px;
}

.category-tile strong {
  margin-top: 92px;
  font-size: 22px;
  font-style: normal;
}

.category-tile em {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
}

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

.ranking-section {
  background: #ffffff;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 38px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: 10px;
  background: #ffffff;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  border-color: rgba(16, 185, 129, 0.38);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.rank-row span {
  color: var(--color-emerald);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 58px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  color: var(--color-muted);
  font-size: 13px;
  font-style: normal;
}

.ranking-feature {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  background: #020617;
  box-shadow: var(--shadow-strong);
}

.ranking-feature img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  opacity: 0.65;
}

.ranking-feature div {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.94));
}

.ranking-feature span {
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ranking-feature h3 {
  margin: 10px 0 10px;
  font-size: 30px;
  line-height: 1.12;
}

.ranking-feature p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.page-hero {
  padding: 76px 0 54px;
  background:
    radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.18), transparent 32%),
    linear-gradient(180deg, #ffffff, #f0fdfa);
}

.page-hero h1 {
  max-width: 860px;
  margin: 16px 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(55, 65, 81, 0.78);
  font-size: 14px;
}

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

.inline-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.inline-link-row a,
.sample-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--color-emerald-dark);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.inline-link-row a:hover,
.sample-links a:hover {
  background: #d1fae5;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  border: 1px solid var(--color-line);
  border-radius: 24px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.category-overview-media {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  background: #e5e7eb;
}

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

.category-overview-card span {
  color: var(--color-emerald);
  font-size: 13px;
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 7px 0 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--color-muted);
  line-height: 1.65;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.listing-grid {
  margin-top: 28px;
}

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

.empty-state {
  display: none;
  margin-top: 28px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 36px;
  color: var(--color-muted);
  background: #ffffff;
  text-align: center;
}

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

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

.detail-bg,
.detail-bg-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  filter: blur(4px);
  transform: scale(1.04);
  opacity: 0.42;
}

.detail-bg-mask {
  background:
    radial-gradient(circle at 80% 18%, rgba(16, 185, 129, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.72));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 42px 0 66px;
}

.detail-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.78);
}

.detail-hero .breadcrumb a:hover {
  color: #a7f3d0;
}

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

.detail-poster-wrap {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
}

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

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

.detail-one-line {
  max-width: 860px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.player-card,
.detail-panel,
.side-card {
  border: 1px solid var(--color-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.player-card {
  overflow: hidden;
  background: #020617;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.28), transparent 32%),
    rgba(2, 6, 23, 0.36);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-layer.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.34);
}

.play-layer strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.detail-panel {
  padding: 26px;
}

.detail-panel h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.detail-panel p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.95;
}

.side-card {
  padding: 22px;
}

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

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

.side-card dd {
  margin: 0;
  color: #111827;
  line-height: 1.55;
}

.large-tags span {
  padding: 7px 11px;
  font-size: 13px;
}

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

.site-footer {
  border-top: 1px solid var(--color-line);
  background: linear-gradient(180deg, #f8fafc, #f3f4f6);
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 42px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.footer-inner p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--color-muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  max-width: 460px;
}

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #374151;
  background: #ffffff;
}

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

.footer-bottom {
  border-top: 1px solid var(--color-line);
  padding: 18px 16px;
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

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

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

  .ranking-layout,
  .detail-layout,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .ranking-feature {
    position: relative;
    top: auto;
  }

  .detail-hero-grid {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .container,
  .header-inner,
  .header-search-panel,
  .footer-inner {
    width: min(100% - 24px, var(--container));
  }

  .site-logo {
    font-size: 22px;
  }

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    padding: 94px 0 82px;
  }

  .hero-control {
    display: none;
  }

  .filter-panel {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .movie-grid,
  .movie-grid-home,
  .ranking-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .category-overview-card {
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .rank-row {
    grid-template-columns: 32px 52px minmax(0, 1fr);
  }

  .rank-row em {
    display: none;
  }

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

  .detail-poster-wrap {
    max-width: 210px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid-home,
  .ranking-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

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

  .category-overview-media {
    aspect-ratio: 16 / 9;
  }
}
