* {
  box-sizing: border-box;
}

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --blue-600: #2563eb;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-deep: 0 25px 80px rgba(2, 6, 23, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  color: var(--slate-900);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  color: #fff;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.36);
}

.brand-text strong {
  display: block;
  color: #fff;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  display: block;
  color: #22d3ee;
  font-size: 12px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #22d3ee;
  transform: translateY(-1px);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.page-search {
  width: 210px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.84);
  color: #fff;
  outline: none;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.page-search:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18);
}

.top-search button,
.mobile-search button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  cursor: pointer;
  background: rgba(30, 41, 59, 0.9);
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.mobile-search {
  margin: 14px auto;
  width: min(520px, 100%);
}

.mobile-search input {
  width: 100%;
}

.mobile-nav {
  width: min(520px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  color: #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(30, 41, 59, 0.72);
}

.hero-carousel,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.32), transparent 32%), linear-gradient(135deg, #020617 0%, #172554 45%, #0e7490 100%);
}

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

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.76), rgba(8, 47, 73, 0.56));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 96px 0 86px;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 47, 73, 0.55);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 830px;
  font-size: clamp(38px, 6vw, 72px);
}

.hero-copy h2 {
  margin: 18px 0 14px;
  color: #67e8f9;
  font-size: clamp(28px, 4vw, 46px);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

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

.ghost-btn {
  min-height: 48px;
  padding: 0 22px;
  color: #ecfeff;
  border: 1px solid rgba(236, 254, 255, 0.35);
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  transform: perspective(1000px) rotateY(-8deg);
}

.hero-poster img,
.detail-cover,
.aside-card img,
.poster img,
.wide-poster img,
.compact-poster img,
.ranking-row img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.9);
  box-shadow: 0 0 45px rgba(6, 182, 212, 0.55);
  transform: translate(-50%, -50%);
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
  font-size: 28px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.is-active {
  width: 34px;
  background: #22d3ee;
}

.section {
  padding: 72px 0;
}

.white-section {
  background: #fff;
}

.soft-section {
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
}

.split-section {
  background: #f8fafc;
}

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

.section-head.center {
  display: block;
  text-align: center;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--slate-600);
  font-size: 18px;
  line-height: 1.7;
}

.section-link {
  min-height: 42px;
  padding: 0 16px;
  color: #0e7490;
  background: #ecfeff;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform 0.45s ease;
}

.category-card span {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.82));
}

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

.category-card strong {
  display: block;
  font-size: 25px;
  margin-bottom: 8px;
}

.category-card p {
  margin: 0;
  color: #e0f2fe;
  line-height: 1.6;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.poster img {
  transition: transform 0.45s ease;
}

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

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

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

.poster-badge,
.poster-year,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  right: 12px;
  border-radius: 10px;
  padding: 5px 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  left: 12px;
  bottom: 12px;
  border-radius: 9px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 182, 212, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  min-height: 42px;
  margin: 0 0 14px;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-foot,
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 12px;
}

.movie-foot span:last-child {
  margin-left: auto;
  max-width: 52%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wide-list {
  display: grid;
  gap: 20px;
}

.wide-card {
  display: grid;
  grid-template-columns: 38% 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-card:nth-child(even) {
  grid-template-columns: 1fr 38%;
}

.wide-card:nth-child(even) .wide-poster {
  order: 2;
}

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

.wide-poster {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.wide-poster img {
  transition: transform 0.45s ease;
}

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

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 182, 212, 0.9);
  transform: translate(-50%, -50%);
}

.wide-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.wide-info h3 {
  margin: 10px 0;
  font-size: 26px;
  color: var(--slate-900);
}

.one-line,
.summary-line {
  color: var(--slate-600);
  line-height: 1.75;
}

.summary-line {
  color: var(--slate-500);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 28px;
}

.ranking-panel,
.recommend-panel,
.content-card,
.aside-card,
.category-overview-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.ranking-panel,
.recommend-panel {
  padding: 26px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: #f0fdfa;
  transform: translateX(4px);
}

.compact-poster {
  position: relative;
  width: 58px;
  height: 78px;
  overflow: hidden;
  border-radius: 10px;
  background: #0f172a;
}

.compact-card strong {
  display: block;
  color: var(--slate-900);
  margin-bottom: 6px;
  line-height: 1.35;
}

.compact-card span:not(.rank-number) {
  display: block;
  color: var(--slate-500);
  font-size: 13px;
}

.rank-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
  border-bottom-right-radius: 10px;
}

.page-hero {
  padding: 92px 0 76px;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}

.page-search {
  width: min(720px, 100%);
  background: #fff;
  color: var(--slate-900);
  border-color: #cbd5e1;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--slate-700);
  cursor: pointer;
  background: #e2e8f0;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  transform: translateY(-1px);
}

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

.category-overview-card {
  padding: 26px;
}

.category-title-link h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-title-link p {
  margin: 0 0 20px;
  color: var(--slate-600);
  line-height: 1.7;
}

.small-btn {
  margin-top: 18px;
  min-height: 42px;
  padding: 0 16px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 52px 86px 1fr;
  align-items: center;
  gap: 18px;
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 20px;
  font-weight: 900;
}

.ranking-row img {
  width: 86px;
  height: 118px;
  border-radius: 12px;
  background: #0f172a;
}

.ranking-row strong {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-900);
  font-size: 20px;
}

.ranking-row p {
  margin: 0 0 8px;
  color: var(--slate-600);
  line-height: 1.6;
}

.ranking-row small {
  color: var(--slate-500);
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.08);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.82), rgba(8, 47, 73, 0.65));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 38px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 40px;
  color: #bae6fd;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 44px;
  align-items: end;
}

.detail-copy h1 {
  font-size: clamp(36px, 5vw, 66px);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.tag-row span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #ecfeff;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(103, 232, 249, 0.28);
}

.detail-cover {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  box-shadow: var(--shadow-deep);
}

.detail-section {
  padding-top: 48px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow-deep);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.24), rgba(2, 6, 23, 0.68));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 0 45px rgba(6, 182, 212, 0.56);
  font-size: 28px;
}

.player-overlay strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}

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

.content-card {
  padding: 30px;
}

.content-card h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.9;
  font-size: 17px;
}

.detail-aside {
  position: sticky;
  top: 96px;
}

.aside-card {
  padding: 20px;
}

.aside-card img {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: #0f172a;
}

.aside-card dl {
  margin: 18px 0;
}

.aside-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #e2e8f0;
}

.aside-card dt {
  color: var(--slate-500);
}

.aside-card dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 800;
  text-align: right;
}

.full-btn {
  width: 100%;
}

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

.site-footer {
  color: #cbd5e1;
  background: var(--slate-950);
}

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

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 620px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a:hover {
  color: #22d3ee;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 18px 0;
  text-align: center;
  color: #64748b;
}

@media (max-width: 1080px) {
  .top-search {
    display: none;
  }

  .hero-content,
  .detail-intro,
  .detail-layout,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-cover,
  .detail-aside {
    display: none;
  }

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

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

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

  .header-inner {
    min-height: 66px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 600px;
  }

  .hero-content {
    padding: 72px 0 82px;
  }

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

  .hero-copy h2 {
    font-size: 30px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    display: block;
  }

  .section-link {
    margin-top: 16px;
  }

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

  .wide-card,
  .wide-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .wide-card:nth-child(even) .wide-poster {
    order: 0;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }

  .ranking-row {
    grid-template-columns: 42px 70px 1fr;
    gap: 12px;
  }

  .ranking-row img {
    width: 70px;
    height: 96px;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

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

  .poster {
    aspect-ratio: 16 / 20;
  }

  .movie-info p {
    min-height: 0;
  }

  .page-hero {
    padding: 66px 0 54px;
  }

  .detail-copy h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .content-card {
    padding: 22px;
  }

  .player-shell {
    border-radius: 16px;
  }
}
