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

:root {
  --sunrise-50: #fff7ed;
  --sunrise-100: #ffedd5;
  --sunrise-300: #ffb174;
  --sunrise-400: #ff883c;
  --sunrise-500: #ff6916;
  --sunrise-600: #f04e0c;
  --morning-50: #fff1e4;
  --morning-500: #f59e0b;
  --dawn-50: #fff8f1;
  --ink-900: #111827;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --paper: #ffffff;
  --line: #f1f5f9;
  --shadow: 0 20px 35px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 12px 25px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: linear-gradient(180deg, var(--dawn-50), #ffffff 38%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(241, 245, 249, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  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: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
  box-shadow: 0 12px 22px rgba(255, 105, 22, 0.28);
}

.brand-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--sunrise-500), var(--morning-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: var(--ink-700);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--ink-800);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: auto 0 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 76px;
  color: #ffffff;
}

.hero-text {
  max-width: 760px;
  animation: fadeUp 0.7s ease both;
}

.hero-tags,
.detail-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-tags .tag:first-child,
.card-badge {
  background: var(--sunrise-500);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 20px 42px rgba(0, 0, 0, 0.38);
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.8;
}

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

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

.primary-button {
  color: #ffffff;
  background: var(--sunrise-500);
  box-shadow: 0 14px 30px rgba(255, 105, 22, 0.32);
}

.primary-button:hover {
  background: var(--sunrise-600);
  transform: translateY(-2px) scale(1.02);
}

.primary-button.small {
  min-height: 46px;
  padding: 0 22px;
  white-space: nowrap;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

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

.ghost-button.light {
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.78);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.56);
}

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

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

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

.hero-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -38px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.hero-strip-title,
.hero-strip-list {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-strip-title {
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.hero-strip-title span {
  color: var(--sunrise-500);
  font-weight: 800;
}

.hero-strip-title strong {
  font-size: 24px;
}

.hero-strip-list {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.sunrise-section {
  width: 100%;
  max-width: none;
  margin-top: 76px;
  padding: 76px max(16px, calc((100vw - 1180px) / 2)) 76px;
  background: linear-gradient(90deg, var(--morning-50), var(--dawn-50));
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.section-head > div {
  min-width: 0;
}

.section-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--sunrise-500);
  background: #fff4eb;
  box-shadow: 0 12px 24px rgba(255, 105, 22, 0.12);
}

.section-head h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--ink-500);
  line-height: 1.8;
}

.section-more,
.text-link {
  color: var(--sunrise-500);
  font-weight: 800;
}

.section-more:hover,
.text-link:hover {
  color: var(--sunrise-600);
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

.movie-card-large {
  border-radius: var(--radius-md);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.card-media.poster {
  aspect-ratio: 2 / 3;
}

.card-media.wide {
  aspect-ratio: 16 / 9;
}

.card-media img,
.compact-media img,
.rank-thumb img,
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .card-media img,
.compact-card:hover .compact-media img,
.category-card:hover .category-cover img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.14));
}

.large-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.large-info span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 14px;
}

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

.card-body h3,
.compact-card h3,
.rank-main h3 {
  margin: 0;
  color: var(--ink-900);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
}

.movie-card-large .card-body h3 {
  font-size: 21px;
}

.card-body h3 a:hover,
.compact-card h3 a:hover,
.rank-main h3 a:hover {
  color: var(--sunrise-600);
}

.card-body p,
.rank-main p,
.category-card-body p {
  display: -webkit-box;
  margin: 8px 0 0;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 12px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.compact-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.compact-media {
  height: 58px;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.compact-card p {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 12px;
}

.search-panel {
  padding-top: 54px;
}

.search-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-bar input {
  min-width: 0;
  flex: 1;
  height: 48px;
  border: 0;
  outline: none;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--ink-900);
  background: #f8fafc;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #ffe1cb;
  border-radius: 999px;
  color: var(--ink-700);
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
  color: #ffffff;
  border-color: var(--sunrise-500);
  background: var(--sunrise-500);
}

.category-stack {
  display: grid;
  gap: 38px;
}

.category-row-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.category-row-head h3 {
  margin: 0;
  font-size: 24px;
}

.category-row-head p {
  margin: 6px 0 0;
  color: var(--ink-500);
  line-height: 1.7;
}

.category-row-head a {
  flex-shrink: 0;
  color: var(--sunrise-500);
  font-weight: 800;
}

.horizontal-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
}

.rank-thumb {
  width: 96px;
  height: 62px;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.rank-main p {
  max-width: 760px;
}

.rank-action {
  min-height: 38px;
  color: var(--sunrise-600);
  background: #fff3ea;
}

.rank-action:hover {
  color: #ffffff;
  background: var(--sunrise-500);
}

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

.page-hero {
  margin-top: 34px;
  padding: 70px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: radial-gradient(circle at 15% 10%, rgba(255, 177, 116, 0.42), transparent 28%), linear-gradient(135deg, #111827, #312013 55%, #ff6916);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-hero h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: clamp(36px, 6vw, 62px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 740px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.9;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sunrise-300);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  overflow: hidden;
  background: #111827;
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0;
  font-size: 22px;
}

.sticky-search {
  position: sticky;
  top: 78px;
  z-index: 20;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
  color: var(--ink-500);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: stretch;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  background: #050505;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: #050505;
  cursor: pointer;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.1);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08));
}

.player-cover strong {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  z-index: 4;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.2;
  text-align: left;
}

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

.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 32px;
  background: rgba(255, 105, 22, 0.92);
  box-shadow: 0 20px 50px rgba(255, 105, 22, 0.42);
  transform: translate(-50%, -50%);
}

.play-ring span {
  margin-left: 5px;
}

.detail-info {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-info h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.detail-one-line {
  color: var(--ink-600);
  line-height: 1.9;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.detail-meta-grid span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--ink-700);
  font-weight: 700;
  background: #f8fafc;
}

.detail-tags .tag {
  color: var(--sunrise-600);
  background: #fff1e6;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: 36px;
}

.detail-article,
.side-panel {
  padding: 32px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-article h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin: 0;
  color: var(--ink-700);
  font-size: 16px;
  line-height: 2;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.detail-related {
  padding-bottom: 78px;
}


.site-footer {
  margin-top: 78px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

.footer-grid h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.footer-grid p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.9;
}

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

.footer-links a {
  color: #9ca3af;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .menu-toggle {
    display: inline-block;
  }

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

  .hero {
    min-height: 620px;
  }

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

  .hero-control {
    display: none;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .hero-strip-list,
  .horizontal-cards {
    grid-template-columns: 1fr;
  }

  .section-head,
  .category-row-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .ranking-item {
    grid-template-columns: 44px 78px minmax(0, 1fr);
  }

  .rank-action {
    grid-column: 3;
    justify-self: start;
  }

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

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

  .page-hero {
    padding: 42px 28px;
  }

  .sticky-search {
    position: static;
  }
}

@media (max-width: 540px) {
  .nav-wrap,
  .mobile-nav,
  .content-section,
  .page-main,
  .detail-main,
  .hero-strip {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    height: 72vh;
    min-height: 560px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

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

  .card-body {
    padding: 12px;
  }

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

  .card-body p {
    font-size: 12px;
  }

  .category-cover {
    height: 120px;
  }

  .detail-info,
  .detail-article,
  .side-panel {
    padding: 22px;
  }

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

  .play-ring {
    width: 74px;
    height: 74px;
    font-size: 26px;
  }

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