:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  padding-top: 64px;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--blue-900), var(--slate-900));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  color: var(--white);
  background: linear-gradient(135deg, #38bdf8, var(--cyan-400));
  box-shadow: 0 12px 24px rgba(34, 211, 238, 0.28);
  transition: transform 0.24s ease;
}

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

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan-300), #bfdbfe, var(--cyan-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: #bfdbfe;
  font-size: 12px;
  margin-top: 2px;
}

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

.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan-300);
  background: rgba(255, 255, 255, 0.08);
}

.top-search,
.mobile-search,
.hero-search,
.search-page-form {
  display: flex;
  align-items: center;
}

.top-search {
  width: 280px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.54);
}

.top-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.search-page-form select,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: none;
  color: inherit;
  background: transparent;
}

.top-search input {
  color: var(--white);
  padding: 9px 12px;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: #94a3b8;
}

.top-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  color: var(--white);
  font-weight: 700;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
  padding: 9px 14px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  background: var(--slate-800);
}

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

.mobile-search {
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}

.mobile-search input {
  color: var(--white);
  padding: 10px 12px;
}

.mobile-link {
  display: block;
  padding: 10px 0;
  color: #e0f2fe;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.mobile-link-sub {
  color: #bae6fd;
  padding-left: 12px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-950), var(--slate-900));
}

.hero-stage {
  position: relative;
  min-height: calc(100vh - 64px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease, transform 0.75s ease;
  transform: scale(1.02);
  background-image: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.26), transparent 30%), var(--hero-image);
  background-position: center;
  background-size: cover;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72), rgba(30, 58, 138, 0.58)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent 45%);
}

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

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 14px;
  margin-bottom: 18px;
  color: var(--cyan-300);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.16);
  backdrop-filter: blur(16px);
}

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

.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  max-width: 760px;
  background: linear-gradient(90deg, var(--cyan-300), #bfdbfe, var(--cyan-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 680px;
  color: #dbeafe;
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 24px);
}

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

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

.hero-tags span,
.tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  color: #e0f2fe;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

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

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

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.32);
}

.btn-ghost {
  color: #e0f2fe;
  border: 1px solid rgba(191, 219, 254, 0.32);
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(12px);
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.48);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.03);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: var(--white);
  font-size: 38px;
  line-height: 1;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 28px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--cyan-300);
}

.search-band {
  background: rgba(15, 23, 42, 0.96);
  color: var(--white);
}

.search-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 32px;
  align-items: center;
  padding: 34px 0;
}

.search-band h2,
.search-band p {
  margin: 0;
}

.search-band h2 {
  font-size: clamp(24px, 4vw, 34px);
}

.search-band p {
  color: #cbd5e1;
  margin-top: 8px;
}

.hero-search {
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.hero-search input {
  padding: 15px 18px;
  color: var(--slate-900);
}

.hero-search button {
  min-height: 54px;
  padding: 0 26px;
}

.content-section {
  padding: 54px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  color: var(--slate-900);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--slate-500);
}

.section-head a {
  color: var(--blue-700);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  background-image:
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(30, 58, 138, 0.34)),
    var(--category-image);
  background-size: cover;
  background-position: center;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

.category-card strong {
  color: #dbeafe;
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
}

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

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

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

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

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

.movie-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slate-900);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.66), transparent 52%);
  opacity: 0.92;
}

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  padding: 4px 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.74);
}

.year-badge {
  right: 10px;
}

.rank-badge {
  left: 10px;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
}

.movie-card-body {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.movie-card-body strong {
  color: var(--slate-900);
  font-size: 16px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body em {
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card-body span {
  color: var(--slate-600);
  font-size: 13px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-compact .movie-card-body span {
  display: none;
}

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

.ranking-panel,
.story-card,
.side-card,
.filter-panel,
.search-page-panel,
.category-overview-card,
.ranking-lines {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.ranking-panel {
  position: sticky;
  top: 88px;
  padding: 24px;
}

.ranking-panel h2,
.side-card h2,
.story-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.ranking-panel p {
  margin: 0 0 18px;
  color: var(--slate-500);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--slate-100);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: #dbeafe;
}

.rank-row span {
  grid-row: span 2;
  color: var(--blue-700);
  font-weight: 900;
  font-size: 18px;
}

.rank-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.28), transparent 30%),
    linear-gradient(120deg, var(--blue-950), var(--slate-900));
}

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

.slim-hero .container {
  padding: 78px 0 68px;
}

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

.page-hero p {
  max-width: 780px;
  color: #dbeafe;
  margin: 18px 0 0;
  font-size: 18px;
}

.category-overview-list {
  display: grid;
  gap: 28px;
}

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

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 28px;
}

.category-overview-head p {
  margin: 6px 0 0;
  color: var(--slate-500);
}

.filter-panel,
.search-page-panel {
  padding: 24px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-grid label,
.search-page-form input,
.search-page-form select {
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: var(--white);
}

.filter-grid label {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
}

.filter-grid span {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  min-height: 28px;
  color: var(--slate-900);
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 24px;
  text-align: center;
  color: var(--slate-500);
  border-radius: 16px;
  background: var(--slate-100);
}

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

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

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 120px;
  gap: 12px;
  margin-bottom: 24px;
}

.search-page-form input,
.search-page-form select {
  min-height: 50px;
  padding: 0 14px;
}

.search-page-form button {
  border-radius: 14px;
}

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

.ranking-lines {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.ranking-line {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.ranking-line:hover {
  background: var(--slate-100);
}

.ranking-line img {
  width: 54px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  grid-row: span 2;
}

.ranking-no {
  grid-row: span 2;
  color: var(--blue-700);
  font-size: 18px;
  font-weight: 900;
}

.ranking-line strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-line em {
  color: var(--slate-500);
  font-style: normal;
  font-size: 12px;
}

.detail-hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: var(--slate-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-size: cover;
  background-position: center;
  filter: blur(10px) scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.84)),
    radial-gradient(circle at 18% 15%, rgba(34, 211, 238, 0.18), transparent 32%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 26px 0 56px;
}

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

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: center;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.48);
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.08));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: var(--blue-700);
  font-size: 32px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.32);
}

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

.detail-info {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.detail-info h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.detail-info p {
  color: #dbeafe;
  margin: 18px 0 20px;
}

.detail-info dl {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.detail-info dl div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.detail-info dt {
  color: #93c5fd;
  font-size: 13px;
}

.detail-info dd {
  margin: 0;
  color: var(--white);
}

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

.story-card,
.side-card {
  padding: 28px;
}

.story-card p {
  margin: 0 0 24px;
  color: var(--slate-600);
  font-size: 17px;
}

.side-card {
  position: sticky;
  top: 88px;
}

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

.side-links a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: var(--slate-100);
}

.side-links a:hover {
  color: var(--blue-700);
  background: #dbeafe;
}

.side-links span {
  color: var(--slate-500);
  font-size: 12px;
}

.site-footer {
  color: #dbeafe;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800), var(--slate-950));
}

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

.site-footer h2,
.site-footer h3,
.site-footer p {
  margin: 0;
}

.site-footer h2,
.site-footer h3 {
  color: var(--cyan-300);
}

.site-footer p {
  color: #cbd5e1;
  margin-top: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--cyan-300);
}

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .brand {
    min-width: 0;
  }

  .hero,
  .hero-stage,
  .hero-content {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 64px 0 92px;
  }

  .hero-poster {
    max-width: 260px;
    margin: 0 auto;
  }

  .search-band-inner,
  .two-column-section,
  .ranking-layout,
  .detail-grid,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .side-card {
    position: static;
  }

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

  .filter-grid,
  .search-page-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  main {
    padding-top: 62px;
  }

  .header-inner {
    height: 62px;
    width: min(100% - 24px, 1180px);
  }

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

  .brand-text small {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

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

  .hero-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .content-section {
    padding: 38px 0;
  }

  .section-head,
  .category-overview-head {
    display: grid;
    align-items: start;
  }

  .category-grid,
  .movie-grid-6,
  .movie-grid-5,
  .movie-grid-4,
  .movie-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card-body span {
    display: none;
  }

  .search-band-inner {
    padding: 28px 0;
  }

  .hero-search,
  .search-page-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-search button,
  .search-page-form button {
    min-height: 48px;
  }

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

  .detail-info,
  .story-card,
  .side-card,
  .filter-panel,
  .search-page-panel,
  .category-overview-card {
    padding: 18px;
    border-radius: 18px;
  }

  .footer-inner {
    padding: 36px 0;
  }
}
