* {
  box-sizing: border-box;
}

:root {
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --yellow: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fdf2f8;
  --glass: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 48px rgba(88, 28, 135, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 48%, #eff6ff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 32px rgba(79, 70, 229, 0.12);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.05);
  box-shadow: 0 16px 34px rgba(139, 92, 246, 0.38);
}

.brand-text,
.footer-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--pink), var(--purple));
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pink);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.mobile-panel {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 18px;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #374151;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.mobile-link:hover {
  color: var(--pink);
  background: linear-gradient(135deg, #fff, #fdf2f8);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(236, 72, 153, 0.35), transparent 30%),
    radial-gradient(circle at 20% 78%, rgba(59, 130, 246, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.86) 0%, rgba(88, 28, 135, 0.68) 46%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 118px 24px 180px;
  margin-left: calc((100vw - min(1240px, 100vw - 44px)) / 2);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.eyebrow.dark {
  color: var(--purple);
  background: #fff;
}

.hero h1,
.page-hero h1,
.channel-content h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 900;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.hero p,
.page-hero p,
.channel-content p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(17px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.72;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-tags span {
  padding: 9px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.36);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(139, 92, 246, 0.36);
}

.hero-search {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 72px;
  width: min(760px, calc(100% - 44px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-search input {
  width: 100%;
  height: 54px;
  padding: 0 22px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: transparent;
  color: #111827;
  font-weight: 700;
}

.hero-search button {
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 900;
  cursor: pointer;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  right: calc((100vw - min(1240px, 100vw - 44px)) / 2 + 24px);
  bottom: 92px;
  display: flex;
  gap: 10px;
}

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

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

.section-shell,
.detail-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 22px 0;
}

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

.section-heading > span {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.24);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.compact-heading h2 {
  font-size: 30px;
}

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

.category-card,
.overview-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: 28px;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.category-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(88, 28, 135, 0.88));
}

.category-card strong,
.category-card p {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 22px;
}

.category-card strong {
  margin-top: 118px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  font-size: 14px;
}

.category-card:hover,
.overview-card:hover,
.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(88, 28, 135, 0.24);
}

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.72;
}

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

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

.movie-card {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 34px rgba(79, 70, 229, 0.13);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.poster-box {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #ede9fe);
}

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

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

.rating-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.3);
  font-size: 14px;
  font-weight: 900;
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.72);
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  min-height: 54px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3 {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.tag-row span {
  padding: 6px 10px;
  color: #6d28d9;
  background: linear-gradient(135deg, #fdf2f8, #ede9fe);
  font-size: 12px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

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

.compact-card .card-body p {
  min-height: 42px;
}

.split-section,
.ranking-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.rank-panel,
.detail-card,
.side-panel,
.cover-card,
.filter-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.rank-panel {
  padding: 24px;
}

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

.extended-list {
  max-height: 860px;
  overflow: auto;
  padding-right: 4px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 96px 1fr;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border-radius: 18px;
  background: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: linear-gradient(135deg, #fff, #fdf2f8);
}

.rank-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--yellow), #ef4444);
  font-weight: 900;
}

.rank-item img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-content {
  min-width: 0;
}

.rank-content strong,
.rank-content em {
  display: block;
}

.rank-content strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2937;
  font-weight: 900;
}

.rank-content em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero,
.channel-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
}

.slim-hero {
  color: #111827;
  background: linear-gradient(135deg, #fdf2f8, #ede9fe, #dbeafe);
}

.page-hero > div {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 80px 0;
}

.slim-hero h1,
.slim-hero p {
  color: #111827;
  text-shadow: none;
}

.slim-hero p {
  color: #4b5563;
}

.ranking-hero {
  background:
    radial-gradient(circle at 80% 12%, rgba(250, 204, 21, 0.36), transparent 34%),
    linear-gradient(135deg, #111827, #581c87, #be185d);
}

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

.overview-covers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 158px;
  gap: 3px;
  background: #111827;
}

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

.overview-body {
  padding: 22px;
}

.overview-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.overview-body p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.overview-body span {
  color: var(--pink);
  font-weight: 900;
}

.channel-hero {
  min-height: 500px;
}

.channel-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 18%, rgba(236, 72, 153, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(88, 28, 135, 0.74), rgba(15, 23, 42, 0.36));
}

.channel-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 90px 0;
}

.channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.channel-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 900;
}

.channel-links span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 22px;
}

.filter-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #111827;
  font-size: 18px;
}

.filter-title span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.filter-controls {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(140px, 0.55fr));
  gap: 14px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: #111827;
  background: #fff;
  outline: 0;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 36px;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  font-weight: 800;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 0.9fr);
  gap: 28px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.26), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  font-size: 34px;
  transform: translateX(3px);
}

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

.detail-card {
  padding: 28px;
}

.detail-card h1,
.detail-card h2,
.side-panel h2 {
  margin: 0 0 18px;
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.detail-card h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.detail-card h2,
.side-panel h2 {
  font-size: 26px;
}

.detail-card p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

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

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

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

.cover-card {
  overflow: hidden;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cover-card div {
  padding: 20px;
}

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

.cover-card strong {
  font-size: 22px;
  font-weight: 900;
}

.cover-card span {
  margin-top: 6px;
  color: var(--pink);
  font-weight: 800;
}

.side-panel {
  padding: 24px;
}

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

.side-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #374151;
  font-weight: 800;
}

.side-links a:hover {
  color: var(--pink);
}

.side-links span {
  color: var(--muted);
  font-size: 13px;
}

.related-section {
  padding-top: 42px;
}

.site-footer {
  margin-top: 86px;
  color: #fff;
  background: linear-gradient(90deg, #111827, #581c87, #111827);
}

.footer-inner {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 46px 0 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.footer-copy {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

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

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

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    margin-left: 0;
    padding: 92px 22px 180px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .hero-search input,
  .hero-search button {
    border-radius: 18px;
  }

  .hero-dots {
    left: 22px;
    right: auto;
    bottom: 34px;
  }

  .split-section,
  .ranking-split,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

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

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 20px;
  }

  .category-grid,
  .overview-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

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

  .section-shell,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .rank-item {
    grid-template-columns: 34px 78px 1fr;
  }

  .rank-item img {
    width: 78px;
    height: 54px;
  }

  .detail-card,
  .rank-panel,
  .filter-panel,
  .side-panel {
    border-radius: 22px;
    padding: 20px;
  }
}
