:root {
  --honey-950: #211107;
  --honey-900: #32190a;
  --honey-800: #4a250f;
  --honey-700: #713915;
  --honey-600: #9b4d17;
  --flame-600: #e25822;
  --flame-500: #f97316;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --cream: #fff7ed;
  --muted: #f7d7a3;
  --glass: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 12% 0%, rgba(249, 115, 22, 0.26), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.22), transparent 28rem),
    linear-gradient(180deg, var(--honey-950), var(--honey-900) 38%, #160b04);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  z-index: -1;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(113, 57, 21, 0.96), rgba(226, 88, 34, 0.96), rgba(245, 158, 11, 0.94));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  animation: flame-flicker 1.8s infinite alternate ease-in-out;
}

@keyframes flame-flicker {
  from {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 4px rgba(255, 214, 102, 0.4));
  }

  to {
    transform: translateY(-1px) scale(1.08);
    filter: drop-shadow(0 0 12px rgba(255, 214, 102, 0.75));
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.main-nav a {
  font-weight: 700;
  opacity: 0.9;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 330px;
}

.search-box input,
.large-search input,
.hero-search-card input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  outline: none;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  padding: 12px 16px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.search-box input::placeholder,
.large-search input::placeholder,
.hero-search-card input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-box input:focus,
.large-search input:focus,
.hero-search-card input:focus {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.search-box button,
.large-search button,
.hero-search-card button {
  border: 0;
  border-radius: 999px;
  color: var(--honey-950);
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  font-weight: 900;
  padding: 11px 16px;
  cursor: pointer;
}

.search-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(33, 17, 7, 0.96);
  box-shadow: var(--shadow);
}

.search-panel.open {
  display: block;
}

.search-result-link {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  color: white;
}

.search-result-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.search-result-link span {
  color: var(--muted);
  font-size: 13px;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: white;
  background: transparent;
  font-size: 28px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 16px;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 9px 14px;
}

.hero-carousel {
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: calc(100vh - 68px);
  padding: 88px 0 190px;
  background-image:
    linear-gradient(90deg, rgba(22, 11, 4, 0.96) 0%, rgba(50, 25, 10, 0.78) 45%, rgba(50, 25, 10, 0.28) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  display: block;
  animation: hero-fade 0.7s ease both;
}

@keyframes hero-fade {
  from {
    opacity: 0.3;
    transform: scale(1.01);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(249, 115, 22, 0.24), transparent 22rem),
    linear-gradient(180deg, transparent, rgba(22, 11, 4, 0.88));
  z-index: -1;
}

.hero-content {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  align-items: center;
  gap: 60px;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber-300);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.subpage-hero h1,
.detail-info h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.45);
}

.hero-summary {
  margin: 24px 0 0;
  color: #ffe9c4;
  font-size: 18px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

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

.primary-button {
  color: var(--honey-950);
  background: linear-gradient(135deg, #fff7ed, #f59e0b);
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.32);
}

.ghost-button {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.hero-poster {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 26px;
}

.hero-poster span {
  position: absolute;
  left: 28px;
  bottom: 28px;
  border-radius: 999px;
  color: var(--honey-950);
  background: rgba(255, 247, 237, 0.92);
  padding: 10px 16px;
  font-weight: 900;
}

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

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

.hero-dot.active {
  background: linear-gradient(90deg, #fff7ed, #f59e0b);
}

.hero-search-card {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(50, 25, 10, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.hero-search-card strong {
  font-size: 20px;
}

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

.hero-category-links {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.hero-category-links a {
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffe9c4;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  font-weight: 800;
}

.content-section,
.subpage-hero,
.breadcrumb {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 60px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-more {
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  font-weight: 900;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(252, 211, 77, 0.55);
  transform: translateY(-6px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  color: var(--honey-950);
  background: linear-gradient(135deg, #fff7ed, #f59e0b);
  padding: 5px 9px;
  font-weight: 900;
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--honey-950);
  background: rgba(255, 247, 237, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

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

.movie-card-body p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0;
  overflow: hidden;
  color: #f7d7a3;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row {
  gap: 6px;
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  box-shadow: var(--shadow);
}

.small-heading h2 {
  font-size: 30px;
}

.rank-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-thumb img {
  width: 74px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.rank-row p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-tile,
.category-overview-hero {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(33, 17, 7, 0.92), rgba(226, 88, 34, 0.58)),
    var(--tile-image);
  background-size: cover;
  background-position: center;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.category-tile {
  display: grid;
  align-content: end;
  gap: 8px;
}

.category-tile span,
.category-overview-hero span {
  color: var(--amber-300);
  font-weight: 900;
}

.category-tile strong,
.category-overview-hero strong {
  font-size: 30px;
}

.category-tile p,
.category-overview-hero p {
  margin: 0;
  color: #ffe9c4;
}

.subpage-hero {
  padding: 70px 0 34px;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 800px;
  color: #ffe9c4;
  font-size: 18px;
  line-height: 1.8;
}

.category-overview-block {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: stretch;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.filter-toolbar button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-toolbar button.active,
.filter-toolbar button:hover {
  color: var(--honey-950);
  background: linear-gradient(135deg, #fff7ed, #f59e0b);
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 110px 92px 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
}

.ranking-number {
  color: var(--amber-300);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.ranking-poster img {
  width: 92px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 12px;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 0;
  color: var(--muted);
}

.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 20%, rgba(249, 115, 22, 0.28), transparent 24rem),
    rgba(255, 255, 255, 0.08);
  padding: 26px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
  font-size: clamp(36px, 5.8vw, 70px);
}

.detail-one-line {
  color: #ffe9c4;
  font-size: 20px;
  line-height: 1.7;
}

.detail-stats,
.large-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.detail-stats span {
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
}

.detail-stats strong {
  color: var(--amber-300);
}

.player-section {
  width: min(1280px, calc(100% - 32px));
  margin: 52px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background: rgba(0, 0, 0, 0.34);
  padding: 22px;
  box-shadow: var(--shadow);
}

.player-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.player-head h2 {
  margin: 0;
  font-size: 30px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.video-overlay.hidden {
  display: none;
}

.video-overlay span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  color: var(--honey-950);
  background: rgba(255, 247, 237, 0.94);
  font-size: 38px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

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

.detail-text-grid article {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  padding: 24px;
}

.detail-text-grid h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.detail-text-grid p {
  margin: 0;
  color: #ffe9c4;
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-line;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 0;
  padding-bottom: 0;
}

.prev-next a {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
  color: #ffe9c4;
}

.large-search {
  display: flex;
  max-width: 780px;
  gap: 12px;
  margin-top: 22px;
}

.sitemap-section {
  color: #ffe9c4;
}

.sitemap-section h2 {
  color: white;
  margin-top: 34px;
}

.sitemap-section ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 20px;
  padding-left: 20px;
}

.sitemap-movies {
  max-height: 720px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px 20px 20px 40px;
  background: rgba(255, 255, 255, 0.06);
}

.site-footer {
  margin-top: 70px;
  background: linear-gradient(180deg, rgba(33, 17, 7, 0.2), rgba(0, 0, 0, 0.34));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr;
  gap: 38px;
  padding: 46px 0;
}

.footer-brand {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
  display: block;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--amber-300);
}

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

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

  .mobile-menu-button {
    display: block;
  }

  .search-box {
    width: min(44vw, 330px);
    margin-left: auto;
  }

  .hero-content,
  .detail-hero,
  .category-overview-block,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 320px;
  }

  .ranking-panel {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .nav-shell {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }

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

  .search-box {
    order: 3;
    width: 100%;
  }

  .hero-slide {
    min-height: auto;
    padding: 54px 0 260px;
  }

  .hero-content {
    gap: 26px;
  }

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

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

  .hero-search-card form,
  .large-search,
  .player-head,
  .prev-next {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-dots {
    bottom: 205px;
  }

  .content-section {
    padding: 38px 0;
  }

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

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

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

  .movie-card-body p,
  .tag-row {
    display: none;
  }

  .ranking-card {
    grid-template-columns: 60px 82px 1fr;
    gap: 12px;
  }

  .ranking-number {
    font-size: 16px;
  }

  .detail-hero,
  .player-section {
    padding: 16px;
    border-radius: 24px;
  }

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

  .video-overlay span {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .mini-grid,
  .category-grid,
  .sitemap-section ul {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .subpage-hero h1,
  .detail-info h1 {
    letter-spacing: -0.04em;
  }
}
