:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-300: #fcd34d;
  --amber-400: #f59e0b;
  --amber-500: #d97706;
  --amber-600: #b45309;
  --rose-500: #f43f5e;
  --emerald-500: #10b981;
  --blue-500: #3b82f6;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fef3c7 100%);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(180, 83, 9, 0.96), rgba(217, 119, 6, 0.96));
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.18);
  backdrop-filter: blur(16px);
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #ffffff;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 10px 16px 18px;
  background: rgba(180, 83, 9, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-menu a {
  display: block;
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-carousel {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-shade,
.detail-bg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(120, 53, 15, 0.58) 52%, rgba(15, 23, 42, 0.72)), linear-gradient(0deg, rgba(15, 23, 42, 0.55), rgba(255, 255, 255, 0.03));
}

.hero-content-wrap {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 54px;
  padding: 48px 0 70px;
}

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

.hero-kicker,
.page-hero span,
.detail-copy .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  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: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.35);
}

.btn-soft {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-poster-card {
  position: relative;
  display: block;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster-card:hover {
  transform: rotate(0deg) scale(1.03);
}

.hero-poster-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-poster-card span,
.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 34px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(217, 119, 6, 0.75);
}

.hero-arrow-left {
  left: 18px;
}

.hero-arrow-right {
  right: 18px;
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.intro-band {
  margin-top: -34px;
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.intro-band h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.intro-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.section-heading .section-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.section-heading span {
  display: block;
  color: var(--amber-500);
  font-weight: 800;
  margin-bottom: 4px;
}

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

.section-heading i {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.28), rgba(245, 158, 11, 0));
}

.section-heading-green .section-icon {
  background: linear-gradient(135deg, #10b981, #22c55e);
}

.section-heading-rose .section-icon {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
}

.section-heading-blue .section-icon {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.section-heading-emerald .section-icon {
  background: linear-gradient(135deg, #059669, #84cc16);
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.filter-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.filter-panel span {
  color: var(--muted);
  font-size: 14px;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-controls input,
.filter-controls select,
.filter-controls button {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.filter-controls input {
  min-width: 250px;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.filter-controls button {
  color: #ffffff;
  background: var(--slate-800);
  cursor: pointer;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

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

.movie-poster {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #7c2d12);
}

.movie-card-compact .movie-poster {
  height: 210px;
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.02));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-play {
  width: 54px;
  height: 54px;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #f59e0b);
  font-weight: 900;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.movie-card h3,
.ranking-info h2 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-info h2 a:hover,
.text-link:hover {
  color: var(--amber-500);
}

.movie-card p,
.ranking-info p,
.category-tile p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.mini-tags {
  margin-top: 14px;
}

.mini-tags span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile a {
  display: block;
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309 48%, #0f172a);
  box-shadow: 0 18px 40px rgba(120, 53, 15, 0.18);
  transition: transform 0.25s ease;
}

.category-tile a:hover {
  transform: translateY(-5px);
}

.category-tile span {
  display: block;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-tile p {
  color: rgba(255, 255, 255, 0.82);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  min-height: auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: none;
  color: #ffffff;
  font-size: 12px;
}

.ranking-panel {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 24px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

.ranking-panel li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: start;
  break-inside: avoid;
  padding: 10px 0;
}

.ranking-panel li span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  font-weight: 900;
}

.ranking-panel li a {
  font-weight: 900;
}

.ranking-panel li em {
  display: block;
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  margin-top: 4px;
}

.ranking-link {
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.section-more {
  margin-top: 22px;
  text-align: right;
}

.section-more a,
.text-link {
  color: var(--amber-600);
  font-weight: 900;
}

.subpage {
  min-height: 64vh;
}

.page-hero {
  position: relative;
  padding: 98px 0 74px;
  color: #ffffff;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.5), transparent 34%), linear-gradient(135deg, #0f172a, #78350f 58%, #1e293b);
}

.compact-hero {
  padding: 82px 0 64px;
}

.page-hero h1 {
  margin: 14px 0 14px;
  max-width: 860px;
}

.page-hero p {
  max-width: 760px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-overview-card h2 {
  margin: 0 0 8px;
}

.category-overview-card ul {
  margin: 16px 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.category-cover-stack img {
  width: 100%;
  height: 115px;
  object-fit: cover;
  background: linear-gradient(135deg, #f59e0b, #0f172a);
}

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

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

.ranking-poster {
  display: block;
  height: 142px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #0f172a);
}

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

.ranking-rank {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #f59e0b);
  font-size: 18px;
  font-weight: 900;
}

.rank-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber-500);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-grid {
  position: relative;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 54px;
  align-items: center;
  min-height: 620px;
  padding: 52px 0;
}

.detail-poster {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fde68a;
  font-size: 14px;
}

.breadcrumb em {
  font-style: normal;
  color: #ffffff;
}

.detail-copy h1 {
  max-width: 900px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), rgba(0, 0, 0, 0.55));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover .play-action {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-size: 34px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
  padding: 46px 0 0;
}

.detail-article,
.detail-side {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-article {
  padding: 30px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 28px;
  color: #374151;
  line-height: 2;
  font-size: 16px;
}

.detail-side {
  align-self: start;
  padding: 24px;
}

.detail-side dl {
  margin: 0;
}

.detail-side dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  margin-top: 16px;
}

.detail-side dd {
  margin: 5px 0 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.6;
}

.detail-nav-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.detail-nav-pair a {
  text-align: center;
  border-radius: 999px;
  padding: 11px 10px;
  color: #ffffff;
  background: var(--slate-800);
  font-weight: 900;
}

.site-footer {
  margin-top: 72px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-main p,
.site-footer li {
  color: #94a3b8;
  line-height: 1.8;
}

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

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
}

.site-footer a:hover {
  color: #f59e0b;
}

.footer-bottom {
  padding: 18px 0 24px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 14px;
    font-size: 14px;
  }

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

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

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

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

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

  .rank-play {
    grid-column: 3;
    justify-self: start;
  }
}

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

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

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

  .brand {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-content-wrap {
    min-height: 680px;
  }

  .hero-content-wrap {
    gap: 26px;
    padding: 44px 0 76px;
  }

  .hero-poster-card img {
    height: 320px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-band,
  .filter-panel,
  .ranking-panel {
    display: block;
  }

  .intro-band .btn {
    margin-top: 18px;
  }

  .filter-controls {
    margin-top: 14px;
    justify-content: stretch;
  }

  .filter-controls input,
  .filter-controls select,
  .filter-controls button {
    width: 100%;
    min-width: 0;
  }

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

  .movie-poster,
  .movie-card-compact .movie-poster {
    height: 205px;
  }

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

  .ranking-panel ol {
    columns: 1;
    margin-bottom: 18px;
  }

  .ranking-link {
    min-height: 70px;
  }

  .ranking-card {
    grid-template-columns: 78px 40px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .ranking-poster {
    height: 104px;
  }

  .ranking-info h2 {
    font-size: 17px;
  }

  .rank-play {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .detail-grid {
    gap: 24px;
    min-height: 700px;
  }

  .detail-poster img {
    height: 420px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid-small,
  .movie-grid-large,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-poster,
  .movie-card-compact .movie-poster {
    height: 310px;
  }

  .hero-actions,
  .detail-actions,
  .page-hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }
}
