:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #059669;
  --brand-deep: #047857;
  --brand-soft: #d1fae5;
  --cyan: #0891b2;
  --amber: #f59e0b;
  --rose: #e11d48;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #eefaf6 42%, #ffffff 100%);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

img {
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #064e3b;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.32);
  font-size: 15px;
}

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

.nav-link,
.mobile-link {
  color: #334155;
  font-weight: 700;
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid #dbeafe;
  background: #f8fafc;
  border-radius: 999px;
}

.header-search input,
.mobile-search input,
.quick-search input,
.filter-bar input {
  outline: none;
  border: none;
  background: transparent;
  color: #0f172a;
}

.header-search input {
  width: 240px;
  padding: 9px 12px;
}

.header-search button,
.mobile-search button,
.quick-search button {
  border: none;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  border-radius: 999px;
  font-weight: 800;
  padding: 9px 16px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.22);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
}

.mobile-nav {
  display: none;
  padding: 14px 24px 22px;
  background: white;
  border-top: 1px solid var(--line);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin-bottom: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.mobile-search input {
  flex: 1;
  padding: 9px 10px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  background: #020617;
}

.hero-stage {
  position: relative;
  min-height: 720px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.7s ease,
    transform 1s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 72% 42%,
      rgba(16, 185, 129, 0.34),
      transparent 31%
    ),
    linear-gradient(
      90deg,
      rgba(2, 6, 23, 0.96) 0%,
      rgba(15, 23, 42, 0.82) 43%,
      rgba(15, 23, 42, 0.28) 100%
    ),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 38%);
}

.hero-content {
  position: relative;
  max-width: 1280px;
  min-height: 720px;
  margin: 0 auto;
  padding: 128px 24px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 58px;
  align-items: center;
  color: white;
}

.hero-copy {
  max-width: 760px;
}

.hero-label,
.section-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(167, 243, 208, 0.26);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero h2 {
  margin-top: 24px;
  color: #a7f3d0;
  font-size: clamp(26px, 3.1vw, 44px);
  line-height: 1.1;
  font-weight: 900;
}

.hero p {
  margin-top: 18px;
  max-width: 690px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.86;
}

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

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

.hero-tags span,
.tag-row span,
.chip-row a,
.quick-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 750;
}

.hero-tags span {
  padding: 8px 13px;
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.primary-btn,
.ghost-btn,
.outline-link,
.text-link {
  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 {
  min-height: 48px;
  padding: 0 22px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.35);
}

.primary-btn:hover,
.ghost-btn:hover,
.outline-link:hover,
.text-link:hover {
  transform: translateY(-2px);
}

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

.ghost-btn {
  min-height: 48px;
  padding: 0 22px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 15px;
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: min(1280px, calc(100% - 48px));
  transform: translateX(-50%);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  z-index: 4;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
  width: 32px;
  background: #34d399;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(520px, 48vw);
}

.hero-thumb {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  color: white;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(14px);
}

.hero-thumb.active {
  border-color: #6ee7b7;
  background: rgba(5, 150, 105, 0.38);
}

.hero-thumb img {
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  font-weight: 800;
}

.quick-panel {
  position: relative;
  z-index: 5;
  margin-top: -48px;
  padding: 0 24px;
}

.quick-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 1.2fr;
  gap: 24px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search label {
  display: block;
  margin-bottom: 10px;
  color: #064e3b;
  font-size: 14px;
  font-weight: 900;
}

.quick-search div {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 20px;
}

.quick-search input {
  flex: 1;
  padding: 10px 12px;
}

.quick-links a,
.chip-row a {
  padding: 9px 13px;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.soft-section {
  max-width: none;
  padding-left: max(24px, calc((100% - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100% - 1280px) / 2 + 24px));
  padding-bottom: 72px;
  background: linear-gradient(135deg, #ecfeff, #f0fdf4);
}

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

.section-head h2 {
  margin-top: 12px;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head p {
  margin-top: 8px;
  color: var(--muted);
}

.section-kicker {
  color: #047857;
  background: #d1fae5;
  border-color: #a7f3d0;
}

.section-more,
.text-link {
  color: var(--brand-deep);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--soft-shadow);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.compact-card .poster-link img,
.side-list .poster-link img {
  aspect-ratio: 3 / 4;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 60%);
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-gradient {
  opacity: 1;
}

.poster-type,
.rank-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  font-size: 12px;
}

.poster-type {
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

.poster-play {
  left: 12px;
  bottom: 12px;
  opacity: 0;
  transform: translateY(8px);
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

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

.movie-info h3 a:hover,
.rank-body h3 a:hover,
.overview-card h2 a:hover {
  color: var(--brand-deep);
}

.movie-line {
  margin-top: 8px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.meta-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

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

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

.tag-row span {
  padding: 5px 9px;
  color: #047857;
  background: #ecfdf5;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  color: white;
  box-shadow: var(--soft-shadow);
}

.category-tile img {
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.12));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.category-tile strong {
  bottom: 62px;
  font-size: 24px;
  font-weight: 950;
}

.category-tile em {
  bottom: 22px;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.45;
  font-style: normal;
}

.rank-section {
  padding-bottom: 20px;
}

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

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

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  font-size: 18px;
  font-weight: 950;
}

.rank-thumb img {
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 950;
}

.rank-body p {
  color: var(--muted);
  line-height: 1.62;
}

.outline-link {
  min-height: 40px;
  padding: 0 16px;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 70px;
  color: white;
  background:
    radial-gradient(
      circle at 78% 12%,
      rgba(34, 211, 238, 0.35),
      transparent 32%
    ),
    linear-gradient(135deg, #064e3b, #0f766e 48%, #0f172a);
}

.page-hero > div {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  margin-top: 18px;
  max-width: 760px;
  color: #d1fae5;
  font-size: 18px;
  line-height: 1.8;
}

.filter-section {
  padding-top: 42px;
}

.filter-bar {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.filter-bar input {
  flex: 1;
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.large-filter {
  align-items: stretch;
  flex-direction: column;
}

.large-filter input {
  width: 100%;
}

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

.overview-card {
  overflow: hidden;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.overview-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 150px;
  overflow: hidden;
}

.overview-covers img {
  height: 150px;
  object-fit: cover;
}

.overview-card > div {
  padding: 20px;
}

.overview-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 950;
}

.overview-card p {
  min-height: 50px;
  color: var(--muted);
  line-height: 1.68;
}

.full-rank-list {
  padding-bottom: 46px;
}

.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

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

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

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

.detail-main,
.detail-side,
.detail-card,
.side-box {
  min-width: 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 32px 80px rgba(2, 6, 23, 0.28);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  color: white;
  border: none;
  background: radial-gradient(
    circle,
    rgba(5, 150, 105, 0.24),
    rgba(2, 6, 23, 0.74)
  );
  cursor: pointer;
}

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

.play-ring {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 20px 45px rgba(5, 150, 105, 0.42);
  font-size: 30px;
  text-indent: 4px;
}

.play-cover strong {
  max-width: 90%;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 950;
  text-align: center;
}

.play-cover em {
  font-style: normal;
  color: #d1fae5;
  font-weight: 800;
}

.detail-card,
.side-box {
  margin-top: 22px;
  padding: 24px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.detail-card h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-card h2,
.side-box h2 {
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 950;
}

.detail-card p {
  color: #334155;
  font-size: 16px;
  line-height: 1.9;
}

.lead-text {
  color: #047857 !important;
  font-weight: 800;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #065f46;
  background: #ecfdf5;
  font-weight: 800;
}

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

.side-poster {
  display: block;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.side-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.side-list .movie-card {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
}

.side-list .movie-info {
  padding: 12px;
}

.side-list .movie-line,
.side-list .tag-row {
  display: none;
}

.side-list .meta-row {
  margin-top: 8px;
}

.site-footer {
  margin-top: 80px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #064e3b);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5fr;
  gap: 38px;
}

.footer-logo {
  color: white;
  margin-bottom: 12px;
}

.footer-inner p {
  max-width: 560px;
  color: #cbd5e1;
  line-height: 1.8;
}

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

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

[data-card].is-hidden {
  display: none;
}

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
  }

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

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

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero,
  .hero-stage,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 110px;
    padding-bottom: 160px;
  }

  .hero-poster {
    display: none;
  }

  .hero-controls {
    align-items: start;
    flex-direction: column;
  }

  .hero-thumbs {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .rank-row .outline-link {
    grid-column: 2 / -1;
    width: fit-content;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .logo {
    font-size: 19px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero,
  .hero-stage,
  .hero-content {
    min-height: 700px;
  }

  .hero-content {
    padding: 94px 18px 150px;
  }

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

  .hero h2 {
    font-size: 26px;
  }

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

  .hero-thumbs {
    display: none;
  }

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

  .quick-inner,
  .quick-search div,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

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

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 15px;
  }

  .movie-line {
    display: none;
  }

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

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

  .rank-thumb img {
    height: 72px;
  }

  .rank-body p {
    display: none;
  }

  .detail-card,
  .side-box {
    padding: 18px;
  }

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

  .side-poster {
    display: none;
  }

  .side-list .movie-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .page-hero {
    padding: 88px 16px 54px;
  }
}
