:root {
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --indigo-700: #4338ca;
  --purple-700: #7e22ce;
  --amber-500: #f59e0b;
  --orange-600: #ea580c;
  --stone-950: #0c0a09;
  --stone-800: #292524;
  --stone-600: #57534e;
  --stone-300: #d6d3d1;
  --stone-100: #f5f5f4;
  --white: #ffffff;
  --shadow-sm: 0 8px 20px rgba(30, 64, 175, 0.08);
  --shadow-md: 0 18px 45px rgba(30, 64, 175, 0.16);
  --shadow-lg: 0 30px 80px rgba(30, 41, 59, 0.26);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-800);
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 43%, #eef2ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img, video {
  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: linear-gradient(90deg, rgba(239, 246, 255, 0.96), rgba(238, 242, 255, 0.96), rgba(250, 245, 255, 0.96));
  border-bottom: 2px solid rgba(191, 219, 254, 0.85);
  box-shadow: 0 10px 28px rgba(30, 64, 175, 0.12);
  backdrop-filter: blur(16px);
}

.header-main {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--purple-700));
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: var(--shadow-md);
}

.brand-text strong {
  display: block;
  font-size: 26px;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--blue-900), var(--purple-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  margin-top: 4px;
  color: var(--blue-800);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--blue-900);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.mobile-link:hover {
  color: var(--blue-800);
  background: rgba(219, 234, 254, 0.8);
}

.nav-link.is-active,
.mobile-link.is-active {
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-700), var(--indigo-700));
  box-shadow: 0 10px 24px rgba(67, 56, 202, 0.28);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--blue-900);
  background: rgba(219, 234, 254, 0.68);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

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

.mobile-link {
  padding: 12px 14px;
}

.channel-strip {
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(191, 219, 254, 0.65);
}

.channel-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.channel-scroll a {
  flex: 0 0 auto;
  padding: 8px 14px;
  color: var(--blue-800);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(239, 246, 255, 0.86);
  transition: background 0.2s ease, transform 0.2s ease;
}

.channel-scroll a:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  color: var(--white);
  background: radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.28), transparent 30%), linear-gradient(135deg, #0f172a 0%, #1e3a8a 46%, #581c87 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.72;
  pointer-events: none;
}

.hero::before {
  width: 410px;
  height: 410px;
  right: -140px;
  top: -120px;
  background: rgba(168, 85, 247, 0.34);
}

.hero::after {
  width: 340px;
  height: 340px;
  left: -130px;
  bottom: -90px;
  background: rgba(59, 130, 246, 0.24);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 46px;
  padding: 76px 0 64px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.hero-title {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero-title span {
  color: #fbbf24;
}

.hero-lead {
  max-width: 660px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 850;
  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(90deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.35);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  margin-top: 28px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: none;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.hero-search button {
  min-height: 46px;
  padding: 0 18px;
  color: var(--white);
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--blue-700), var(--indigo-700));
  font-weight: 800;
}

.hero-panel {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(26px) scale(0.985);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e3a8a, #7e22ce);
}

.hero-slide-body {
  padding: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.88));
}

.hero-slide-body h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.18;
}

.hero-slide-body p {
  margin: 0 0 14px;
  color: #dbeafe;
}

.hero-slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-slide-tags span,
.tag-row span,
.detail-tags span,
.category-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.hero-slide-tags span {
  padding: 5px 9px;
  color: #fffbeb;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.26);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 30px;
  background: #fbbf24;
}

.hero-arrows {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 22% 18%, rgba(251, 191, 36, 0.24), transparent 28%), linear-gradient(100deg, var(--blue-950), var(--indigo-700), var(--purple-700));
}

.page-hero .container {
  padding: 54px 0;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 17px;
}

.section {
  padding: 58px 0;
}

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

.section-head h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--stone-600);
}

.section-link {
  flex: 0 0 auto;
  color: var(--blue-700);
  font-weight: 850;
}

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

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: var(--shadow-md);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #7e22ce);
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-700), var(--indigo-700));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(30, 64, 175, 0.24);
}

.card-body {
  padding: 15px 15px 17px;
}

.card-body h3 {
  margin: 0 0 6px;
  color: var(--stone-950);
  font-size: 17px;
  line-height: 1.28;
  font-weight: 850;
}

.card-body h3 a:hover {
  color: var(--blue-700);
}

.meta-line {
  margin: 0 0 9px;
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 750;
}

.card-desc {
  min-height: 54px;
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 13px;
}

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

.tag-row span,
.detail-tags span,
.category-badge {
  padding: 5px 8px;
  color: #92400e;
  background: #fef3c7;
}

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

.category-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  padding: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-800), var(--indigo-700) 54%, var(--purple-700));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -54px;
  bottom: -54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #dbeafe;
  font-size: 14px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 14px;
  font-weight: 900;
}

.rank-item img {
  width: 92px;
  height: 132px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e3a8a, #7e22ce);
}

.rank-copy h2,
.rank-copy h3 {
  margin: 0 0 8px;
  color: var(--stone-950);
  font-size: 21px;
  line-height: 1.22;
}

.rank-copy p {
  margin: 0 0 12px;
  color: var(--stone-600);
}

.heat-pill {
  padding: 8px 12px;
  color: var(--blue-900);
  background: #dbeafe;
  border-radius: 999px;
  font-weight: 850;
}

.side-panel {
  align-self: start;
  position: sticky;
  top: 130px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.side-panel h2,
.side-panel h3 {
  margin: 0 0 16px;
  color: var(--blue-950);
  font-size: 22px;
  font-weight: 900;
}

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

.mini-card {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.mini-card:hover {
  background: #eff6ff;
}

.mini-card img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a, #7e22ce);
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  color: var(--stone-950);
  line-height: 1.25;
}

.mini-card em {
  margin-top: 4px;
  color: var(--stone-600);
  font-size: 12px;
  font-style: normal;
}

.filter-box {
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 190px 150px;
  gap: 12px;
}

.filter-row input,
.filter-row select,
.filter-row button {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 13px;
  border: 2px solid #e7e5e4;
  background: var(--white);
  outline: none;
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--amber-500);
}

.filter-row button {
  color: var(--white);
  border: 0;
  background: linear-gradient(90deg, var(--blue-700), var(--indigo-700));
  font-weight: 850;
}

.detail-hero {
  color: var(--white);
  background: radial-gradient(circle at 18% 16%, rgba(251, 191, 36, 0.18), transparent 28%), linear-gradient(120deg, #0f172a, #1e3a8a 48%, #581c87);
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 58px 0;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #1e3a8a, #7e22ce);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #dbeafe;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-info .lead {
  max-width: 760px;
  margin: 0 0 18px;
  color: #dbeafe;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 7px 10px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

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

.player-wrap {
  overflow: hidden;
  background: #020617;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-box video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background: #020617;
  z-index: 3;
}

.play-cover.is-hidden {
  display: none;
}

.play-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.play-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

.play-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  color: var(--white);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 24px 48px rgba(234, 88, 12, 0.45);
  font-size: 34px;
}

.play-title {
  padding: 18px 22px;
  color: #e0f2fe;
  background: linear-gradient(90deg, #020617, #0f172a);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-weight: 800;
}

.article-panel {
  padding: 28px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-panel h2 {
  margin: 0 0 14px;
  color: var(--blue-950);
  font-size: 28px;
  font-weight: 900;
}

.article-panel p {
  margin: 0 0 16px;
  color: var(--stone-600);
  font-size: 16px;
}

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

.site-footer {
  margin-top: 68px;
  color: #dbeafe;
  background: linear-gradient(135deg, #1c1917, #172554 58%, #1c1917);
  border-top: 4px solid var(--blue-700);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 22px;
}

.footer-brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue-700), var(--purple-700));
  border-radius: 12px;
}

.footer-grid p {
  max-width: 470px;
  margin: 0;
  color: #bfdbfe;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-links a {
  padding: 7px 10px;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.footer-bottom {
  padding: 16px;
  text-align: center;
  color: #93c5fd;
  border-top: 1px solid rgba(147, 197, 253, 0.22);
}

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

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .hero-inner,
  .rank-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 46px 0 48px;
  }

  .hero-panel {
    min-height: 520px;
  }

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

  .detail-cover {
    max-width: 360px;
  }

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

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

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

  .rank-item .heat-pill {
    grid-column: 3;
    justify-self: start;
  }

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

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

  .header-main {
    height: 70px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

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

  .hero-search,
  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search button,
  .btn {
    width: 100%;
  }

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

  .hero-slide img {
    height: 330px;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-desc {
    display: none;
  }

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

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

  .rank-item {
    grid-template-columns: 38px 72px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .rank-item img {
    width: 72px;
    height: 104px;
  }

  .detail-info h1 {
    font-size: 36px;
  }

  .article-panel {
    padding: 20px;
  }
}
