:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --rose: #fb7185;
  --rose-dark: #e11d48;
  --amber-50: #fffbeb;
  --orange-50: #fff7ed;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --dark: #111827;
  --radius: 1.25rem;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 12px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fff1f2 100%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.logo-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo:hover .logo-icon,
.footer-logo:hover .logo-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 18px 34px rgba(251, 113, 133, 0.32);
}

.logo-copy strong {
  display: block;
  font-size: 23px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--orange-dark), var(--rose-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-dark);
  background: #ffedd5;
  transform: translateY(-1px);
}

.nav-link.mini {
  color: #4b5563;
  font-size: 13px;
}

.header-search {
  width: 260px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search input,
.mobile-search input,
.search-page-form input,
.toolbar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
}

.header-search input {
  padding: 10px 12px 10px 18px;
}

.header-search button,
.mobile-search button,
.search-page-form button,
.toolbar button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.header-search button {
  padding: 10px 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.toolbar button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-panel {
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-search {
  display: flex;
  margin: 16px auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.mobile-search input {
  padding: 12px 15px;
}

.mobile-search button {
  padding: 12px 18px;
}

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

.hero-carousel {
  position: relative;
  min-height: clamp(520px, 72vh, 720px);
  overflow: hidden;
  background: #111827;
}

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

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.12);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.68) 42%, rgba(17, 24, 39, 0.2) 100%),
    radial-gradient(circle at 24% 25%, rgba(249, 115, 22, 0.32), transparent 32%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 72px 0 86px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(244, 63, 94, 0.92));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  width: min(820px, 100%);
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 950;
  text-wrap: balance;
}

.hero-content p {
  width: min(720px, 100%);
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.hero-tags span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.34);
}

.secondary-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.secondary-btn.ghost {
  background: rgba(17, 24, 39, 0.24);
}

.primary-btn:hover,
.secondary-btn:hover,
.gradient-card a:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

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

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

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

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

.soft-panel {
  background: rgba(255, 255, 255, 0.54);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

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

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

.section-title h2,
.toolbar h2,
.aside-card h2,
.story-card h2 {
  margin: 0;
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-title h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 15px 28px rgba(249, 115, 22, 0.22);
}

.section-more {
  color: var(--orange-dark);
  font-weight: 850;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.card-cover img,
.rank-link img,
.related-card img,
.category-tile img,
.category-card-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .card-cover img,
.rank-card:hover img,
.related-card:hover img,
.category-tile:hover img,
.category-card-large:hover img {
  transform: scale(1.08);
}

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 46px;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.62), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
}

.type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.card-body {
  padding: 15px;
}

.card-body h2 {
  min-height: 44px;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.38;
  font-weight: 850;
}

.card-body h2 a:hover {
  color: var(--orange-dark);
}

.card-body p {
  display: -webkit-box;
  height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

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

.rank-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-link {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: stretch;
  min-height: 116px;
}

.rank-link img {
  aspect-ratio: 3 / 4;
}

.rank-number {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: rgba(17, 24, 39, 0.78);
  font-size: 13px;
  font-weight: 950;
}

.rank-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
}

.rank-info strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

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

.category-tile,
.category-card-large a {
  position: relative;
  display: flex;
  min-height: 180px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.category-tile::after,
.category-overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.18));
}

.category-tile img,
.category-card-large img {
  position: absolute;
  inset: 0;
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile {
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile small {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card-large a {
  min-height: 260px;
}

.category-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}

.category-copy strong {
  font-size: 28px;
  font-weight: 950;
}

.category-copy small {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.page-hero.compact {
  min-height: 330px;
}

.page-hero > img,
.page-hero-shade {
  position: absolute;
  inset: 0;
}

.page-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.page-hero-shade,
.page-hero::before {
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.48)),
    radial-gradient(circle at 24% 22%, rgba(249, 115, 22, 0.35), transparent 30%);
}

.page-hero.compact::before {
  position: absolute;
  inset: 0;
}

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

.page-hero h1 {
  max-width: 850px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 950;
}

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

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

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

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.toolbar h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.toolbar form,
.search-page-form {
  display: flex;
  width: min(460px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.toolbar input,
.search-page-form input {
  padding: 14px 18px;
}

.toolbar button,
.search-page-form button {
  padding: 14px 24px;
}

.search-page-form {
  margin-top: 28px;
}

.search-status {
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}

.movie-detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-backdrop,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(1.08);
  transform: scale(1.05);
  opacity: 0.58;
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.56)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.08));
}

.detail-layout {
  position: relative;
  z-index: 2;
  padding: 46px 0 58px;
}

.detail-intro {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.detail-copy p {
  max-width: 760px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-meta span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 750;
}

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

.detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 26px 55px rgba(17, 24, 39, 0.24);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.24), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2));
  cursor: pointer;
}

.play-overlay[hidden] {
  display: none;
}

.play-overlay span {
  display: inline-flex;
  width: 84px;
  height: 84px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.42);
  font-size: 32px;
  transition: transform 0.2s ease;
}

.play-overlay strong {
  font-size: 18px;
  letter-spacing: 0.12em;
}

.play-overlay:hover span {
  transform: scale(1.08);
}

.story-card,
.aside-card {
  margin-top: 24px;
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.story-card h2,
.aside-card h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.story-card p + p {
  margin-top: 14px;
}

.story-card .lead-text {
  color: #111827;
  font-weight: 750;
}

.review-card {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

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

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

.related-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.related-card a {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
}

.related-card img {
  height: 112px;
  object-fit: cover;
}

.related-card span {
  min-width: 0;
  padding-right: 12px;
}

.related-card strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.gradient-card {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.gradient-card h2,
.gradient-card p {
  color: #fff;
}

.gradient-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.gradient-card a {
  width: 100%;
  color: var(--orange-dark);
  background: #fff;
}

.site-footer {
  color: #fff;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

.footer-brand p {
  max-width: 520px;
  color: #d1d5db;
  line-height: 1.8;
}

.footer-logo strong {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

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

.footer-links h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 20px 16px;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

  .header-inner {
    height: 68px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.04em;
  }

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

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

  .detail-intro,
  .detail-main-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }

  .detail-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .logo-copy strong {
    font-size: 19px;
  }

  .logo-copy small {
    display: none;
  }

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

  .hero-shade {
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.42));
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 88px;
  }

  .hero-actions {
    width: 100%;
  }

  .primary-btn,
  .secondary-btn {
    flex: 1 1 100%;
  }

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

  .rank-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

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

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

  .toolbar form,
  .search-page-form {
    width: 100%;
  }

  .detail-intro {
    gap: 22px;
  }

  .detail-copy p {
    font-size: 16px;
  }

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

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

@media (max-width: 460px) {
  .header-inner {
    width: min(100% - 20px, 1240px);
  }

  .container,
  .hero-content,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .movie-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h2 {
    font-size: 14px;
  }

  .story-card,
  .aside-card {
    padding: 20px;
  }
}
