@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');

:root {
  --primary-50: #fef8f2;
  --primary-100: #feeede;
  --primary-400: #f29d5b;
  --primary-500: #ee7f38;
  --primary-600: #e0642d;
  --primary-700: #ba4d27;
  --secondary-500: #736d5f;
  --secondary-600: #5d5951;
  --secondary-700: #4d4944;
  --secondary-800: #433f3c;
  --warm-50: #fdf8f6;
  --warm-100: #f2e8e5;
  --warm-200: #eaddd7;
  --warm-300: #e0cec7;
  --accent-500: #eab308;
  --white: #ffffff;
  --black: #111111;
  --shadow-soft: 0 16px 45px rgba(67, 63, 60, 0.13);
  --shadow-card: 0 10px 22px rgba(67, 63, 60, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--secondary-800);
  background: linear-gradient(135deg, var(--warm-50), var(--primary-50));
  font-family: Inter, 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 246, 0.92);
  border-bottom: 1px solid rgba(234, 221, 215, 0.9);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--secondary-800);
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(238, 127, 56, 0.25);
}

.brand-name {
  font-size: 22px;
  letter-spacing: -0.02em;
}

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

.nav-link {
  color: var(--secondary-700);
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-500);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-category {
  display: none;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--secondary-800);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--warm-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--secondary-700);
  font-weight: 700;
}

.mobile-nav a:hover {
  color: var(--primary-600);
  background: var(--warm-50);
}

.hero {
  min-height: calc(100vh - var(--header-height));
  padding: 24px 0 44px;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--secondary-800);
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(67, 63, 60, 0.28);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-bg.image-error,
.poster-wrap img.image-error,
.category-card img.image-error,
.category-cover img.image-error,
.compact-item img.image-error,
.poster-detail img.image-error {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 24%, rgba(238, 127, 56, 0.36), transparent 26%),
    linear-gradient(90deg, rgba(18, 16, 14, 0.9), rgba(18, 16, 14, 0.54), rgba(18, 16, 14, 0.16)),
    linear-gradient(0deg, rgba(18, 16, 14, 0.72), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 40px;
  padding: 58px;
}

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

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

.hero-copy h1 {
  max-width: 720px;
  color: var(--white);
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero-line {
  max-width: 680px;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--primary-700);
  background: rgba(254, 248, 242, 0.94);
  border: 1px solid rgba(238, 127, 56, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

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

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 14px 28px rgba(238, 127, 56, 0.25);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 490px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-700));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

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

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 14px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  border-radius: 999px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 92px;
  z-index: 4;
  width: min(620px, calc(100% - 96px));
  display: flex;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.hero-search input,
.search-panel input,
.filter-bar input,
.filter-bar select,
.search-panel button {
  min-height: 50px;
  border: 0;
  outline: 0;
}

.hero-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 0 18px;
  color: var(--secondary-800);
  background: var(--white);
  border: 1px solid var(--warm-200);
  border-radius: 16px;
}

.hero-search input {
  background: transparent;
  border: 0;
}

.hero-search button,
.search-panel button {
  flex: 0 0 auto;
  margin: 6px;
  padding: 0 24px;
  color: var(--white);
  background: var(--primary-500);
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.section-pad {
  padding: 50px 0;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--secondary-800);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading span {
  color: var(--secondary-500);
}

.section-more,
.text-link {
  color: var(--primary-600);
  font-weight: 900;
}

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

.category-card,
.category-cover {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 180px;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-700));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.category-card img,
.category-cover img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card:hover img,
.category-cover:hover img {
  transform: scale(1.06);
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
}

.category-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--white);
}

.category-copy strong,
.category-copy em {
  display: block;
}

.category-copy strong {
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.category-copy em {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(234, 221, 215, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px rgba(67, 63, 60, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  height: 300px;
  background: linear-gradient(135deg, var(--secondary-700), var(--primary-500));
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 60%);
}

.score-badge,
.duration-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  color: var(--white);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.score-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: rgba(234, 179, 8, 0.88);
  font-weight: 900;
}

.duration-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.52);
  font-size: 13px;
  font-weight: 800;
}

.poster-play {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: rgba(238, 127, 56, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--secondary-500);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.32;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--secondary-600);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.rank-list,
.info-panel,
.side-card,
.detail-card,
.player-card,
.poster-detail,
.search-panel,
.filter-bar,
.ranking-table,
.category-overview-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(234, 221, 215, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.rank-list {
  overflow: hidden;
}

.rank-row,
.ranking-table-row {
  display: grid;
  align-items: center;
  gap: 14px;
  color: var(--secondary-700);
  border-bottom: 1px solid var(--warm-100);
}

.rank-row {
  grid-template-columns: 50px minmax(0, 1fr) auto 48px;
  padding: 14px 18px;
}

.rank-row:last-child,
.ranking-table-row:last-child {
  border-bottom: 0;
}

.rank-no {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: var(--primary-500);
  border-radius: 12px;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-type {
  color: var(--secondary-500);
  font-size: 13px;
}

.info-panel {
  padding: 28px;
}

.info-panel h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.stat-grid span {
  padding: 16px;
  background: var(--warm-50);
  border-radius: 18px;
}

.stat-grid strong,
.stat-grid em {
  display: block;
}

.stat-grid strong {
  color: var(--primary-600);
  font-size: 26px;
}

.stat-grid em {
  color: var(--secondary-500);
  font-style: normal;
}

.page-hero-offset {
  padding-top: 34px;
}

.sub-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 30%, rgba(234, 179, 8, 0.38), transparent 28%),
    linear-gradient(135deg, var(--secondary-800), var(--secondary-700));
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.sub-hero h1 {
  color: var(--white);
}

.sub-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.sub-hero-stat {
  display: grid;
  place-items: center;
  flex: 0 0 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  backdrop-filter: blur(16px);
}

.sub-hero-stat strong {
  font-size: 42px;
  line-height: 1;
}

.sub-hero-stat span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.filter-bar,
.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.search-panel {
  grid-template-columns: minmax(0, 1fr) auto;
}

.secondary-filter {
  grid-template-columns: repeat(2, minmax(0, 220px));
}

.filter-count {
  margin: 0 0 18px;
  color: var(--secondary-500);
  font-weight: 800;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
}

.category-cover {
  min-height: 210px;
}

.category-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 4px 0 8px;
  font-size: 28px;
}

.category-overview-card p {
  color: var(--secondary-600);
}

.ranking-table {
  overflow: hidden;
}

.ranking-table-row {
  grid-template-columns: 52px minmax(0, 1fr) 150px 100px 56px;
  padding: 13px 18px;
}

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

.ranking-table-row em {
  color: var(--secondary-500);
  font-style: normal;
  font-size: 14px;
}

.ranking-table-row b {
  color: var(--primary-600);
}

.detail-main {
  padding-bottom: 50px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--secondary-500);
  font-weight: 800;
}

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

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

.detail-primary {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
  background: var(--black);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.player-video {
  width: 100%;
  height: 100%;
  background: var(--black);
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 48%, rgba(238, 127, 56, 0.28), transparent 22%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.22));
  border: 0;
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(238, 127, 56, 0.38);
  font-size: 32px;
}

.player-overlay strong {
  font-size: 22px;
}

.player-overlay em {
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
}

.detail-card {
  padding: 28px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-score {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  border-radius: 22px;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(238, 127, 56, 0.24);
}

.detail-meta {
  margin: 18px 0;
}

.one-line {
  padding: 18px;
  color: var(--primary-700);
  background: var(--primary-50);
  border-left: 4px solid var(--primary-500);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 800;
}

.detail-section {
  margin-top: 26px;
}

.detail-section h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: var(--secondary-700);
  font-size: 17px;
}

.muted-tags span {
  color: var(--secondary-700);
  background: var(--warm-50);
  border-color: var(--warm-200);
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  display: grid;
  gap: 18px;
}

.poster-detail {
  overflow: hidden;
  padding: 14px;
}

.poster-detail img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-700));
  border-radius: 18px;
}

.poster-detail .btn {
  width: 100%;
  margin-top: 12px;
}

.side-card {
  padding: 18px;
}

.compact-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--warm-100);
}

.compact-item:last-child {
  border-bottom: 0;
}

.compact-item img {
  width: 62px;
  height: 82px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-700));
  border-radius: 12px;
}

.compact-item strong,
.compact-item em {
  display: block;
}

.compact-item strong {
  overflow: hidden;
  color: var(--secondary-800);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-item em {
  margin-top: 5px;
  color: var(--secondary-500);
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  margin-top: 40px;
  color: var(--warm-200);
  background: linear-gradient(135deg, var(--secondary-800), var(--secondary-700));
}

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

.footer-brand {
  color: var(--white);
  font-size: 24px;
}

.site-footer p {
  color: var(--warm-200);
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary-400);
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  color: var(--warm-300);
  border-top: 1px solid rgba(234, 221, 215, 0.18);
  text-align: center;
}

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 12px;
  }

  .nav-category {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-sidebar {
    position: static;
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-shell,
  .hero-content {
    min-height: 660px;
  }

  .hero-content {
    padding: 34px 24px;
  }

  .hero-controls {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .hero-search {
    bottom: 82px;
    width: calc(100% - 48px);
  }

  .section-heading,
  .sub-hero,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .filter-bar,
  .search-panel,
  .secondary-filter,
  .category-overview-card,
  .footer-inner,
  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .ranking-table-row {
    grid-template-columns: 42px minmax(0, 1fr) 52px;
  }

  .ranking-table-row em:nth-of-type(1),
  .ranking-table-row em:nth-of-type(2) {
    display: none;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .footer-inner,
  .footer-bottom,
  .mobile-nav,
  .hero-shell {
    width: min(100% - 22px, 1180px);
  }

  .brand-name {
    font-size: 19px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-shell {
    min-height: 620px;
    border-radius: 24px;
  }

  .hero-copy h1,
  .sub-hero h1 {
    font-size: 36px;
  }

  .hero-line {
    font-size: 17px;
  }

  .hero-search {
    flex-direction: column;
    padding: 8px;
    border-radius: 22px;
  }

  .hero-search button {
    min-height: 44px;
  }

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

  .poster-wrap {
    height: 360px;
  }

  .rank-row {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .rank-type {
    display: none;
  }

  .sub-hero,
  .detail-card {
    padding: 24px;
  }
}
