:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0f766e;
  --cyan: #0891b2;
  --rose: #e11d48;
  --amber: #d97706;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 48%, var(--slate-50) 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

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

.brand {
  flex: 0 0 auto;
  color: var(--slate-900);
  font-size: 21px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 12px 22px rgba(5, 150, 105, 0.28);
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.desktop-nav a {
  white-space: nowrap;
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
  color: var(--emerald);
}

.nav-search,
.mobile-search,
.search-panel,
.filter-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search input,
.mobile-search input,
.search-panel input,
.filter-panel input,
.search-panel select {
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: var(--white);
  color: var(--slate-900);
  border-radius: 999px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 230px;
  padding: 10px 16px;
  font-size: 14px;
}

.nav-search button,
.mobile-search button {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--emerald);
  font-weight: 700;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.filter-panel input:focus,
.search-panel select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 16px;
  background: var(--slate-100);
  color: var(--slate-900);
  font-size: 24px;
}

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow);
}

.mobile-menu.is-open {
  display: grid;
  gap: 12px;
}

.mobile-menu a {
  padding: 10px 4px;
  color: var(--slate-700);
  font-weight: 700;
}

.mobile-search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
}

.hero-slider {
  position: relative;
  min-height: 640px;
  color: var(--white);
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 25%, rgba(16, 185, 129, 0.36), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.22) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.14) 0%, rgba(2, 6, 23, 0.84) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 78px 0 90px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #a7f3d0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 16px;
  max-width: 840px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: #ecfeff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

.hero-copy p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

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

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  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(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.28);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-link {
  color: #a7f3d0;
  padding-left: 4px;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-poster span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--white);
  background: rgba(5, 150, 105, 0.9);
  font-weight: 800;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  font-size: 36px;
  line-height: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: var(--white);
}

.feature-band {
  width: min(1180px, calc(100% - 32px));
  margin: -56px auto 0;
  position: relative;
  z-index: 4;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.feature-text h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.story-card h2 {
  margin: 0;
  color: var(--slate-900);
  letter-spacing: -0.035em;
}

.feature-text h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.feature-text p {
  color: var(--slate-600);
  font-size: 17px;
}

.feature-image {
  display: block;
  overflow: hidden;
  border-radius: 22px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-image:hover img {
  transform: scale(1.06);
}

.section-block {
  padding: 70px 0 0;
}

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

.section-heading .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow,
.feature-text .eyebrow {
  color: var(--emerald);
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.heading-line {
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), transparent);
}

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(5, 150, 105, 0.36);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: var(--slate-200);
}

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

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

.score-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.score-badge {
  right: 10px;
  background: rgba(5, 150, 105, 0.92);
}

.score-badge.big {
  top: 18px;
  right: 18px;
  font-size: 15px;
  padding: 8px 12px;
}

.rank-badge {
  left: 10px;
  background: rgba(225, 29, 72, 0.92);
}

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-link:hover h3 {
  color: var(--emerald);
}

.movie-line {
  margin: 0 0 12px;
  color: var(--slate-600);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span,
.detail-meta span {
  border-radius: 999px;
  background: var(--slate-100);
  padding: 4px 8px;
}

.movie-meta.strong {
  margin: 18px 0;
  font-size: 13px;
}

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

.tag-row span {
  color: var(--emerald-dark);
  background: rgba(5, 150, 105, 0.1);
  padding: 5px 9px;
  font-size: 12px;
}

.tag-row.large span {
  font-size: 13px;
  padding: 7px 11px;
}

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

.category-card,
.category-overview-card a {
  display: block;
  min-height: 154px;
  border-radius: 22px;
  padding: 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 0%, rgba(34, 211, 238, 0.35), transparent 34%),
    linear-gradient(135deg, var(--slate-900), var(--emerald-dark));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover,
.category-overview-card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
}

.category-card span,
.category-overview-text span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #a7f3d0;
  font-size: 14px;
  font-weight: 900;
}

.category-card strong,
.category-overview-text h2 {
  display: block;
  color: var(--white);
  font-size: 18px;
  line-height: 1.5;
}

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

.category-overview-card a {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

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

.category-covers img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}

.category-overview-text {
  padding: 24px;
}

.category-overview-text p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  padding: 88px 0 76px;
  color: var(--white);
  background:
    radial-gradient(circle at 70% 20%, rgba(34, 211, 238, 0.34), transparent 34%),
    linear-gradient(135deg, var(--emerald), var(--teal) 48%, var(--slate-900));
}

.page-hero h1 {
  max-width: 860px;
  color: var(--white);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
}

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

.filter-panel,
.search-panel {
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 30px;
}

.filter-panel input,
.search-panel input,
.search-panel select {
  min-height: 48px;
  padding: 0 18px;
}

.filter-panel input,
.search-panel input {
  flex: 1 1 360px;
  min-width: 220px;
}

.search-panel select {
  min-width: 180px;
}

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

.filter-chips button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.filter-chips button.is-active,
.filter-chips button:hover {
  background: var(--white);
  color: var(--emerald-dark);
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--slate-100);
  color: var(--slate-600);
  text-align: center;
  font-weight: 700;
}

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

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

.rank-row a {
  display: grid;
  grid-template-columns: 56px 74px minmax(0, 1fr) 180px 78px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row a:hover {
  transform: translateX(4px);
  border-color: rgba(5, 150, 105, 0.34);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--amber));
  font-weight: 950;
}

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

.rank-title strong,
.rank-title em {
  display: block;
}

.rank-title strong {
  color: var(--slate-900);
  font-size: 17px;
}

.rank-title em {
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
}

.rank-meta {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.rank-score {
  color: var(--emerald);
  font-size: 22px;
  font-weight: 950;
  text-align: right;
}

.movie-detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.detail-bg,
.detail-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.55;
}

.detail-shade {
  background:
    radial-gradient(circle at 82% 12%, rgba(16, 185, 129, 0.3), transparent 36%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72) 58%, rgba(15, 23, 42, 0.3));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 44px 0 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #a7f3d0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.detail-meta {
  margin: 20px 0 8px;
  color: rgba(255, 255, 255, 0.74);
}

.detail-meta span {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.14);
}

.detail-copy .btn {
  margin-top: 26px;
}

.player-section {
  margin-top: -46px;
  position: relative;
  z-index: 4;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 32px 80px rgba(2, 6, 23, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: none;
  padding: 0;
  background: rgba(2, 6, 23, 0.4);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58);
}

.play-circle {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 18px 40px rgba(5, 150, 105, 0.42);
  font-size: 34px;
  padding-left: 6px;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 42px;
}

.story-card {
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.story-card h2 {
  font-size: 25px;
}

.story-card p {
  margin: 14px 0 0;
  color: var(--slate-600);
  font-size: 16px;
}

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

.site-footer {
  margin-top: 86px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #a7f3d0;
  font-size: 17px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a:hover {
  color: #a7f3d0;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

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

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

  .nav-search {
    display: none;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-content,
  .feature-card,
  .detail-layout,
  .detail-content,
  .footer-grid,
  .category-overview-card a {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: 680px;
    padding-top: 62px;
    gap: 34px;
  }

  .hero-poster {
    width: min(280px, 70vw);
    transform: none;
  }

  .feature-image img {
    min-height: 220px;
  }

  .detail-poster {
    width: min(280px, 78vw);
  }

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

  .rank-meta {
    display: none;
  }
}

@media (max-width: 720px) {
  .brand-text {
    max-width: 8em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .hero-slider,
  .hero-content {
    min-height: 720px;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

  .heading-line {
    width: 100%;
  }

  .feature-band {
    margin-top: 20px;
  }

  .page-hero {
    padding: 64px 0;
  }

  .detail-hero-content {
    padding-top: 28px;
  }

  .player-section {
    margin-top: 20px;
  }

  .play-circle {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .nav-wrap {
    width: min(100% - 20px, 1280px);
    min-height: 64px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

  .movie-grid,
  .ranking-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .poster-wrap img {
    height: 100%;
    aspect-ratio: 2 / 3;
  }

  .movie-info {
    padding: 12px;
  }

  .rank-row a {
    grid-template-columns: 36px 54px minmax(0, 1fr) 48px;
    gap: 10px;
  }

  .rank-row img {
    width: 54px;
    height: 76px;
  }

  .rank-score {
    font-size: 18px;
  }
}
