:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(2, 6, 23, 0.92);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.16);
  --blue: #38bdf8;
  --pink: #f472b6;
  --amber: #f59e0b;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow-cyan: 0 24px 80px rgba(34, 211, 238, 0.22);
  --shadow-dark: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 16%, rgba(244, 114, 182, 0.16), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 70vh;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.1));
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  border-color: var(--line);
  background: rgba(2, 6, 23, 0.94);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  gap: 18px;
}

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

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 16px;
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
  font-size: 17px;
  font-weight: 900;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 19px;
  line-height: 1.15;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 9px 13px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
  background: var(--cyan-soft);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search {
  padding: 9px 14px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  font-size: 14px;
  font-weight: 800;
}

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

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
}

.mobile-nav .nav-link {
  display: block;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 46px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 118px 0 92px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  z-index: 0;
  inset: 0 calc(50% - 50vw);
  opacity: 0.42;
  filter: saturate(1.1);
}

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

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.28)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.34) 48%, #020617 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.66);
  font-size: 13px;
  font-weight: 750;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: var(--shadow-cyan);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.primary-button.small {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 14px;
}

.ghost-button,
.section-more {
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.62);
}

.hero-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow-dark);
  transform: rotate(1.2deg);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-card span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #00111a;
  background: var(--cyan);
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: 50%;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(50%);
}

.hero-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
}

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

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  border: 0 !important;
  background: rgba(148, 163, 184, 0.46) !important;
}

.hero-dot.is-active {
  width: 28px !important;
  background: var(--cyan) !important;
}

.quick-search-panel,
.content-section,
.filter-panel,
.page-hero,
.detail-hero-inner {
  width: min(1240px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.quick-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: -54px;
  padding: 24px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 8;
}

.quick-search-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
}

.hero-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.64);
}

.hero-search input,
.filter-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.hero-search input {
  padding: 0 12px;
}

.hero-search button {
  min-width: 100px;
  border: 0;
  border-radius: 999px;
  color: #00111a;
  background: var(--cyan);
  font-weight: 900;
}

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

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

.section-heading h2,
.ranking-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
}

.section-heading p {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

.category-tile,
.category-overview-card,
.ranking-panel,
.filter-panel,
.detail-article section,
.player-shell,
.rank-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.78));
  box-shadow: var(--shadow-dark);
}

.category-tile {
  display: block;
  min-height: 220px;
  padding: 22px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.36);
}

.category-count {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: 13px;
  font-weight: 900;
}

.category-tile h3,
.category-overview-head h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p,
.category-tile small,
.category-overview-head p {
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.8);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow: var(--shadow-cyan);
}

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

.movie-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.86) 100%);
}

.year-badge,
.play-badge,
.rank-index {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: #00111a;
  background: var(--cyan);
}

.play-badge {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(12px);
}

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

.card-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-category {
  color: var(--cyan);
}

.movie-card h3,
.rank-card h2 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.32;
}

.movie-card p,
.rank-card p {
  min-height: 50px;
  margin: 0;
  color: #a8b4c6;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

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

.movie-card-compact p {
  min-height: 0;
  font-size: 13px;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.ranking-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ranking-title a {
  color: var(--cyan);
  font-weight: 900;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 38px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.42);
}

.ranking-row img {
  width: 58px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-number {
  color: var(--cyan);
  font-weight: 950;
}

.ranking-info {
  display: grid;
  min-width: 0;
}

.ranking-info strong,
.ranking-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info small {
  color: var(--muted);
}

.ranking-row em {
  color: var(--amber);
  font-style: normal;
  font-weight: 900;
}

.page-hero {
  padding: 150px 0 30px;
}

.compact-hero {
  min-height: 360px;
  display: flex;
  align-items: end;
}

.category-hero {
  min-height: 430px;
  display: flex;
  align-items: end;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 18px;
  align-items: end;
  margin-top: 26px;
  padding: 20px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
}

.filter-panel label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.45);
}

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

.filter-chip {
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.42);
  font-weight: 900;
}

.filter-chip.is-active {
  color: #00111a;
  border-color: var(--cyan);
  background: var(--cyan);
}

.filter-count {
  margin: 0;
  color: var(--cyan);
  font-weight: 900;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.category-overview-head span {
  color: var(--cyan);
  font-weight: 900;
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
}

.rank-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.rank-poster img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.rank-index {
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  color: #00111a;
  background: var(--cyan);
}

.rank-card-body {
  padding: 6px 0;
}

.rank-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.rank-bottom a {
  color: var(--cyan);
  font-weight: 900;
}

.rank-bottom strong {
  color: var(--amber);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding-top: 112px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.48)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.08) 62%, #020617 100%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--cyan);
  font-weight: 850;
}

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

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow-dark);
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: #000;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: var(--text);
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.2), rgba(2, 6, 23, 0.68)),
    rgba(2, 6, 23, 0.42);
  text-align: center;
}

.player-start span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 999px;
  color: #00111a;
  background: var(--cyan);
  box-shadow: var(--shadow-cyan);
  font-size: 28px;
}

.player-start strong {
  font-size: 24px;
}

.player-start small {
  color: #cbd5e1;
}

.player-shell.is-playing .player-start {
  display: none;
}

.detail-article {
  display: grid;
  gap: 18px;
}

.detail-article section {
  padding: 22px;
}

.detail-article h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-article p {
  margin: 0;
  color: #cbd5e1;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-list dt {
  color: var(--muted);
  font-weight: 900;
}

.info-list dd {
  margin: 0;
}

.info-list a {
  color: var(--cyan);
  font-weight: 900;
}

.large-tags span {
  min-height: 34px;
  padding: 6px 12px;
}

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

.site-footer {
  margin-top: 82px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.98));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.7fr;
  gap: 36px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-brand p,
.footer-links a {
  color: var(--muted);
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.footer-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
}

.footer-links a:hover {
  color: var(--cyan);
}

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

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

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

  .two-column-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .nav-toggle {
    display: flex;
  }

  body.nav-open .mobile-nav {
    display: grid;
    gap: 4px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    min-height: 760px;
  }

  .hero-card {
    max-width: 320px;
    margin: 0 auto;
  }

  .quick-search-panel,
  .filter-panel,
  .category-overview-card,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .rank-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 22px, 1240px);
    height: 68px;
  }

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

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

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

  .hero-slide {
    width: min(100% - 22px, 1240px);
    padding-top: 100px;
    gap: 24px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

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

  .quick-search-panel,
  .content-section,
  .filter-panel,
  .page-hero,
  .detail-hero-inner {
    width: min(100% - 22px, 1240px);
  }

  .hero-search {
    flex-direction: column;
    border-radius: 20px;
  }

  .hero-search input,
  .hero-search button {
    min-height: 46px;
  }

  .section-heading {
    display: grid;
  }

  .movie-grid,
  .mini-grid,
  .full-grid,
  .rank-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-poster img {
    aspect-ratio: 16 / 9;
  }

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

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

  .detail-content {
    gap: 18px;
  }

  .footer-inner {
    width: min(100% - 22px, 1240px);
  }
}
