:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-solid: #111827;
  --blue: #172554;
  --blue-soft: rgba(30, 64, 175, 0.32);
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-dark: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--amber) var(--bg-soft);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 16% 12%, rgba(245, 158, 11, 0.15), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.22), transparent 30%),
    linear-gradient(180deg, #020617 0%, #0b1120 34%, #172554 64%, #020617 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  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: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

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: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #111827;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.42);
}

.brand-text {
  font-size: 1.35rem;
  background: linear-gradient(90deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  padding: 7px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--amber-light);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  content: "";
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.15)),
    linear-gradient(0deg, #020617 0%, transparent 48%, rgba(2, 6, 23, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 112px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 13px;
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.13);
}

.hero h1 {
  width: min(760px, 100%);
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}

.hero p {
  width: min(680px, 100%);
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-tags span,
.detail-tags span,
.tag-pill {
  padding: 6px 11px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-ghost,
.btn-small,
.filter-panel button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.filter-panel button,
.hero-search button {
  min-height: 46px;
  padding: 0 22px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover,
.filter-panel button:hover,
.hero-search button:hover,
.btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.34);
}

.btn-ghost {
  min-height: 46px;
  padding: 0 20px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: white;
  font-size: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dots button {
  width: 30px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.active {
  background: var(--amber-light);
}

.hero-search {
  position: absolute;
  right: 0;
  bottom: 72px;
  left: 0;
  z-index: 4;
  display: flex;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  color: white;
  border: 0;
  outline: 0;
  background: transparent;
}

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

.with-top-padding {
  padding-top: 118px;
}

.content-section {
  margin-bottom: 72px;
}

.section-heading,
.page-title-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading > span,
.page-title-block > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: #111827;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
}

.section-heading h2,
.page-title-block h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.section-heading p,
.page-title-block p {
  margin: 8px 0 0;
  color: var(--muted-dark);
  line-height: 1.8;
}

.page-title-block {
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.left-title {
  align-items: flex-start;
  margin-inline: 0;
  text-align: left;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
  transform: translateY(-6px);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18), transparent);
}

.play-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: white;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.95);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  padding: 5px 8px;
  color: white;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
}

.year-badge {
  right: 10px;
}

.rank-badge {
  left: 10px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

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

.movie-card h3 {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: white;
  font-size: 0.96rem;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card h3 a:hover {
  color: var(--amber-light);
}

.meta-line,
.genre-line,
.tag-line {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.78rem;
  line-height: 1.55;
}

.genre-line,
.tag-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow);
}

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

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

.tile-shade,
.category-cover span {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.35)),
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.35), transparent 35%);
}

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

.category-tile strong {
  bottom: 78px;
  font-size: 1.4rem;
}

.category-tile em {
  bottom: 53px;
  color: #fde68a;
  font-style: normal;
}

.category-tile small {
  bottom: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.ranking-panel,
.detail-side-card,
.info-card,
.detail-article,
.filter-panel,
.category-overview-card,
.ranking-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.ranking-panel {
  align-self: start;
  padding: 24px;
  position: sticky;
  top: 96px;
}

.ranking-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ranking-title h2 {
  margin: 0;
}

.ranking-panel ol {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.ranking-panel li a {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.68);
}

.ranking-panel strong {
  color: var(--amber-light);
}

.ranking-panel span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-panel em {
  color: var(--muted-dark);
  font-size: 0.8rem;
  font-style: normal;
}

.text-link {
  color: var(--amber-light);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 170px 170px 96px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 12px;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  outline: none;
  background: rgba(2, 6, 23, 0.58);
  padding: 0 15px;
}

.filter-panel select option {
  color: #111827;
}

.filter-empty {
  margin: 0 0 24px;
  padding: 15px 18px;
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.1);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--muted-dark);
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 42px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.28)),
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.18), transparent 32%);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.85;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
  margin: 0 0 26px;
}

.detail-meta-grid div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.42);
}

.detail-meta-grid dt {
  color: var(--muted-dark);
  font-size: 0.78rem;
}

.detail-meta-grid dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.player-section {
  margin-bottom: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: black;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  border: 0;
  background:
    linear-gradient(rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.78)),
    radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.2), transparent 26%);
}

.player-start span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.42);
}

.player-start strong {
  font-size: 1.35rem;
}

.player-start em {
  color: var(--muted);
  font-style: normal;
}

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

.player-status {
  position: absolute;
  right: 16px;
  bottom: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  margin-bottom: 56px;
}

.detail-article,
.detail-side-card {
  padding: 28px;
}

.detail-article h2,
.detail-side-card h2,
.info-card h2 {
  margin: 0 0 14px;
  color: white;
}

.detail-article p,
.info-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 2;
}

.detail-side-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-side-card li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-side-card span {
  color: var(--muted-dark);
}

.detail-side-card a,
.detail-side-card strong {
  color: white;
  text-align: right;
}

.category-overview-grid,
.info-grid {
  display: grid;
  gap: 20px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 18px;
}

.category-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
}

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

.category-overview-card h2 {
  margin: 6px 0 10px;
  font-size: 1.55rem;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-overview-card strong {
  display: block;
  margin-bottom: 14px;
  color: #fde68a;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.category-samples a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-samples a:hover {
  color: var(--amber-light);
}

.btn-small {
  min-height: 36px;
  padding: 0 15px;
  color: #111827;
  font-weight: 800;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 72px 86px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
}

.ranking-number {
  color: #fde68a;
  font-size: 1.4rem;
  font-weight: 900;
}

.ranking-thumb {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.ranking-info p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-meta span {
  padding: 4px 8px;
  color: var(--muted);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  font-size: 0.78rem;
}

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

.info-card {
  padding: 26px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.45), rgba(15, 23, 42, 0.96));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0;
}

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

.site-footer h3 {
  margin: 0 0 14px;
}

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

.site-footer a:hover {
  color: var(--amber-light);
}

.footer-bottom {
  padding: 18px 0;
  color: var(--muted-dark);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 12px;
    font-size: 0.88rem;
  }

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

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 10px 8px;
  }

  .hero {
    height: 680px;
    min-height: 680px;
  }

  .hero-content {
    padding-bottom: 160px;
  }

  .hero-search {
    bottom: 82px;
    border-radius: 22px;
  }

  .hero-search,
  .filter-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-search {
    display: grid;
  }

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

  .hero-arrow {
    display: none;
  }

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

  .detail-poster {
    width: min(310px, 100%);
  }

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

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

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

  .ranking-card {
    grid-template-columns: 58px 72px 1fr;
  }

  .ranking-card .btn-small {
    grid-column: 2 / -1;
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 1.08rem;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

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

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

  .category-tile {
    min-height: 180px;
  }

  .detail-hero,
  .detail-article,
  .detail-side-card,
  .ranking-panel,
  .info-card {
    padding: 18px;
  }

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

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

  .ranking-thumb {
    width: 86px;
  }
}
