:root {
  --page-bg: #f8fafc;
  --text-main: #1f2937;
  --text-soft: #6b7280;
  --text-light: #f9fafb;
  --brand-a: #ef4444;
  --brand-b: #ec4899;
  --brand-c: #8b5cf6;
  --brand-d: #06b6d4;
  --card-bg: #ffffff;
  --line: rgba(148, 163, 184, 0.28);
  --shadow: 0 18px 45px rgba(30, 41, 59, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 32rem),
    linear-gradient(180deg, #fff7fb 0%, #f8fafc 38%, #eef2ff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.95), rgba(236, 72, 153, 0.95), rgba(139, 92, 246, 0.95));
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(124, 58, 237, 0.22);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c2d12;
  background: linear-gradient(135deg, #fde68a, #fda4af);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.brand-text {
  font-size: 22px;
  white-space: nowrap;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.18);
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.header-search {
  width: 280px;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.header-search input,
.mobile-search input,
.search-panel input,
.filter-panel input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text-main);
  background: #ffffff;
}

.header-search input {
  padding: 10px 12px;
  border-radius: 999px 0 0 999px;
  background: rgba(255, 255, 255, 0.94);
}

.header-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.24);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.mobile-search input {
  padding: 12px 14px;
  border-radius: 14px;
}

.hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  background: #0f172a;
}

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

.hero-slide {
  opacity: 0;
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-size: cover;
  transition: opacity 0.8s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.2)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent 58%);
}

.hero-content {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 86px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7ed;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(236, 72, 153, 0.95));
  box-shadow: 0 12px 25px rgba(236, 72, 153, 0.22);
}

.eyebrow.dark {
  color: #be123c;
  background: rgba(244, 114, 182, 0.15);
  box-shadow: none;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #ec4899, #8b5cf6);
  box-shadow: 0 20px 38px rgba(236, 72, 153, 0.32);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 42px rgba(124, 58, 237, 0.28);
}

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

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

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

.hero-quick-links {
  position: absolute;
  right: calc((100% - min(1240px, calc(100% - 32px))) / 2);
  bottom: 84px;
  z-index: 3;
  display: grid;
  gap: 10px;
}

.hero-quick-links a {
  min-width: 130px;
  padding: 11px 16px;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 800;
  text-align: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.hero-quick-links a:hover {
  background: rgba(255, 255, 255, 0.24);
}

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

.page-section {
  padding: 54px 0;
}

.page-shell {
  padding: 44px 0 64px;
}

.search-panel {
  margin-top: -38px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel h2,
.section-head h2,
.page-title-block h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #ef4444, #ec4899, #8b5cf6);
  background-clip: text;
  color: transparent;
}

.search-panel form {
  display: flex;
  gap: 10px;
}

.search-panel input {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.search-panel button {
  min-width: 108px;
}

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

.section-head.compact h2 {
  font-size: 34px;
}

.section-head a {
  color: #7c3aed;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: 0 12px 30px rgba(30, 41, 59, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 55px rgba(30, 41, 59, 0.17);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e5e7eb;
}

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

.movie-card:hover .poster-link img,
.wide-card:hover img,
.compact-card:hover img {
  transform: scale(1.08);
}

.rating-badge,
.duration-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.rating-badge {
  top: 10px;
  right: 10px;
  color: #fde68a;
}

.duration-badge {
  left: 10px;
  bottom: 10px;
}

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

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #7c3aed;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta,
.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #be123c;
  font-size: 12px;
  font-weight: 800;
  background: #ffe4e6;
}

.wide-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 330px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
}

.wide-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 14px 35px rgba(30, 41, 59, 0.14);
  scroll-snap-align: start;
}

.wide-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.wide-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.1));
}

.wide-card-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
}

.wide-card-info strong,
.compact-card strong,
.rank-info strong,
.rank-page-main strong {
  display: block;
  line-height: 1.35;
}

.wide-card-info em,
.compact-card small,
.rank-info em,
.rank-page-main em {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 13px;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  box-shadow: 0 16px 38px rgba(30, 41, 59, 0.16);
}

.category-tile::before,
.category-preview-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.76), rgba(124, 58, 237, 0.66)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.86), transparent 70%);
}

.category-tile span,
.category-tile strong,
.category-preview-cover span {
  position: relative;
  z-index: 1;
}

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

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

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
}

.rank-list,
.rank-page-list,
.side-card,
.detail-card,
.filter-panel,
.category-preview-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.rank-list {
  padding: 16px;
}

.rank-row,
.rank-page-row {
  display: grid;
  align-items: center;
  gap: 14px;
  color: var(--text-main);
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-row:hover,
.rank-page-row:hover {
  background: #fdf2f8;
  transform: translateX(3px);
}

.rank-num,
.rank-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  color: #ef4444;
}

.rank-row img {
  width: 74px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.collection-grid {
  display: grid;
  gap: 14px;
}

.page-title-block {
  margin-bottom: 28px;
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.page-title-block p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
}

.category-preview-grid {
  display: grid;
  gap: 24px;
}

.category-preview-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
}

.category-preview-cover {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: end;
  padding: 26px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.category-preview-cover span {
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.category-preview-body {
  padding: 26px;
}

.category-preview-body h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.category-preview-body p {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.8;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.compact-card img {
  width: 88px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.compact-card small {
  color: var(--text-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #64748b;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #7c3aed;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 22px;
}

.filter-panel input {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 0;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 999px;
  color: #475569;
  font-weight: 900;
  background: #f1f5f9;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
}

.movie-item.is-hidden {
  display: none;
}

.rank-page-list {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.rank-page-row {
  grid-template-columns: 54px 96px 1fr 110px;
  padding: 12px;
}

.rank-page-row img {
  width: 96px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-page-main em {
  color: var(--text-soft);
}

.rank-page-meta {
  color: #ef4444;
  font-weight: 1000;
  text-align: right;
}

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

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

.video-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
}

.video-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #020617;
  cursor: pointer;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 1000;
  font-size: 20px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.18));
}

.video-stage.is-playing .play-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #ec4899, #8b5cf6);
  box-shadow: 0 20px 46px rgba(236, 72, 153, 0.35);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.player-message.is-visible {
  display: block;
}

.detail-card {
  padding: 28px;
}

.detail-heading {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 24px;
  align-items: start;
}

.detail-heading h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
}

.detail-cover {
  width: 190px;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
}

.detail-meta-row {
  margin-top: 22px;
}

.detail-meta-row .meta-pill {
  color: #475569;
  background: #f1f5f9;
  border: 0;
}

.detail-tags {
  margin: 18px 0 8px;
}

.article-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.article-block p {
  margin: 0;
  color: #475569;
  line-height: 2;
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 20px;
}

.side-card {
  padding: 20px;
}

.side-link {
  display: block;
  padding: 13px 14px;
  margin-top: 10px;
  border-radius: 14px;
  color: #7c3aed;
  font-weight: 900;
  background: #f5f3ff;
}

.side-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.site-footer {
  margin-top: 48px;
  color: #e5e7eb;
  background: linear-gradient(135deg, #111827, #312e81, #831843);
}

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

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
}

.footer-inner p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

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

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

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

  .two-column-section,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

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

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

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

  .hero {
    min-height: 620px;
  }

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

  .hero-quick-links {
    left: 16px;
    right: 16px;
    bottom: 58px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-quick-links a {
    min-width: 0;
  }

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

  .search-panel form {
    flex-direction: column;
  }

  .category-preview-card,
  .detail-heading {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: 160px;
  }

  .rank-page-row {
    grid-template-columns: 42px 74px 1fr;
  }

  .rank-page-row img {
    width: 74px;
    height: 52px;
  }

  .rank-page-meta {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .nav-wrap,
  .mobile-panel,
  .page-section,
  .page-shell,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1240px);
  }

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

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

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

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

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    display: none;
  }

  .page-title-block,
  .detail-card,
  .side-card,
  .filter-panel,
  .search-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .wide-scroll {
    grid-auto-columns: minmax(235px, 280px);
  }

  .video-stage {
    border-radius: 18px;
  }

  .play-icon {
    width: 62px;
    height: 62px;
  }
}
