:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #ffedd5;
  --line: #fed7aa;
  --orange: #f97316;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(154, 52, 18, 0.16);
  --shadow-soft: 0 12px 30px rgba(124, 45, 18, 0.10);
  --radius: 24px;
  --radius-sm: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.22), transparent 36rem),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 50%, #fffbeb 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.26);
  box-shadow: 0 8px 24px rgba(124, 45, 18, 0.08);
}

.nav-wrap {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose), var(--amber));
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--orange), var(--rose), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-search {
  width: 300px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(124, 45, 18, 0.08);
}

.nav-search input,
.mobile-search input,
.filter-search input,
.filter-selects select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.nav-search input {
  padding: 8px 12px;
}

.nav-search button,
.mobile-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: #374151;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid rgba(251, 146, 60, 0.24);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid #fed7aa;
}

.mobile-search input {
  padding: 8px 10px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 42px;
  padding: 92px max(24px, calc((100vw - 1280px) / 2 + 24px)) 86px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.22)),
    radial-gradient(circle at 22% 34%, rgba(249, 115, 22, 0.48), transparent 28rem),
    radial-gradient(circle at 70% 28%, rgba(244, 63, 94, 0.32), transparent 26rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  color: #fed7aa;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  max-width: 780px;
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.hero-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.65;
}

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

.hero-tags {
  margin-top: 24px;
}

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

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  padding: 8px 13px;
}

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

.primary-btn,
.ghost-btn,
.text-btn,
.rank-action,
.category-block-head a,
.section-title.with-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  padding: 14px 24px;
  box-shadow: 0 16px 35px rgba(244, 63, 94, 0.34);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  padding: 13px 22px;
}

.text-btn {
  color: #fed7aa;
  padding: 12px 0;
}

.primary-btn:hover,
.ghost-btn:hover,
.rank-action:hover,
.category-block-head a:hover,
.section-title.with-action a:hover {
  transform: translateY(-2px);
}

.hero-poster {
  justify-self: end;
  width: min(100%, 390px);
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  border-radius: 50%;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.34);
}

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

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

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

.section-wrap,
.filter-panel,
.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
}

.top-strip {
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

.section-title {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title > span {
  width: 6px;
  height: 38px;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange), var(--rose));
}

.section-title h2,
.category-block h2,
.side-panel h2,
.detail-card h2 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-title p,
.category-block p,
.page-hero p,
.card-body p,
.rank-info p,
.detail-card p,
.footer-brand p {
  color: var(--muted);
  line-height: 1.75;
}

.section-title p {
  margin: 4px 0 0;
}

.section-title.with-action {
  align-items: flex-start;
}

.section-title.with-action a {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  padding: 10px 18px;
}

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

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

.mini-card {
  display: block;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mini-card:hover,
.movie-card:hover,
.category-tile:hover,
.rank-row:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.mini-poster {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: #fed7aa;
}

.mini-poster img,
.card-cover img,
.rank-thumb img,
.poster-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mini-card:hover img,
.movie-card:hover .card-cover img,
.rank-row:hover .rank-thumb img,
.category-tile:hover img {
  transform: scale(1.06);
}

.mini-poster i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 30px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease;
}

.mini-card:hover i {
  opacity: 1;
}

.mini-card strong {
  display: -webkit-box;
  margin-top: 10px;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
  min-height: 38px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-card small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
}

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

.category-tile {
  min-height: 220px;
  overflow: hidden;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 237, 213, 0.9)),
    radial-gradient(circle at top right, rgba(244, 63, 94, 0.18), transparent 18rem);
  box-shadow: var(--shadow-soft);
}

.tile-posters {
  height: 116px;
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
}

.tile-posters img {
  width: 86px;
  height: 116px;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid #fff;
  box-shadow: 0 10px 20px rgba(124, 45, 18, 0.18);
}

.tile-posters img + img {
  margin-left: -22px;
}

.category-tile strong {
  display: block;
  font-size: 22px;
  font-weight: 950;
}

.category-tile em {
  display: block;
  margin-top: 6px;
  color: #9a3412;
  font-style: normal;
  font-weight: 700;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fed7aa;
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 42px;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-icon {
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body h2 a:hover,
.rank-info h2 a:hover {
  color: var(--orange);
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.rank-info div,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta span,
.detail-meta span,
.rank-info div span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags a {
  color: #ea580c;
  background: #ffedd5;
  padding: 5px 9px;
}

.page-hero {
  max-width: 1280px;
  margin: 34px auto 0;
  padding: 64px 24px;
  border-radius: 34px;
}

.simple-hero,
.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(124, 45, 18, 0.84)),
    radial-gradient(circle at top right, rgba(244, 63, 94, 0.48), transparent 28rem);
  color: #fff;
  box-shadow: var(--shadow);
}

.category-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  align-items: center;
}

.page-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.slim-actions {
  margin-top: 24px;
}

.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.filter-panel {
  padding-top: 34px;
  padding-bottom: 0;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.filter-search,
.filter-selects select {
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.filter-search input {
  padding: 15px 18px;
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.filter-selects select {
  min-width: 140px;
  padding: 15px 16px;
}

.filter-empty {
  display: none;
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: #9a3412;
  font-weight: 800;
}

.filter-empty.is-visible {
  display: block;
}

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

.category-block {
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.category-block-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.category-block-head p {
  margin: 8px 0 0;
}

.category-block-head a {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  padding: 10px 18px;
  flex: none;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 94px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-weight: 950;
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
}

.rank-info h2 {
  margin: 0 0 7px;
  font-size: 20px;
  font-weight: 950;
}

.rank-info p {
  margin: 0 0 10px;
}

.rank-action {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  padding: 10px 18px;
}

.detail-layout {
  padding-top: 30px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: #9a3412;
  font-weight: 800;
}

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

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

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.player-card,
.detail-card,
.poster-panel,
.side-panel {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
  padding: 14px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 22px;
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.24), transparent 18rem),
    rgba(0, 0, 0, 0.42);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
  font-size: 32px;
}

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

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.lead-text {
  margin: 18px 0 18px;
  color: #374151;
  font-size: 19px;
  font-weight: 700;
}

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

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

.detail-card h2 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 24px;
}

.detail-card p {
  margin: 0;
  font-size: 16px;
}

.poster-panel {
  padding: 16px;
}

.poster-panel img {
  aspect-ratio: 3 / 4;
  border-radius: 22px;
}

.block-btn {
  display: flex;
  width: 100%;
  margin-top: 14px;
}

.side-panel {
  padding: 20px;
}

.side-panel h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.side-recommend {
  display: grid;
  gap: 12px;
}

.side-recommend .mini-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.side-recommend .mini-poster {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.side-recommend .mini-card strong {
  margin: 0;
  min-height: 0;
}

.side-recommend .mini-card small {
  grid-column: 2;
}

.site-footer {
  margin-top: 54px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #7c2d12 56%, #881337);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 28px;
}

.footer-logo .brand-mark {
  width: 30px;
  height: 30px;
}

.footer-column,
.footer-tags,
.footer-brand {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h2,
.footer-tags h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.footer-brand p,
.footer-column a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-column a:hover {
  color: #fed7aa;
}

.footer-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
}

.is-hidden {
  display: none !important;
}

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

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

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

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

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

  .detail-side {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

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

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

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

  .hero-carousel {
    min-height: 780px;
  }

  .hero-poster {
    justify-self: start;
    width: 260px;
    border-radius: 26px;
  }

  .hero-content h1 {
    font-size: 46px;
  }

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

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

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

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

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

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

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

@media (max-width: 620px) {
  .nav-wrap {
    height: 62px;
    padding: 0 16px;
  }

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

  .hero-carousel {
    min-height: 710px;
  }

  .hero-slide {
    padding: 52px 18px 84px;
    gap: 24px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

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

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

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

  .section-wrap,
  .filter-panel,
  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero {
    margin: 18px 16px 0;
    padding: 38px 18px;
    border-radius: 26px;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .card-body h2 {
    font-size: 15px;
    min-height: 42px;
  }

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

  .card-meta,
  .tag-row {
    display: none;
  }

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

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

  .rank-row {
    grid-template-columns: 42px 64px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 13px;
  }

  .rank-info h2 {
    font-size: 16px;
  }

  .rank-info p {
    display: none;
  }

  .detail-card {
    padding: 20px;
  }

  .detail-card h1 {
    font-size: 32px;
  }

  .lead-text {
    font-size: 16px;
  }

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