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

:root {
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --amber-200: #fde68a;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --ink: #1f1302;
  --paper: #fffaf0;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(69, 26, 3, 0.14);
  --shadow-deep: 0 28px 80px rgba(69, 26, 3, 0.30);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, var(--amber-50), #fff7e6 42%, #ffffff 100%);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--amber-950), var(--amber-800), var(--amber-950));
  border-bottom: 2px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 12px 28px rgba(69, 26, 3, 0.35);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--amber-100);
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--amber-950);
  background: radial-gradient(circle at 30% 25%, #ffffff, var(--amber-300) 42%, var(--amber-600));
  box-shadow: 0 0 26px rgba(251, 191, 36, 0.45);
  font-family: "Ma Shan Zheng", cursive;
  font-size: 25px;
}

.brand-text strong {
  display: block;
  font-family: "Ma Shan Zheng", cursive;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.05em;
}

.brand-text small {
  display: block;
  color: var(--amber-300);
  font-size: 12px;
  margin-top: 4px;
}

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

.nav-link {
  color: var(--amber-100);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(146, 64, 14, 0.72);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 320px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(251, 191, 36, 0.46);
  border-radius: 14px;
  background: rgba(120, 53, 15, 0.50);
  color: #ffffff;
  padding: 12px 14px;
  outline: none;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.hero-search input::placeholder,
.filter-bar input::placeholder {
  color: rgba(253, 230, 138, 0.78);
}

.header-search button,
.mobile-search button,
.hero-search button,
.filter-bar button {
  border: 0;
  border-radius: 14px;
  background: var(--amber-500);
  color: #ffffff;
  font-weight: 800;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.filter-bar button:hover {
  background: var(--amber-600);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(146, 64, 14, 0.65);
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  background: var(--amber-100);
  margin: 5px 0;
  border-radius: 99px;
}

.mobile-panel {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  color: var(--amber-100);
}

.mobile-panel nav,
.mobile-cats {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.mobile-panel a,
.mobile-cats a {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(120, 53, 15, 0.55);
}

.hero-slider {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: var(--amber-950);
}

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

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

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 7s ease;
}

.hero-slide.is-active > img {
  transform: scale(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(217, 119, 6, 0.36), transparent 32%),
    linear-gradient(90deg, rgba(69, 26, 3, 0.96) 0%, rgba(69, 26, 3, 0.75) 45%, rgba(69, 26, 3, 0.20) 100%),
    linear-gradient(0deg, rgba(69, 26, 3, 0.94), transparent 50%);
}

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

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.86);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.eyebrow.dark {
  background: rgba(217, 119, 6, 0.12);
  color: var(--amber-800);
}

.hero-content h2 {
  max-width: 820px;
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.08;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.hero-desc {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--amber-100);
  font-size: clamp(18px, 2vw, 24px);
}

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

.hero-tags {
  margin: 28px 0 0;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  background: rgba(146, 64, 14, 0.82);
  color: var(--amber-100);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.35);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.primary-button.slim {
  min-height: 42px;
  padding: 0 18px;
}

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  z-index: 3;
}

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

.hero-dot.is-active {
  background: var(--amber-400);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 4;
  width: min(960px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid rgba(253, 230, 138, 0.32);
  border-radius: 22px;
  background: rgba(69, 26, 3, 0.76);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(16px);
}

.hero-search label {
  display: block;
  margin-bottom: 10px;
  color: var(--amber-200);
  font-weight: 800;
}

.hero-search div {
  display: flex;
  gap: 12px;
}

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

.section-block {
  padding: 72px 0;
}

.section-block.warm,
.section-block.cream {
  width: 100%;
  padding-left: max(16px, calc((100% - 1280px) / 2));
  padding-right: max(16px, calc((100% - 1280px) / 2));
}

.section-block.warm {
  background: #ffffff;
}

.section-block.cream {
  background: linear-gradient(135deg, var(--amber-100), #ffffff 64%);
}

.section-block.deep {
  width: 100%;
  padding-left: max(16px, calc((100% - 1280px) / 2));
  padding-right: max(16px, calc((100% - 1280px) / 2));
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.22), transparent 32%),
    linear-gradient(135deg, var(--amber-950), var(--amber-900));
}

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

.section-head h1,
.section-head h2,
.page-hero h1,
.detail-content h1 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  color: var(--amber-950);
  line-height: 1.18;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.section-head p,
.page-hero p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--amber-800);
}

.section-head.invert h2,
.section-head.invert p {
  color: #ffffff;
}

.section-more {
  min-width: max-content;
  color: var(--amber-900);
  background: var(--amber-100);
  border: 1px solid rgba(180, 83, 9, 0.24);
}

.section-more.light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(180, 83, 9, 0.12);
  border-radius: var(--radius-md);
  background: #ffffff;
  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-deep);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 22%, rgba(253, 230, 138, 0.75), transparent 32%),
    linear-gradient(135deg, var(--amber-800), var(--amber-950));
}

.poster-wrap img,
.category-tile img,
.overview-cover img,
.side-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.25s ease;
}

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.overview-cover:hover img,
.side-cover:hover img {
  transform: scale(1.08);
}

.play-float {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.88);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.30);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  background: rgba(217, 119, 6, 0.92);
  font-size: 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ef4444, var(--amber-500));
}

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

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h2 {
  margin: 10px 0 8px;
  color: var(--amber-950);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.overview-links a:hover,
.breadcrumb a:hover,
.detail-tags a:hover {
  color: var(--amber-600);
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: #5f3b14;
  font-size: 14px;
}

.tag-row span {
  background: var(--amber-100);
  color: var(--amber-800);
  padding: 5px 9px;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 22px;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  background: var(--amber-950);
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.64;
}

.category-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(69, 26, 3, 0.94), rgba(69, 26, 3, 0.08));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 26px;
  font-family: "Noto Serif SC", serif;
}

.category-tile em {
  margin-top: 8px;
  color: var(--amber-100);
  font-style: normal;
  font-size: 14px;
}

.page-main {
  padding: 34px 0 74px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 34px;
  padding: 54px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 20%, rgba(253, 230, 138, 0.40), transparent 30%),
    linear-gradient(135deg, #ffffff, var(--amber-100));
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.category-hero,
.ranking-hero,
.search-hero {
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.20), transparent 32%),
    linear-gradient(135deg, var(--amber-950), var(--amber-800));
}

.category-hero h1,
.category-hero p,
.ranking-hero h1,
.ranking-hero p,
.search-hero h1,
.search-hero p {
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--amber-800);
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  margin-top: 26px;
}

.search-page-form {
  grid-template-columns: 1fr 120px;
  max-width: 760px;
}

.filter-bar input,
.filter-bar select {
  color: var(--amber-950);
  background: rgba(255, 255, 255, 0.92);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.overview-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--amber-700), var(--amber-950));
}

.overview-cover span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.86);
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 8px 0 10px;
  color: var(--amber-950);
  font-family: "Noto Serif SC", serif;
  font-size: 28px;
}

.category-overview-card p {
  color: var(--amber-800);
}

.overview-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.overview-links a {
  color: #4a2e0b;
  font-weight: 700;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow-deep);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: transparent;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.28), transparent 26%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
}

.player-play-icon,
.player-play-text {
  position: relative;
  z-index: 2;
}

.player-play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
  font-size: 30px;
}

.player-play-text {
  font-size: 18px;
  font-weight: 900;
}

.detail-content,
.side-card {
  margin-top: 24px;
  padding: 32px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-content h1 {
  font-size: clamp(30px, 4vw, 48px);
}

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

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

.lead-text {
  color: var(--amber-800);
  font-size: 20px;
  font-weight: 700;
}

.detail-content h2,
.side-card h2 {
  margin: 28px 0 10px;
  color: var(--amber-950);
  font-family: "Noto Serif SC", serif;
}

.detail-content p,
.side-card p {
  color: #4a2e0b;
}

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

.detail-tags a {
  background: var(--amber-100);
  color: var(--amber-800);
}

.watch-side {
  position: sticky;
  top: 104px;
  align-self: start;
}

.side-cover {
  display: block;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--amber-700), var(--amber-950));
  box-shadow: var(--shadow-soft);
}

.related-block {
  padding-top: 48px;
}

.site-footer {
  color: var(--amber-100);
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 32%),
    linear-gradient(180deg, var(--amber-900), var(--amber-950));
  border-top: 2px solid rgba(251, 191, 36, 0.36);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: 36px;
  padding: 48px 0;
}

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

.footer-brand strong {
  font-family: "Ma Shan Zheng", cursive;
  font-size: 28px;
}

.footer-brand p,
.footer-links a,
.footer-bottom {
  color: var(--amber-300);
}

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

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

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1180px) {
  .header-search {
    min-width: 240px;
  }

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

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

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

  .watch-side {
    position: static;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 22px;
    align-items: start;
  }

  .side-card {
    margin-top: 0;
  }
}

@media (max-width: 880px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .header-inner {
    height: 68px;
  }

  .brand-text strong {
    font-size: 24px;
  }

  .brand-text small {
    display: none;
  }

  .hero-slider,
  .hero-content {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 64px;
    padding-bottom: 190px;
  }

  .hero-search div,
  .section-head,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search div {
    display: grid;
  }

  .section-head {
    display: flex;
  }

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

  .category-overview-card,
  .watch-side,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .overview-cover,
  .side-cover {
    max-width: 260px;
  }

  .page-hero,
  .detail-content,
  .side-card {
    padding: 24px;
    border-radius: 22px;
  }

  .filter-bar,
  .search-page-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section-block,
  .page-main {
    width: min(100% - 22px, 1280px);
  }

  .section-block.warm,
  .section-block.cream,
  .section-block.deep {
    padding-left: 11px;
    padding-right: 11px;
  }

  .movie-grid,
  .latest-grid,
  .library-grid,
  .rank-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h2 {
    font-size: 38px;
  }

  .hero-actions {
    width: 100%;
  }

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