:root {
  --red-900: #581313;
  --red-800: #7f1d1d;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --amber-700: #b45309;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --paper: #fffaf0;
  --ink: #111827;
  --muted: #667085;
  --line: #f1dfc8;
  --shadow: 0 24px 60px rgba(88, 19, 19, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 32%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(254, 242, 242, 0.96), rgba(255, 251, 235, 0.96));
  border-bottom: 4px solid var(--red-800);
  box-shadow: 0 14px 30px rgba(127, 29, 29, 0.14);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark,
.footer-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--red-700), var(--amber-700));
  box-shadow: 0 12px 24px rgba(185, 28, 28, 0.25);
}

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

.brand-text strong {
  font-size: 24px;
  background: linear-gradient(90deg, var(--red-800), var(--amber-700));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: #7a6a5f;
}

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

.nav-link,
.mobile-nav-link {
  padding: 11px 16px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover {
  color: var(--red-800);
  background: rgba(254, 226, 226, 0.88);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(254, 226, 226, 0.8);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--red-800);
  border-radius: 999px;
}

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

.mobile-nav.open {
  display: grid;
  gap: 6px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: var(--red-900);
}

.hero-slides,
.hero-slide {
  min-height: 680px;
}

.hero-slide {
  display: none;
  position: relative;
  padding: 92px 22px 110px;
  background-position: center;
  background-size: cover;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.35), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(220, 38, 38, 0.28), transparent 25%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.36));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding-right: min(42vw, 520px);
}

.eyebrow,
.page-hero span,
.warm-block span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 24px 0 18px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  max-width: 720px;
  margin: 0 0 24px;
  color: #fee2e2;
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.72;
}

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

.hero-tags span,
.detail-tags span,
.mini-tags span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-btn {
  color: var(--red-800);
  background: #fff;
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.18);
}

.primary-btn.light {
  color: var(--red-800);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster {
  position: absolute;
  z-index: 2;
  right: max(22px, calc((100vw - 1280px) / 2 + 22px));
  top: 96px;
  width: min(32vw, 390px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(245, 158, 11, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
}

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

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

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

.hero-search {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 44px));
  display: flex;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: #1f2937;
  background: transparent;
}

.hero-search button,
.filter-search button {
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--red-700), var(--amber-700));
}

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

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

.section-heading span {
  color: var(--red-800);
  background: #fee2e2;
  border: 0;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--red-700);
  font-weight: 900;
}

.section-heading.compact {
  align-items: start;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(241, 223, 200, 0.85);
  box-shadow: 0 14px 42px rgba(88, 19, 19, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 38, 38, 0.28);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.92), rgba(180, 83, 9, 0.76)),
    radial-gradient(circle at 70% 12%, rgba(255, 255, 255, 0.28), transparent 28%);
}

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

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

.rank-badge,
.score-pill {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: var(--red-700);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.rank-badge {
  left: 12px;
}

.score-pill {
  right: 12px;
  background: rgba(17, 24, 39, 0.78);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  transition: color 0.2s ease;
}

.card-title:hover {
  color: var(--red-700);
}

.card-meta,
.card-line {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card-line {
  display: -webkit-box;
  min-height: 42px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.65;
}

.mini-tags {
  margin-top: 14px;
}

.mini-tags span {
  color: var(--red-700);
  background: #fee2e2;
  padding: 5px 9px;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
}

.rank-panel,
.category-panel,
.detail-card,
.side-box,
.player-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(241, 223, 200, 0.85);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.rank-panel,
.category-panel {
  padding: 28px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.horizontal-card:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.horizontal-poster {
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-800), var(--amber-700));
}

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

.horizontal-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.horizontal-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.horizontal-info em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.list-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 3px;
  border-radius: 999px;
  color: #fff;
  background: var(--red-700);
  font-size: 12px;
  font-weight: 900;
}

.category-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-chip-list a {
  padding: 11px 15px;
  border-radius: 999px;
  color: var(--red-800);
  background: #fee2e2;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-chip-list a:hover {
  background: #fed7aa;
  transform: translateY(-2px);
}

.warm-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
  padding: 52px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(100deg, var(--red-800), var(--amber-700));
  box-shadow: var(--shadow);
}

.warm-block h2 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.05em;
}

.warm-block p {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  line-height: 1.75;
}

.page-hero {
  position: relative;
  padding: 86px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.35), transparent 26%),
    linear-gradient(100deg, var(--red-900), var(--red-800), var(--amber-700));
  overflow: hidden;
}

.page-hero div {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.05em;
}

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

.soft-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.3), transparent 25%),
    linear-gradient(100deg, #7f1d1d, #991b1b, #92400e);
}

.category-hero {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(100deg, #7f1d1d, #b45309);
}

.genre-hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(100deg, #4c1d95, #7f1d1d, #b45309);
}

.ranking-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.36), transparent 28%),
    linear-gradient(100deg, #111827, #7f1d1d, #b45309);
}

.filter-panel {
  position: sticky;
  top: 86px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid rgba(241, 223, 200, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(88, 19, 19, 0.08);
  backdrop-filter: blur(16px);
}

.filter-search,
.filter-selects {
  display: flex;
  gap: 10px;
}

.filter-search input,
.filter-selects select {
  min-height: 46px;
  border: 1px solid #f1dfc8;
  border-radius: 999px;
  background: #fffaf0;
  color: #1f2937;
  outline: 0;
}

.filter-search input {
  flex: 1;
  min-width: 180px;
  padding: 0 16px;
}

.filter-selects select {
  padding: 0 38px 0 14px;
}

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

.empty-state {
  display: none;
  padding: 58px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

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

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

.category-tile {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(241, 223, 200, 0.9);
  box-shadow: 0 16px 46px rgba(88, 19, 19, 0.1);
}

.category-cover {
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  padding: 24px;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.category-cover span {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.category-links a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475467;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 700;
}

.category-links a:hover {
  color: var(--red-700);
  background: #fee2e2;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 112px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(241, 223, 200, 0.85);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(88, 19, 19, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-rank {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--red-700), var(--amber-700));
  font-weight: 900;
}

.ranking-thumb {
  display: block;
  height: 78px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red-800), var(--amber-700));
}

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

.ranking-info {
  min-width: 0;
}

.ranking-info a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 900;
}

.ranking-info a:hover {
  color: var(--red-700);
}

.ranking-info p {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 7px 0;
  color: var(--muted);
  font-size: 14px;
}

.ranking-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9a6b45;
  font-size: 13px;
  font-weight: 700;
}

.ranking-score {
  justify-self: end;
  color: var(--red-700);
  font-size: 28px;
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 22px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.crumbs a:hover {
  color: var(--red-700);
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.movie-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

.movie-player video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.28), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72));
}

.movie-player.ready .play-cover,
.movie-player.is-playing .play-cover {
  display: none;
}

.play-icon {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-700), var(--amber-700));
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42);
}

.play-icon::before {
  content: "";
  margin-left: 7px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #fff;
}

.play-cover strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}

.detail-card {
  padding: 30px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-badges span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--red-700);
  background: #fee2e2;
  font-size: 13px;
  font-weight: 800;
}

.detail-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 20px;
  color: var(--red-800);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.7;
}

.detail-tags span {
  color: #475467;
  background: #f3f4f6;
}

.detail-score {
  display: inline-flex;
  align-items: end;
  gap: 10px;
  margin: 26px 0 8px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #fee2e2);
}

.detail-score b {
  color: var(--red-700);
  font-size: 42px;
  line-height: 0.95;
}

.detail-score span {
  color: #7a6a5f;
  font-size: 13px;
  font-weight: 800;
}

.detail-card h2,
.side-box h2 {
  margin: 26px 0 12px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.detail-card p {
  color: #374151;
  line-height: 2;
  text-align: justify;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #f1dfc8;
}

.prev-next a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--red-800);
  background: #fff7ed;
  font-weight: 800;
}

.prev-next a:hover {
  background: #fee2e2;
}

.detail-side {
  position: relative;
}

.side-box {
  position: sticky;
  top: 112px;
  padding: 22px;
}

.side-box h2 {
  margin-top: 0;
}

.side-more {
  display: block;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--red-700), var(--amber-700));
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030712);
  border-top: 4px solid var(--red-800);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 22px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.4fr;
  gap: 42px;
}

.footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-brand strong {
  color: #fff;
  font-size: 24px;
}

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

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

.footer-columns h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
}

.footer-columns a {
  display: block;
  margin: 10px 0;
  color: #9ca3af;
  font-size: 14px;
}

.footer-columns a:hover {
  color: #fca5a5;
}

.footer-bottom {
  padding: 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

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

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

  .detail-layout,
  .split-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .side-box {
    position: static;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel,
  .hero-slides,
  .hero-slide {
    min-height: 740px;
  }

  .hero-slide {
    padding-top: 72px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-poster {
    position: relative;
    inset: auto;
    width: min(76vw, 300px);
    margin: 32px auto 0;
  }

  .hero-search,
  .filter-search,
  .filter-selects,
  .warm-block,
  .section-heading,
  .prev-next {
    flex-direction: column;
  }

  .filter-selects {
    display: grid;
  }

  .movie-grid,
  .feature-grid,
  .library-grid,
  .category-grid,
  .footer-columns,
  .prev-next {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 48px 84px minmax(0, 1fr);
  }

  .ranking-score {
    grid-column: 3;
    justify-self: start;
    font-size: 22px;
  }

  .section-wrap {
    padding: 46px 18px;
  }

  .detail-layout {
    padding: 24px 18px 54px;
  }

  .detail-card {
    padding: 22px;
  }
}
