:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --teal-500: #14b8a6;
  --cyan-600: #0891b2;
  --orange-600: #ea580c;
  --red-600: #dc2626;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  --radius: 1rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: var(--slate-50);
  line-height: 1.65;
}

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

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

button, input, select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--emerald-500), #a7f3d0);
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.35);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 1.18rem;
  letter-spacing: 0.04em;
}

.brand-copy em {
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--slate-300);
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--slate-300);
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 310px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(203, 213, 225, 0.15);
  overflow: hidden;
}

.nav-search input,
.mobile-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 11px 14px;
}

.nav-search input::placeholder,
.mobile-panel input::placeholder {
  color: #94a3b8;
}

.nav-search button,
.mobile-panel button {
  border: 0;
  color: var(--white);
  background: var(--emerald-600);
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-search button:hover,
.mobile-panel button:hover {
  background: var(--emerald-700);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 99px;
  background: var(--white);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(203, 213, 225, 0.16);
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: var(--slate-300);
}

.mobile-panel form {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.7);
}

.hero-slider {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1s ease;
  pointer-events: none;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(15, 23, 42, 0.55) 52%, var(--slate-50));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: center;
  padding: 84px 0 110px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(5, 150, 105, 0.18);
  border: 1px solid rgba(167, 243, 208, 0.28);
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-copy h1 {
  margin: 22px 0 10px;
  font-size: clamp(2.4rem, 6vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  color: #6ee7b7;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
}

.hero-copy p {
  margin: 0;
  max-width: 700px;
  color: #e2e8f0;
  font-size: 1.14rem;
}

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

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

.hero-tags a,
.tag-cloud a,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(226, 232, 240, 0.2);
  backdrop-filter: blur(12px);
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  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: var(--emerald-600);
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.32);
}

.primary-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
  background: var(--emerald-700);
}

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

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

.hero-card {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.5);
  transform: rotate(2deg);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--slate-800);
}

.hero-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

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

.home-search-card,
.page-container,
.content-section,
.rank-section,
.category-group {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-card {
  position: relative;
  z-index: 5;
  margin-top: -56px;
  padding: 24px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.home-search-card form {
  display: flex;
  gap: 12px;
}

.home-search-card input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 15px 18px;
  outline: none;
  background: var(--slate-50);
}

.home-search-card input:focus,
.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.home-search-card button {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--emerald-600);
  padding: 0 26px;
  font-weight: 800;
  cursor: pointer;
}

.quick-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--emerald-700);
  background: var(--emerald-100);
  font-weight: 700;
  font-size: 0.92rem;
}

.content-section,
.rank-section,
.category-group {
  padding: 72px 0 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--slate-800);
}

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

.section-link {
  color: var(--white);
  background: var(--emerald-600);
}

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

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

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

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

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

.poster-wrap::after,
.rank-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.6));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after,
.rank-item:hover .rank-cover::after {
  opacity: 1;
}

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

.movie-card:hover img,
.rank-item:hover img,
.side-card a:hover img {
  transform: scale(1.08);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(5, 150, 105, 0.9);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.7);
  font-weight: 800;
}

.movie-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.movie-info strong {
  color: var(--slate-800);
  font-size: 1.05rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-info strong,
.rank-item:hover strong,
.side-card a:hover strong {
  color: var(--emerald-600);
}

.pill {
  width: max-content;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--emerald-700);
  background: var(--emerald-100);
  font-size: 0.78rem;
  font-weight: 800;
}

.desc {
  color: var(--slate-600);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  color: var(--slate-500);
  font-size: 0.84rem;
}

.rank-section {
  margin-top: 72px;
  padding: 42px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

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

.rank-list.large {
  gap: 18px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 72px 190px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item a:hover {
  transform: translateX(6px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.rank-num {
  font-size: 2.5rem;
  line-height: 1;
  color: #cbd5e1;
  font-weight: 900;
}

.rank-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--slate-800);
}

.rank-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-copy strong {
  color: var(--slate-800);
  font-size: 1.18rem;
}

.rank-copy em {
  color: var(--slate-600);
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-copy span {
  color: var(--slate-500);
  font-size: 0.9rem;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(90deg, var(--emerald-600), var(--teal-500));
  padding: 86px 0;
}

.page-hero.compact {
  padding: 62px 0;
}

.page-hero.teal {
  background: linear-gradient(90deg, var(--emerald-600), var(--cyan-600));
}

.page-hero.orange {
  background: linear-gradient(90deg, var(--orange-600), var(--red-600));
}

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

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.page-hero .primary-btn {
  margin-top: 28px;
  background: var(--slate-900);
}

.page-container {
  padding: 46px 0 84px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 28px;
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.filter-panel h2 {
  margin: 0 0 6px;
  color: var(--slate-800);
}

.filter-panel p {
  margin: 0;
  color: var(--slate-500);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 12px;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: var(--slate-50);
  color: var(--slate-800);
  padding: 0 14px;
  outline: none;
}

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

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

.category-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--emerald-700);
  background: var(--emerald-100);
  font-weight: 900;
}

.category-card strong {
  color: var(--slate-800);
  font-size: 1.12rem;
}

.category-card em {
  color: var(--slate-500);
  font-size: 0.9rem;
  font-style: normal;
}

.empty-state {
  display: none;
  padding: 60px 0;
  text-align: center;
  color: var(--slate-500);
  font-size: 1.05rem;
}

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

.detail-hero {
  position: relative;
  color: var(--white);
  min-height: 500px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.68), rgba(15, 23, 42, 0.78) 58%, var(--slate-50));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 42px;
  align-items: end;
  padding: 84px 0 96px;
}

.detail-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.1;
}

.detail-hero p {
  max-width: 760px;
  margin: 0;
  color: #e2e8f0;
  font-size: 1.08rem;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.52);
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: -58px auto 86px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

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

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--slate-950);
}

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

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.72));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  cursor: pointer;
}

.play-layer.is-hidden {
  display: none;
}

.play-circle {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--emerald-600);
  box-shadow: 0 18px 42px rgba(5, 150, 105, 0.36);
  font-size: 1.8rem;
  padding-left: 4px;
}

.play-layer strong {
  font-size: 1.18rem;
}

.detail-card {
  padding: 28px;
  margin-bottom: 22px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--slate-800);
  font-size: 1.45rem;
}

.detail-card p {
  margin: 0;
  color: var(--slate-700);
  white-space: pre-line;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-list a,
.info-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--slate-50);
}

.info-list strong {
  color: var(--slate-500);
}

.info-list span span,
.info-list em {
  color: var(--slate-800);
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.tag-cloud a,
.tag-cloud span {
  color: var(--slate-700);
  background: var(--slate-100);
  border-color: #e2e8f0;
}

.related-section {
  width: 100%;
  padding-top: 8px;
}

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

.detail-side {
  align-self: start;
  position: sticky;
  top: 96px;
}

.side-card {
  padding: 20px;
}

.side-card a {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
}

.side-card a:first-of-type {
  border-top: 0;
}

.side-card img {
  width: 104px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-800);
  transition: transform 0.35s ease;
}

.side-card span {
  min-width: 0;
}

.side-card strong {
  display: block;
  color: var(--slate-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-card em {
  display: block;
  margin-top: 4px;
  color: var(--slate-500);
  font-style: normal;
  font-size: 0.86rem;
}

.site-footer {
  color: var(--slate-300);
  background: var(--slate-900);
  padding: 54px 0 28px;
}

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

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--white);
  font-weight: 900;
  font-size: 1.28rem;
}

.site-footer p {
  margin: 0;
  color: var(--slate-300);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: var(--slate-300);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #6ee7b7;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(203, 213, 225, 0.14);
  color: var(--slate-500);
  font-size: 0.92rem;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--emerald-600);
  box-shadow: 0 16px 34px rgba(5, 150, 105, 0.3);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

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

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

  .hero-inner,
  .detail-hero-inner,
  .detail-layout,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .detail-hero img,
  .detail-side {
    display: none;
  }

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

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

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

@media (max-width: 760px) {
  .nav-shell {
    height: 66px;
  }

  .brand-copy em {
    display: none;
  }

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

  .hero-inner {
    padding: 74px 0 110px;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .hero-copy p,
  .page-hero p,
  .detail-hero p {
    font-size: 1rem;
  }

  .home-search-card form,
  .section-head,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-search-card button {
    min-height: 48px;
  }

  .content-section,
  .rank-section,
  .category-group {
    padding-top: 44px;
  }

  .rank-section {
    padding: 24px;
  }

  .movie-grid,
  .all-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .desc {
    display: none;
  }

  .rank-item a {
    grid-template-columns: 46px 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-num {
    font-size: 1.7rem;
  }

  .rank-copy em {
    display: none;
  }

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

  .page-hero {
    padding: 58px 0;
  }

  .detail-layout {
    margin-top: -36px;
  }

  .detail-card,
  .side-card {
    padding: 20px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}

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

  .poster-wrap {
    aspect-ratio: 16 / 9;
  }

  .hero-controls {
    bottom: 26px;
  }
}
