:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --orange-500: #f97316;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #fff7f8 0%, #f8fafc 34%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500), var(--orange-500));
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

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

.desktop-nav > a,
.nav-dropdown > button {
  border: 0;
  padding: 8px 0;
  color: #374151;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown:hover > button {
  color: var(--rose-500);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 190px;
  padding: 8px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #374151;
}

.nav-dropdown-menu a:hover {
  color: var(--rose-600);
  background: var(--rose-50);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input {
  width: 220px;
  height: 40px;
  border: 1px solid #d1d5db;
  border-right: 0;
  border-radius: 999px 0 0 999px;
  padding: 0 16px;
  outline: 0;
}

.header-search input:focus,
.mobile-search input:focus {
  border-color: var(--rose-500);
}

.header-search button,
.mobile-search button {
  height: 40px;
  border: 0;
  padding: 0 16px;
  border-radius: 0 999px 999px 0;
  color: white;
  cursor: pointer;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--line);
  background: white;
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mobile-panel nav a {
  padding: 12px;
  border-radius: 12px;
  background: var(--rose-50);
  color: #374151;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(90deg, #e11d48, #db2777, #f97316);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(190, 18, 60, 0.94) 0%, rgba(219, 39, 119, 0.84) 44%, rgba(249, 115, 22, 0.58) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  font-size: clamp(26px, 4vw, 42px);
  color: #ffe4e6;
}

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #fff1f2;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.65;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: var(--rose-600);
  background: white;
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.26);
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
}

.hero-card {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 72px;
  z-index: 3;
  width: 260px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 28px 70px rgba(88, 28, 45, 0.42);
  backdrop-filter: blur(16px);
}

.hero-poster {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.hero-card div {
  padding: 14px 16px 18px;
  color: white;
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card span {
  margin-top: 4px;
  color: #ffe4e6;
  font-size: 14px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 28px;
  line-height: 1;
}

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

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

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

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

.white-section {
  max-width: none;
  background: white;
}

.white-section > .section-heading,
.white-section > .movie-grid,
.white-section > .ranking-list {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--rose-600);
  font-weight: 800;
}

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

.category-tile {
  min-height: 160px;
  padding: 24px 18px;
  border-radius: 24px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span {
  font-size: 36px;
  margin-bottom: 10px;
}

.category-tile strong {
  font-size: 18px;
}

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

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

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, white, #fff1f2);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
}

.movie-card-compact .movie-poster {
  height: 210px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.58));
}

.poster-category,
.poster-rating {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.poster-category {
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  background: var(--rose-500);
}

.poster-rating {
  right: 14px;
  top: 14px;
  padding: 6px 9px;
  background: rgba(0, 0, 0, 0.62);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-500);
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: all 0.22s ease;
}

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

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

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
  color: var(--rose-600);
}

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

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

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

.tag-row span,
.detail-tags a {
  color: var(--rose-600);
  background: var(--rose-50);
}

.horizontal-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 22px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
  width: 300px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

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

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

.ranking-link {
  display: grid;
  grid-template-columns: 56px 86px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.ranking-index {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
}

.ranking-thumb {
  width: 86px;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--rose-50);
}

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

.ranking-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.ranking-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(90deg, #e11d48, #db2777, #f97316);
}

.compact-hero {
  padding: 78px 24px;
}

.compact-hero > div {
  max-width: 1280px;
  margin: 0 auto;
}

.compact-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: #fff1f2;
  font-size: 18px;
  line-height: 1.7;
}

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

.category-overview-card a {
  position: relative;
  display: block;
  min-height: 280px;
  padding: 24px;
  overflow: hidden;
  border-radius: 28px;
  color: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-cover-stack {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  opacity: 0.22;
}

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

.category-icon,
.category-overview-card h2,
.category-overview-card p,
.category-overview-card em {
  position: relative;
  z-index: 2;
}

.category-icon {
  font-size: 42px;
}

.category-overview-card h2 {
  margin: 42px 0 12px;
  font-size: 30px;
}

.category-overview-card p {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.category-overview-card em {
  display: inline-flex;
  margin-top: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-style: normal;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: var(--soft);
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--rose-500);
  background: white;
}

.empty-state {
  display: none;
  padding: 44px;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  background: white;
  box-shadow: var(--shadow-soft);
}

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

.detail-hero {
  min-height: 420px;
}

.detail-bg,
.detail-bg-mask {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.detail-bg-mask {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(190, 18, 60, 0.76)),
    linear-gradient(90deg, rgba(225, 29, 72, 0.9), rgba(249, 115, 22, 0.55));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 52px;
  color: #ffe4e6;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb em {
  color: white;
  font-style: normal;
}

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

.detail-title-row h1 {
  max-width: 880px;
  margin: 0 0 16px;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-title-row p {
  max-width: 780px;
  margin: 0;
  color: #fff1f2;
  font-size: 18px;
  line-height: 1.7;
}

.detail-layout {
  max-width: 1280px;
  margin: -52px auto 0;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  position: relative;
  z-index: 4;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: white;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 45%, rgba(244, 63, 94, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.72));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.player-start span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--rose-500);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.player-start strong {
  font-size: 20px;
}

.player-card.is-playing .player-start {
  display: none;
}

.detail-card,
.related-block,
.side-poster-card,
.side-list-card {
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.detail-card {
  padding: 28px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.detail-meta-grid span {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
  color: #374151;
}

.detail-meta-grid strong {
  color: var(--muted);
  font-size: 12px;
}

.detail-card h2,
.related-block h2,
.side-list-card h2,
.side-poster-card h2 {
  margin: 26px 0 12px;
  font-size: 24px;
}

.detail-card p {
  color: #374151;
  line-height: 1.85;
}

.detail-tags {
  margin-bottom: 8px;
}

.related-block {
  padding: 28px;
}

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

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

.side-poster {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.side-poster-card h2 {
  margin-bottom: 8px;
}

.side-poster-card p {
  margin: 0;
  color: var(--muted);
}

.side-list-card h2 {
  margin-top: 0;
}

.side-list-card a {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #374151;
  line-height: 1.45;
}

.side-list-card a:hover {
  color: var(--rose-600);
}

.side-list-card span {
  color: var(--rose-600);
  font-weight: 800;
}

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

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

.footer-inner p {
  max-width: 420px;
  color: #9ca3af;
  line-height: 1.7;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

.footer-links a:hover {
  background: rgba(244, 63, 94, 0.42);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: all 0.2s ease;
}

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

.gradient-rose-orange,
.gradient-soft-rose-orange {
  background: linear-gradient(135deg, #f43f5e, #f97316);
}

.gradient-pink-red,
.gradient-soft-pink-red {
  background: linear-gradient(135deg, #ec4899, #ef4444);
}

.gradient-pink-purple,
.gradient-soft-pink-purple {
  background: linear-gradient(135deg, #ec4899, #a855f7);
}

.gradient-slate-purple,
.gradient-soft-slate-purple {
  background: linear-gradient(135deg, #475569, #7c3aed);
}

.gradient-orange-red,
.gradient-soft-orange-red {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.gradient-amber-orange,
.gradient-soft-amber-orange {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.gradient-blue-cyan,
.gradient-soft-blue-cyan {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.gradient-cyan-teal,
.gradient-soft-cyan-teal {
  background: linear-gradient(135deg, #06b6d4, #14b8a6);
}

.gradient-green-emerald,
.gradient-soft-green-emerald {
  background: linear-gradient(135deg, #22c55e, #10b981);
}

.gradient-gray-slate,
.gradient-soft-gray-slate {
  background: linear-gradient(135deg, #4b5563, #0f172a);
}

.gradient-violet-fuchsia,
.gradient-soft-violet-fuchsia {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.gradient-indigo-blue,
.gradient-soft-indigo-blue {
  background: linear-gradient(135deg, #6366f1, #2563eb);
}

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

  .mobile-toggle {
    display: block;
  }

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

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

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

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

@media (max-width: 820px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand {
    min-width: 0;
  }

  .hero {
    height: 720px;
  }

  .hero-content {
    justify-content: flex-start;
    padding-top: 64px;
  }

  .hero-card {
    left: 24px;
    right: 24px;
    bottom: 82px;
    width: auto;
    display: grid;
    grid-template-columns: 120px 1fr;
  }

  .hero-poster {
    height: 170px;
  }

  .category-grid,
  .movie-grid,
  .featured-grid,
  .related-grid,
  .category-overview-grid,
  .ranking-list-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

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

  .content-section {
    padding: 52px 16px;
  }

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

  .hero h1 span {
    font-size: 27px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .category-grid,
  .movie-grid,
  .featured-grid,
  .related-grid,
  .category-overview-grid,
  .ranking-list-home,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .movie-poster {
    height: 360px;
  }

  .ranking-link {
    grid-template-columns: 44px 72px 1fr;
    gap: 12px;
  }

  .ranking-thumb {
    width: 72px;
    height: 96px;
  }

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

  .detail-layout {
    padding: 0 16px 60px;
  }

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

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