:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --emerald: #10b981;
  --emerald-2: #34d399;
  --cyan: #06b6d4;
  --yellow: #facc15;
  --orange: #f97316;
  --red: #ef4444;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0f172a 0%, #020617 55%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.navbar {
  width: min(1180px, calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #052e2b;
  background: linear-gradient(135deg, var(--emerald-2), var(--cyan));
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.brand-text {
  font-size: 22px;
  color: #ffffff;
}

.nav-search {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.intro-search input,
.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #ffffff;
  background: rgba(30, 41, 59, 0.88);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.intro-search input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--emerald-2);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
  background: rgba(15, 23, 42, 0.95);
}

.nav-search button,
.mobile-search button,
.intro-search button {
  border: 0;
  color: #ffffff;
  background: var(--emerald);
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.intro-search button:hover,
.primary-button:hover {
  background: #059669;
  transform: translateY(-1px);
}

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

.nav-link,
.dropdown-button {
  border: 0;
  color: var(--muted-2);
  background: transparent;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-button:hover {
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted-2);
}

.dropdown-menu a:hover {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.8);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

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

.mobile-link {
  display: block;
  padding: 12px;
  border-radius: 12px;
  color: var(--muted-2);
}

.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.8);
}

.hero {
  position: relative;
  height: 580px;
  overflow: hidden;
  background: #000000;
}

.hero-track,
.hero-slide {
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 18% 24%, rgba(16, 185, 129, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2) 0%, rgba(2, 6, 23, 0.72) 62%, rgba(2, 6, 23, 0.98) 100%);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 70px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.92);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #dbeafe;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.46);
}

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

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

.primary-button {
  color: #ffffff;
  background: var(--emerald);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.28);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.42);
}

.ghost-button:hover {
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 58px 0;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  margin-top: 38px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.88));
  box-shadow: var(--shadow);
}

.intro-band h2,
.page-hero h1,
.section-heading h2,
.category-panel h2 {
  margin: 0;
}

.intro-band p,
.category-panel p,
.page-hero p {
  color: var(--muted-2);
  line-height: 1.8;
}

.intro-search {
  display: flex;
  gap: 10px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.section-heading span {
  font-size: 25px;
}

.section-heading h2 {
  font-size: 28px;
}

.section-heading a {
  margin-left: auto;
  color: var(--emerald-2);
  font-weight: 700;
}

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.card-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: #0f172a;
}

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

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

.card-badge,
.card-duration,
.wide-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  top: 10px;
  left: 10px;
  color: #ffffff;
  background: var(--emerald);
}

.card-duration {
  right: 10px;
  bottom: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card .card-body h3 {
  min-height: 44px;
  font-size: 16px;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-2);
  font-size: 13px;
}

.category-panel {
  padding: 34px;
  border-radius: 26px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
}

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

.category-tile,
.category-overview-card a {
  position: relative;
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
  padding: 20px;
  border-radius: 20px;
  color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-icon {
  font-size: 34px;
}

.category-tile strong,
.category-overview-card h2 {
  font-size: 20px;
}

.category-tile em,
.category-overview-card p,
.category-overview-card strong {
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.cat-red {
  background: linear-gradient(135deg, #ef4444, #7f1d1d);
}

.cat-emerald {
  background: linear-gradient(135deg, #10b981, #064e3b);
}

.cat-blue {
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
}

.cat-purple {
  background: linear-gradient(135deg, #8b5cf6, #4c1d95);
}

.cat-yellow {
  background: linear-gradient(135deg, #facc15, #b45309);
}

.cat-orange {
  background: linear-gradient(135deg, #f97316, #7c2d12);
}

.cat-slate {
  background: linear-gradient(135deg, #334155, #020617);
}

.cat-pink {
  background: linear-gradient(135deg, #ec4899, #831843);
}

.cat-cyan {
  background: linear-gradient(135deg, #06b6d4, #164e63);
}

.cat-green {
  background: linear-gradient(135deg, #22c55e, #14532d);
}

.wide-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.wide-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.wide-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.wide-badge {
  top: 12px;
  left: 12px;
  color: #111827;
  background: var(--yellow);
}

.wide-card strong,
.wide-card em {
  display: block;
  padding: 0 16px;
}

.wide-card strong {
  margin-top: 14px;
  font-size: 18px;
}

.wide-card em {
  margin: 8px 0 16px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.ranking-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.88);
}

.ranking-row {
  display: grid;
  grid-template-columns: 44px 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row:hover {
  background: rgba(51, 65, 85, 0.58);
}

.ranking-index {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--muted-2);
  background: rgba(51, 65, 85, 0.85);
  font-weight: 900;
}

.top-rank .ranking-index {
  color: #ffffff;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.ranking-row img {
  width: 90px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

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

.ranking-main strong {
  margin-bottom: 4px;
}

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

.ranking-score {
  color: var(--yellow);
  font-weight: 900;
}

.page-hero {
  padding: 76px 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(16, 185, 129, 0.25), transparent 26%),
    linear-gradient(135deg, rgba(15, 23, 42, 1), rgba(2, 6, 23, 1));
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
}

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

.category-overview-card a {
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.category-overview-card p {
  max-width: 650px;
  line-height: 1.7;
}

.category-preview {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.category-preview img {
  width: 72px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 180px 180px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.86);
}

.filter-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
}

.filter-count {
  color: var(--emerald-2);
  font-weight: 800;
  white-space: nowrap;
  padding-bottom: 12px;
}

.detail-page {
  padding: 34px 0 70px;
}

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

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

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

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

.player-card,
.detail-card,
.poster-panel,
.side-panel,
.static-content,
.sitemap-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.player-card {
  overflow: hidden;
}

.video-player {
  position: relative;
  background: #000000;
}

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

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

.player-start.hidden {
  display: none;
}

.play-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #052e2b;
  background: linear-gradient(135deg, var(--emerald-2), var(--cyan));
  box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.15);
  font-size: 32px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  text-shadow: 0 1px 4px #000000;
}

.detail-card {
  margin-top: 22px;
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted-2);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tag-list a,
.tag-list span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted-2);
  background: rgba(51, 65, 85, 0.82);
}

.tag-list a {
  color: #ffffff;
  background: var(--emerald);
}

.content-block {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.content-block + .content-block {
  margin-top: 22px;
}

.content-block h2,
.side-panel h2,
.static-content h2,
.sitemap-box h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.content-block p,
.static-content p {
  color: var(--muted-2);
  line-height: 1.9;
  margin: 0;
}

.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
  position: sticky;
  top: 92px;
}

.poster-panel,
.side-panel {
  padding: 18px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 14px;
}

.block-button {
  width: 100%;
}

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

.side-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.side-card:hover {
  background: rgba(51, 65, 85, 0.78);
}

.side-card img {
  width: 112px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.side-card-text strong,
.side-card-text em {
  display: block;
}

.side-card-text strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.side-card-text em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.static-content {
  padding: 30px;
}

.static-content .primary-button {
  margin-top: 22px;
}

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

.sitemap-box {
  padding: 24px;
}

.sitemap-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted-2);
}

.sitemap-box a:hover {
  color: var(--emerald-2);
}

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

.site-footer {
  padding: 54px 0 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), #020617);
}

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

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
}

.footer-grid p {
  line-height: 1.8;
}

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

.footer-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--emerald);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.is-hidden {
  display: none !important;
}

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

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .navbar {
    height: 62px;
  }

  .desktop-nav {
    display: none;
  }

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

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

  .hero {
    height: 520px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-band,
  .footer-grid,
  .footer-bottom,
  .category-overview-grid,
  .filter-toolbar {
    grid-template-columns: 1fr;
  }

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

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

  .category-panel {
    padding: 24px;
  }

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

  .ranking-score {
    grid-column: 3;
  }

  .ranking-row img {
    width: 76px;
    height: 48px;
  }

  .movie-sitemap ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container,
  .navbar,
  .mobile-menu,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .movie-grid.three,
  .movie-grid.four,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .card-body h3 {
    min-height: auto;
  }

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

  .side-card img {
    width: 96px;
    height: 62px;
  }
}
