:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --amber-50: #fffbeb;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --yellow-50: #fefce8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 18px 40px rgba(148, 79, 16, 0.14);
  --shadow-hover: 0 24px 60px rgba(148, 79, 16, 0.22);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--orange-50), var(--amber-50) 52%, var(--yellow-50));
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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: 80;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
  border-bottom: 1px solid rgba(251, 146, 60, 0.2);
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.12);
  backdrop-filter: blur(16px);
}

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-600));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
  transform: translateZ(0);
  transition: transform 0.28s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text strong {
  display: block;
  line-height: 1.08;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--orange-600), var(--amber-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: var(--gray-500);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 13px;
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: #fff;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-600));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.18);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 237, 213, 0.7);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--gray-800);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(251, 146, 60, 0.2);
}

.mobile-menu.open {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  min-height: clamp(620px, 78vh, 820px);
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 14% 16%, rgba(251, 146, 60, 0.4), transparent 32%), linear-gradient(135deg, #1f2937, #111827 70%);
}

.hero-slider {
  position: relative;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 94px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  isolation: isolate;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.5)), var(--hero-image) center / cover no-repeat;
  filter: blur(3px) saturate(1.08);
  transform: scale(1.04);
  opacity: 0.58;
  z-index: -2;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(0deg, rgba(255, 247, 237, 1), transparent);
  z-index: -1;
}

.hero-backdrop {
  position: absolute;
  right: 7%;
  top: 12%;
  width: 46%;
  max-width: 620px;
  aspect-ratio: 16 / 10;
  border-radius: 36px;
  overflow: hidden;
  opacity: 0.18;
  transform: rotate(-3deg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #fed7aa;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.08em;
}

.hero-summary {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.75;
}

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

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

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

.hero-tags span,
.detail-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.primary-btn,
.ghost-btn,
.search-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn,
.search-card button {
  color: #fff;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-600));
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.32);
}

.primary-btn:hover,
.search-card button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 44px rgba(234, 88, 12, 0.42);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 360px);
  justify-self: end;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.45);
  transform: perspective(900px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.45s ease;
}

.hero-poster:hover {
  transform: perspective(900px) rotateY(0deg) rotateX(0deg) translateY(-8px);
}

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

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(17, 24, 39, 0.44);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-nav:hover {
  background: rgba(234, 88, 12, 0.86);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: max(18px, calc((100vw - 1180px) / 2 - 70px));
}

.hero-next {
  right: max(18px, calc((100vw - 1180px) / 2 - 70px));
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
}

.search-band {
  margin-top: -42px;
  position: relative;
  z-index: 12;
}

.search-card,
.filter-bar {
  border: 1px solid rgba(251, 146, 60, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.search-card {
  padding: 24px;
}

.search-card label {
  display: block;
  margin-bottom: 12px;
  color: var(--gray-800);
  font-size: 1.25rem;
  font-weight: 900;
}

.search-row,
.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px auto;
  gap: 12px;
}

.search-card input,
.search-card select,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--gray-800);
  background: #fff;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-card input:focus,
.search-card select:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

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

.section-head h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.section-head p:not(.section-kicker) {
  margin: 9px 0 0;
  color: var(--gray-500);
  line-height: 1.7;
}

.section-kicker {
  color: var(--orange-600);
}

.section-more {
  min-width: max-content;
  color: var(--orange-600);
  font-weight: 900;
}

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

.category-tile,
.overview-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--orange-500), var(--amber-600));
  box-shadow: var(--shadow-soft);
  transform: translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.category-tile {
  min-height: 168px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

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

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.72));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 1.2rem;
  font-weight: 900;
}

.category-tile small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.17);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 12px 30px rgba(180, 83, 9, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card[hidden] {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--orange-100), var(--amber-50));
}

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

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

.poster-mask {
  position: absolute;
  inset: auto 12px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.96), rgba(217, 119, 6, 0.96));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, var(--orange-500));
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.28);
}

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

.movie-card h3 {
  min-height: 2.8em;
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 0.98rem;
  line-height: 1.4;
}

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

.meta-line,
.genre-line,
.one-line {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.82rem;
  line-height: 1.55;
}

.genre-line {
  color: var(--orange-600);
  font-weight: 800;
}

.one-line {
  display: -webkit-box;
  min-height: 3.1em;
  margin-top: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  min-height: 24px;
  padding: 0 8px;
  color: var(--amber-600);
  background: var(--amber-50);
}

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

.rank-panel {
  position: sticky;
  top: 96px;
  border-radius: 28px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(160deg, var(--gray-900), #27272a 58%, #451a03);
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.28);
}

.rank-panel-head {
  margin-bottom: 18px;
}

.rank-panel-head p {
  margin: 0 0 6px;
  color: #fed7aa;
  font-weight: 800;
}

.rank-panel-head h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.rank-panel-head a {
  color: #fdba74;
  font-weight: 800;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: rgba(249, 115, 22, 0.9);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-score {
  color: #fcd34d;
  font-weight: 900;
  text-align: right;
}

.page-main {
  min-height: 70vh;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 16% 18%, rgba(251, 146, 60, 0.48), transparent 34%), linear-gradient(135deg, var(--gray-900), #292524 72%);
}

.page-hero {
  padding: 72px 0 86px;
}

.slim-hero {
  padding-bottom: 74px;
}

.rank-hero {
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.36), transparent 34%), linear-gradient(135deg, #111827, #451a03);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
}

.page-hero p:not(.eyebrow),
.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #fed7aa;
  font-weight: 800;
}

.filter-bar {
  grid-template-columns: minmax(0, 1fr) 170px 170px auto;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
}

.result-count {
  color: var(--gray-500);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: right;
}

.overview-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.overview-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  height: 210px;
  background: var(--orange-100);
}

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

.overview-body {
  padding: 22px;
}

.overview-body h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.overview-body p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.65;
}

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

.detail-main {
  min-height: 80vh;
}

.detail-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.66)), var(--detail-image) center / cover no-repeat;
  filter: blur(2px) saturate(1.05);
  transform: scale(1.03);
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(230px, 340px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5);
}

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

.detail-tags {
  margin: 24px 0 28px;
}

.detail-section {
  padding: 58px 0;
}

.detail-section h2 {
  margin: 0 0 22px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.05em;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.32);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.26), rgba(0, 0, 0, 0.44));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-box.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-600));
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.14), 0 24px 40px rgba(234, 88, 12, 0.36);
  font-size: 2.2rem;
}

.detail-copy {
  display: grid;
  gap: 14px;
  padding-top: 20px;
}

.detail-copy p {
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.9;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(180, 83, 9, 0.08);
}

.site-footer {
  margin-top: 40px;
  color: #fff;
  background: linear-gradient(135deg, var(--gray-900), #1f2937 54%, #451a03);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  display: block;
  font-size: 1.24rem;
}

.footer-brand p {
  margin: 5px 0 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: #fdba74;
  font-weight: 800;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-600));
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

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

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

  .rank-panel {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 78px;
  }

  .hero-poster {
    display: none;
  }

  .hero-nav {
    display: none;
  }

  .search-row,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

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

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

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

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

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

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

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

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

  .brand-text strong {
    font-size: 1.18rem;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.06em;
  }

  .hero-actions {
    display: grid;
  }

  .category-grid,
  .overview-grid,
  .movie-grid,
  .compact-grid,
  .small-grid,
  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .one-line {
    display: none;
  }

  .detail-section {
    padding: 42px 0;
  }

  .play-ring {
    width: 74px;
    height: 74px;
    font-size: 1.8rem;
  }
}
