:root {
  --primary-50: #fef9ee;
  --primary-100: #fdf2d7;
  --primary-300: #f7ca7a;
  --primary-500: #f08d1f;
  --primary-600: #e17015;
  --primary-700: #bb5413;
  --primary-800: #954217;
  --accent-600: #df5015;
  --accent-700: #b93c13;
  --secondary-50: #faf9f6;
  --secondary-100: #f5f3ec;
  --secondary-600: #a58a66;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;
  --white: #ffffff;
  --shadow-sm: 0 10px 25px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 18px 45px rgba(17, 24, 39, 0.14);
  --shadow-lg: 0 28px 80px rgba(17, 24, 39, 0.22);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  min-height: 100vh;
}

body.search-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--primary-800), var(--primary-700), var(--primary-600));
  box-shadow: 0 14px 35px rgba(149, 66, 23, 0.28);
}

.nav-bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary-800);
  background: var(--primary-100);
  box-shadow: inset 0 -5px 12px rgba(225, 112, 21, 0.22);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 650;
  font-size: 15px;
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary-100);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-search,
.mobile-toggle {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 9px 15px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search:hover,
.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  padding: 9px 0;
}

.mobile-menu {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--white);
}

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

.search-panel {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
  padding: 80px 16px 24px;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(12px);
}

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

.search-box {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 120px);
  overflow: auto;
  margin: 0 auto;
  padding: 28px;
  border-radius: var(--radius-xl);
  color: var(--gray-900);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.search-box label {
  display: block;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(240, 141, 31, 0.15);
}

.search-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  color: var(--gray-700);
  background: var(--gray-100);
}

.search-results {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.search-result {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  transition: border 0.2s ease, transform 0.2s ease;
}

.search-result:hover {
  border-color: var(--primary-300);
  transform: translateY(-1px);
}

.search-result img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
}

.search-result h3 {
  margin: 2px 0 6px;
  font-size: 17px;
}

.search-result p {
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.6;
}

.hero-slider {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--gray-950);
}

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

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

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

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 5s ease;
  background: linear-gradient(135deg, var(--gray-900), var(--primary-800));
}

.hero-slide.is-active .hero-image {
  transform: scale(1);
}

.hero-glow {
  position: absolute;
  right: 10%;
  top: 12%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(240, 141, 31, 0.28);
  filter: blur(80px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(3, 7, 18, 0.94), rgba(3, 7, 18, 0.3) 52%, rgba(3, 7, 18, 0.05)),
    linear-gradient(90deg, rgba(3, 7, 18, 0.82), rgba(3, 7, 18, 0.42) 48%, rgba(3, 7, 18, 0.12));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 86px;
}

.hero-copy {
  width: min(700px, 100%);
  color: var(--white);
}

.hero-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-rating span:first-child {
  color: #facc15;
  font-weight: 800;
}

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

.hero-copy p {
  margin: 0 0 22px;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 650;
}

.hero-tag {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.tag {
  color: var(--primary-700);
  background: var(--primary-100);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: var(--primary-600);
  padding: 0 24px;
  box-shadow: 0 14px 30px rgba(225, 112, 21, 0.35);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--primary-700);
  box-shadow: 0 18px 40px rgba(225, 112, 21, 0.42);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  padding: 0 24px;
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.48);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.quick-search-section {
  position: relative;
  z-index: 2;
  margin-top: -38px;
}

.quick-search-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

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

.quick-search-card h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.quick-search-card p {
  color: var(--gray-600);
}

.content-section,
.category-section {
  padding: 76px 0;
}

.category-section {
  background: linear-gradient(90deg, var(--primary-50), var(--secondary-50));
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}

.section-heading p {
  margin: 0;
  color: var(--gray-600);
}

.section-more {
  color: var(--primary-700);
  background: var(--primary-100);
  padding: 0 16px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, var(--primary-100), var(--secondary-100));
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.is-hidden {
  opacity: 0;
}

.poster-score {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--gray-900);
  background: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(225, 112, 21, 0.92);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card h3 a:hover {
  color: var(--primary-700);
}

.movie-meta {
  margin: 0 0 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-line {
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-tile strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.7;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 15%, rgba(240, 141, 31, 0.34), transparent 34%),
    linear-gradient(135deg, var(--gray-950), var(--primary-800));
}

.small-hero {
  padding: 82px 0;
}

.rank-hero {
  padding: 92px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-300);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
}

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

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

.category-overview-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-overview-link {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 190px;
}

.tile-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
}

.tile-stack span {
  overflow: hidden;
  border-radius: 12px;
  background: var(--primary-100);
}

.tile-image {
  width: 100%;
  height: 100%;
  min-height: 78px;
  object-fit: cover;
}

.category-overview-copy {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.category-overview-copy p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 0 13px;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(240, 141, 31, 0.12);
}

.movie-card.is-filtered,
.rank-row.is-filtered {
  display: none;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 96px 1fr 80px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  font-weight: 900;
}

.rank-poster {
  display: block;
  width: 96px;
  height: 128px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--primary-100);
}

.rank-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-copy h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-copy h2 a:hover {
  color: var(--primary-700);
}

.rank-copy p {
  margin: 0 0 9px;
  color: var(--gray-600);
  line-height: 1.65;
}

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

.player-band {
  padding: 28px 0 36px;
  background: var(--gray-950);
}

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

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

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-lg);
}

.movie-player,
.player-cover,
.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  z-index: 1;
  background: #000000;
}

.player-cover {
  z-index: 2;
  border: 0;
  color: var(--white);
  background: transparent;
  overflow: hidden;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.2)),
    radial-gradient(circle at center, rgba(225, 112, 21, 0.18), transparent 34%);
}

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

.player-poster {
  object-fit: cover;
  background: linear-gradient(135deg, var(--gray-900), var(--primary-800));
}

.play-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 3;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(225, 112, 21, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  font-size: 40px;
}

.player-cover strong {
  position: absolute;
  left: 50%;
  top: calc(48% + 72px);
  z-index: 3;
  transform: translateX(-50%);
  font-size: 18px;
}

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

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

.detail-main,
.side-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-main {
  padding: 24px;
}

.detail-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--primary-100);
}

.detail-poster .poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-head h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.detail-one-line {
  margin: 0 0 16px;
  color: var(--gray-700);
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 700;
}

.detail-meta span:first-child {
  color: #92400e;
  background: #fef3c7;
}

.story-card {
  padding: 26px 0 0;
}

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

.story-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 2;
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 98px;
}

.side-card {
  padding: 20px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  box-shadow: none;
  border: 1px solid var(--gray-200);
}

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

.compact-card .poster {
  height: 118px;
  aspect-ratio: auto;
}

.compact-card .poster-score,
.compact-card .poster-play,
.compact-card .movie-line,
.compact-card .tag-row {
  display: none;
}

.compact-card .movie-card-body {
  padding: 10px 10px 10px 0;
}

.compact-card h3 {
  font-size: 14px;
}

.site-footer {
  color: var(--gray-300);
  background: linear-gradient(180deg, var(--gray-900), var(--gray-950));
  margin-top: 32px;
}

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

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  max-width: 520px;
  color: var(--gray-500);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 17px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin-bottom: 10px;
  color: var(--gray-400);
}

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

.footer-bottom {
  padding: 20px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-500);
  font-size: 14px;
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .hero-slider {
    height: 70vh;
    min-height: 520px;
  }

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

  .hero-arrow {
    display: none;
  }

  .quick-search-card,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .category-overview-link {
    grid-template-columns: 1fr;
  }

  .tile-stack {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

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

  .detail-head {
    grid-template-columns: 120px 1fr;
  }

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

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

  .brand-subtitle {
    display: none;
  }

  .nav-search {
    padding: 8px 12px;
  }

  .hero-slider {
    min-height: 500px;
  }

  .hero-copy p {
    -webkit-line-clamp: 2;
  }

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

  .content-section,
  .category-section {
    padding: 50px 0;
  }

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

  .rank-row {
    grid-template-columns: 42px 68px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .rank-poster {
    width: 68px;
    height: 92px;
  }

  .rank-copy h2 {
    font-size: 16px;
  }

  .rank-copy p,
  .rank-copy .tag-row {
    display: none;
  }

  .detail-head {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: 150px;
  }

  .play-ring {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }

  .player-cover strong {
    top: calc(48% + 58px);
  }
}
