:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --purple: #7c3aed;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --bg: #fff7ed;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --soft: rgba(255, 237, 213, 0.78);
  --shadow: 0 24px 70px rgba(124, 45, 18, 0.14);
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #fff1f2 32%, #ffffff 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(251, 146, 60, 0.28);
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(253, 242, 248, 0.94));
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 14px 26px rgba(236, 72, 153, 0.26);
  transition: transform 0.28s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(4deg);
}

.logo-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid white;
}

.logo-text {
  font-size: 22px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--orange-dark), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  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: 14px;
  color: #374151;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover {
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.64);
}

.nav-link.active,
.mobile-link.active {
  color: white;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.26);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #374151;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

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

.home-main,
.page-main,
.detail-main {
  padding-top: 72px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.24), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #fb923c 0%, #ec4899 50%, #7c3aed 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(0deg, #fff7ed, rgba(255, 247, 237, 0));
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.22;
  background: white;
}

.glow-one {
  left: -110px;
  top: 90px;
}

.glow-two {
  right: -120px;
  bottom: 30px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 650px;
  margin: 0 auto;
  padding: 76px 24px 64px;
  display: grid;
  align-items: center;
}

.hero-carousel {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.72fr);
  gap: 52px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-copy {
  color: white;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 22px 0 20px;
  font-size: clamp(42px, 7.6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 950;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.75;
}

.hero-tags,
.tag-row,
.detail-tags,
.filter-buttons,
.hero-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-tags a,
.hero-category-strip a {
  border-radius: 999px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 14px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

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

.primary-btn,
.glass-btn,
.full-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  min-height: 52px;
  padding: 0 28px;
  color: var(--orange-dark);
  background: white;
  box-shadow: 0 22px 42px rgba(124, 45, 18, 0.20);
}

.primary-btn:hover,
.glass-btn:hover,
.full-link:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.glass-btn {
  min-height: 52px;
  padding: 0 24px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(14px);
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(100%, 390px);
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(17, 24, 39, 0.36);
  transform: rotate(2deg);
  isolation: isolate;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 46%);
}

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

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-poster span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 3;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.hero-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 38px;
  background: white;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 520px);
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(16px);
}

.hero-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: white;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.hero-search button {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: var(--orange-dark);
  background: white;
  font-weight: 900;
  cursor: pointer;
}

.hero-category-strip {
  margin-top: 22px;
}

.hero-category-strip a {
  padding: 10px 15px;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 78px 24px;
}

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

.section-heading h2,
.page-hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.section-kicker {
  color: var(--orange-dark);
  background: #ffedd5;
}

.section-more {
  min-height: 44px;
  padding: 0 18px;
  color: var(--orange-dark);
  background: #fff7ed;
  border: 1px solid var(--line);
}

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

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

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

.movie-card {
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(124, 45, 18, 0.18);
}

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

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 54%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-category,
.card-duration {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.card-category {
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.card-duration {
  right: 14px;
  bottom: 14px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 19px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 56px;
  margin: 0 0 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 19px;
  line-height: 1.45;
  transition: color 0.25s ease;
}

.movie-card:hover h3,
.rank-link:hover h2,
.related-card:hover h3 {
  color: var(--orange-dark);
}

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

.tag-row span {
  padding: 6px 9px;
  color: var(--orange-dark);
  background: #fff7ed;
  font-size: 12px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 13px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.large-card .card-link {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
}

.large-card .card-cover {
  aspect-ratio: 16 / 9;
  min-height: 360px;
}

.large-card .card-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.large-card .card-body h3 {
  min-height: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.large-card .card-body p {
  min-height: 0;
  font-size: 18px;
}

.wide-band {
  background: linear-gradient(90deg, #fce7f3, #ffedd5);
}

.inner-band {
  padding-top: 70px;
  padding-bottom: 70px;
}

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

.horizontal-card .card-link {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.horizontal-card .card-cover {
  height: 100%;
  aspect-ratio: auto;
}

.horizontal-card .card-body h3,
.horizontal-card .card-body p {
  min-height: 0;
}

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

.category-tile {
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 190px;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

.category-tile-body {
  padding: 20px;
}

.category-tile-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-tile-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 28px;
}

.compact-hero > div {
  border-radius: 32px;
  padding: 52px;
  color: white;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, var(--orange), var(--pink), var(--purple));
  box-shadow: var(--shadow);
}

.compact-hero .section-kicker {
  background: rgba(255, 255, 255, 0.88);
}

.compact-hero h1,
.compact-hero p {
  color: white;
}

.compact-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.90);
}

.list-tools-section {
  padding-top: 34px;
}

.list-tools {
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.search-box {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.search-box label {
  color: #374151;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid #fed7aa;
  border-radius: 16px;
  outline: 0;
  background: white;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.filter-buttons button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--orange-dark);
  background: #fff7ed;
  font-weight: 900;
  cursor: pointer;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  color: white;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.result-note {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 800;
}

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

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

.rank-item {
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.rank-link {
  display: grid;
  grid-template-columns: 74px 180px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 18px;
}

.rank-number {
  color: var(--orange-dark);
  font-size: 28px;
  font-weight: 950;
}

.rank-link img {
  width: 180px;
  height: 112px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-link h2 {
  margin: 0 0 8px;
  font-size: 24px;
  transition: color 0.25s ease;
}

.rank-link p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-main {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 84px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-weight: 800;
}

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

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

.player-card,
.detail-card,
.poster-panel,
.related-panel {
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: white;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
  font-size: 34px;
}

.play-overlay strong {
  padding: 0 24px;
  font-size: 24px;
  text-align: center;
}

.detail-card {
  padding: 30px;
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 12px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.mini-category {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: #fff7ed;
  font-weight: 900;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #4b5563;
  background: #f9fafb;
  font-weight: 800;
}

.one-line-box {
  margin: 0 0 26px;
  padding: 18px 20px;
  border-left: 5px solid var(--orange);
  border-radius: 16px;
  background: #fff7ed;
}

.one-line-box p,
.article-section p {
  margin: 0;
  color: #374151;
  line-height: 1.92;
}

.article-section {
  margin-top: 26px;
}

.article-section h2,
.related-panel h2,
.poster-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.3;
}

.detail-tags a {
  padding: 9px 13px;
  color: var(--orange-dark);
  background: linear-gradient(90deg, #fff7ed, #fdf2f8);
}

.detail-aside {
  display: grid;
  gap: 24px;
  align-content: start;
}

.poster-panel,
.related-panel {
  padding: 22px;
}

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

.poster-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.related-panel {
  position: sticky;
  top: 96px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.related-card img {
  width: 112px;
  height: 74px;
  border-radius: 13px;
  object-fit: cover;
}

.related-card h3 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
  line-height: 1.45;
  transition: color 0.25s ease;
}

.related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.full-link {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  color: white;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo .logo-text {
  color: white;
  background: none;
  -webkit-text-fill-color: white;
}

.footer-brand p,
.footer-bottom p {
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 16px;
  color: white;
  font-size: 18px;
}

.footer-link-grid {
  display: grid;
  gap: 10px;
}

.footer-link-grid a:hover {
  color: #fb923c;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 15px 30px rgba(236, 72, 153, 0.28);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

@media (max-width: 1120px) {
  .four-grid,
  .category-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-slide,
  .large-card .card-link,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    justify-self: start;
    width: min(100%, 320px);
  }

  .hero-carousel {
    min-height: 760px;
  }

  .related-panel {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero-inner {
    padding-top: 46px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-control-row,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search {
    width: 100%;
  }

  .three-grid,
  .four-grid,
  .horizontal-list,
  .category-card-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .horizontal-card .card-link,
  .rank-link {
    grid-template-columns: 1fr;
  }

  .horizontal-card .card-cover {
    aspect-ratio: 16 / 10;
  }

  .rank-link img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .compact-hero > div,
  .detail-card {
    padding: 28px;
  }

  .detail-title-row {
    display: grid;
  }
}

@media (max-width: 540px) {
  .nav-shell,
  .content-section,
  .page-hero,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-carousel {
    min-height: 730px;
  }

  .hero-actions,
  .hero-search {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
  }

  .primary-btn,
  .glass-btn,
  .hero-search button {
    width: 100%;
  }

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

  .related-card img {
    width: 96px;
    height: 66px;
  }
}
