:root {
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50) 0%, #ffffff 46%, var(--cyan-50) 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan-600), var(--blue-600), var(--blue-700));
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.logo:hover .logo-icon,
.footer-logo:hover .logo-icon {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.25);
}

.logo-text {
  font-size: 20px;
}

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

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  content: "";
  transform: scaleX(0);
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
}

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

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(310px, 28vw);
}

.header-search input,
.mobile-search input,
.inline-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  outline: none;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-search input {
  height: 40px;
  padding: 0 48px 0 18px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.header-search input:focus,
.mobile-search input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.header-search button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(90deg, var(--cyan-600), var(--blue-700));
}

.mobile-nav-inner {
  display: grid;
  gap: 10px;
  padding: 14px 0 18px;
}

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.mobile-search input {
  height: 42px;
  padding: 0 16px;
}

.mobile-search button,
.inline-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  background: var(--cyan-600);
  padding: 0 18px;
}

.hero {
  position: relative;
  height: clamp(520px, 72vh, 720px);
  overflow: hidden;
  background: var(--slate-900);
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.image-missing {
  min-height: 260px;
  background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.35), transparent 34%), linear-gradient(135deg, #0f172a, #1d4ed8 54%, #0891b2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.72) 54%, rgba(15, 23, 42, 0.95) 100%);
}

.hero-content {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: clamp(54px, 9vw, 92px);
}

.hero-copy {
  width: min(760px, 100%);
  color: #ffffff;
}

.hero-tags,
.movie-meta-row,
.detail-actions,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-tag,
.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  background: var(--cyan-500);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

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

.button-primary {
  color: #ffffff;
  background: var(--cyan-500);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.32);
}

.button-primary:hover {
  background: var(--cyan-600);
}

.button-glass {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(12px);
}

.button-soft {
  color: var(--cyan-700, #0e7490);
  background: var(--cyan-50);
}

.hero-control {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
  font-size: 34px;
  line-height: 1;
}

.hero-control:hover {
  background: rgba(15, 23, 42, 0.56);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

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

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

.home-sections {
  display: grid;
  gap: 64px;
  padding: 56px 0 72px;
}

.content-section {
  scroll-margin-top: 96px;
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: var(--shadow-soft);
}

.section-heading h2,
.center-title h2,
.library-toolbar h2,
.filter-panel h2,
.prose-card h2,
.info-card h2,
.table-toolbar h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.poster-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: var(--cyan-600);
  opacity: 0;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.84);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

.movie-meta-row {
  justify-content: space-between;
  color: var(--slate-500);
  font-size: 13px;
  margin-bottom: 10px;
}

.category-pill {
  min-height: 24px;
  padding: 3px 10px;
  color: var(--cyan-600);
  background: var(--cyan-50);
}

.movie-card h2 {
  margin: 0 0 10px;
  color: var(--slate-800);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-title:hover {
  color: var(--cyan-600);
}

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

.movie-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--slate-500);
  font-size: 13px;
}

.soft-panel,
.category-panel,
.prose-card,
.table-section {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.soft-panel {
  padding: 32px;
  background: linear-gradient(135deg, #f0fdfa, var(--cyan-50));
}

.category-panel {
  padding: 38px;
}

.center-title {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.center-title p {
  color: var(--slate-500);
  line-height: 1.8;
}

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

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

.category-card {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 138px;
  padding: 22px;
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.category-count {
  color: var(--cyan-600);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.category-card strong {
  color: var(--slate-800);
}

.category-card em {
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

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

.movie-card-list {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.movie-card-list .movie-poster {
  height: 100%;
  min-height: 178px;
  aspect-ratio: auto;
}

.page-hero {
  padding: 64px 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan-600), var(--blue-600), var(--blue-700));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 10px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px !important;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.library-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 30px;
  padding: 36px 0 70px;
}

.filter-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.filter-panel label {
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  height: 44px;
  padding: 0 14px;
  color: var(--slate-800);
  border-color: var(--slate-200);
  border-radius: 12px;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.library-main {
  min-width: 0;
}

.library-toolbar,
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

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

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

.empty-state {
  padding: 42px;
  border-radius: 22px;
  text-align: center;
  color: var(--slate-500);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.empty-state strong {
  display: block;
  color: var(--slate-800);
  font-size: 22px;
  margin-bottom: 8px;
}

.table-section {
  padding: 30px;
  margin-top: 34px;
  margin-bottom: 70px;
}

.inline-search {
  display: grid;
  grid-template-columns: minmax(180px, 280px) auto;
  gap: 10px;
}

.inline-search input {
  height: 42px;
  padding: 0 16px;
  color: var(--slate-800);
  border-color: var(--slate-200);
  background: #ffffff;
}

.table-wrap {
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.ranking-table th,
.ranking-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--slate-200);
  text-align: left;
}

.ranking-table th {
  color: var(--slate-500);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ranking-table td {
  vertical-align: top;
}

.ranking-table tr:hover td {
  background: rgba(236, 254, 255, 0.7);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

.rank-title {
  display: block;
  margin-bottom: 4px;
  color: var(--slate-800);
  font-weight: 850;
}

.ranking-table span {
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.5;
}

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

.detail-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: var(--poster-image);
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.36;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.82) 54%, rgba(8, 145, 178, 0.58) 100%);
}

.detail-hero-inner {
  position: relative;
  padding: 28px 0 54px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

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

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.player-section {
  margin-top: 36px;
}

.player-shell {
  overflow: hidden;
  border-radius: 30px;
  background: #030712;
  box-shadow: var(--shadow);
}

.player-frame {
  position: relative;
  background: #000000;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.22), rgba(2, 6, 23, 0.62));
}

.player-start span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 999px;
  color: var(--cyan-600);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

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

.player-start.is-hidden {
  display: none;
}

.player-caption {
  padding: 22px 26px 26px;
  color: #ffffff;
  background: linear-gradient(90deg, #020617, #0f172a);
}

.player-caption h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.player-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

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

.prose-card {
  padding: 30px;
}

.prose-card p {
  color: var(--slate-600, #475569);
  line-height: 1.9;
  font-size: 16px;
}

.prose-card h2 + p {
  margin-top: 12px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--cyan-600);
  font-weight: 700;
  background: var(--cyan-50);
}

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

.info-card,
.next-card {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.info-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.info-card li {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
}

.info-card li:last-child {
  border-bottom: 0;
}

.info-card span {
  color: var(--slate-500);
  font-size: 13px;
}

.info-card strong {
  color: var(--slate-800);
  line-height: 1.55;
}

.next-card {
  display: grid;
  gap: 12px;
}

.next-card a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--slate-700);
  background: var(--slate-50);
}

.next-card a:hover {
  color: var(--cyan-600);
  background: var(--cyan-50);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.feature-row div {
  padding: 20px;
  border-radius: 18px;
  background: var(--cyan-50);
}

.feature-row strong,
.feature-row span {
  display: block;
}

.feature-row span {
  margin-top: 8px;
  color: var(--slate-500);
  line-height: 1.7;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0 34px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--cyan-100);
  font-size: 18px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid p {
  line-height: 1.8;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1080px) {
  .movie-grid,
  .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .mobile-menu-button {
    display: flex;
  }

  .hero-control {
    width: 42px;
    height: 42px;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

  .movie-grid,
  .featured-grid,
  .library-grid,
  .category-grid,
  .category-grid-wide,
  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-panel {
    position: static;
  }

  .detail-poster {
    max-width: 280px;
  }

  .movie-card-list {
    grid-template-columns: 1fr;
  }

  .library-toolbar,
  .table-toolbar,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .logo-text {
    font-size: 17px;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    padding-bottom: 76px;
  }

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

  .button {
    width: 100%;
  }

  .movie-grid,
  .featured-grid,
  .library-grid,
  .category-grid,
  .category-grid-wide,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .soft-panel,
  .category-panel,
  .prose-card,
  .table-section {
    padding: 22px;
  }

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