:root {
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --teal-600: #0d9488;
  --blue-600: #2563eb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.28s ease, box-shadow 0.28s ease;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--green-600), var(--teal-600));
  box-shadow: 0 10px 22px rgba(34, 197, 94, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--gray-500);
  font-size: 12px;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 650;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--green-700);
  background: var(--green-50);
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 310px;
}

.top-search input,
.mobile-search input,
.inline-filter input,
.search-page-form input,
.local-filter {
  width: 100%;
  border: 1px solid var(--gray-300);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.inline-filter input:focus,
.search-page-form input:focus,
.local-filter:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.top-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  color: var(--white);
  background: var(--green-600);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

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

.mobile-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 8px;
  padding: 16px 0 20px;
}

.mobile-link {
  padding: 12px 14px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #0f766e 50%, #1d4ed8);
}

.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-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(1.05);
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.85), rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.18)), linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-copy {
  width: min(720px, 100%);
  color: var(--white);
}

.hero-badge,
.card-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  max-width: 720px;
}

.hero-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin: 24px 0 16px;
}

.hero-meta span {
  color: var(--white);
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

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

.hero-tags a,
.hero-tags span,
.tag-row span {
  color: var(--green-700);
  background: var(--green-50);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 650;
}

.hero-tags a,
.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  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: var(--green-600);
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.32);
}

.btn-primary:hover {
  background: var(--green-700);
}

.btn-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

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

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

.quick-panel {
  background: var(--white);
  padding: 30px 0 8px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: -74px;
  position: relative;
  z-index: 8;
}

.stat-card {
  min-height: 150px;
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 231, 235, 0.86);
}

.stat-card strong {
  display: block;
  color: var(--green-700);
  font-size: 32px;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-card span {
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.section {
  padding: 64px 0;
  background: var(--white);
}

.section.muted {
  background: var(--gray-50);
}

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

.section-head.compact {
  margin-bottom: 20px;
}

.section-head span {
  display: block;
  color: var(--green-700);
  font-weight: 850;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 6px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head a {
  color: var(--green-700);
  font-weight: 800;
}

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

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

.movie-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.88);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #052e16, #0f766e);
}

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

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

.score-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.78);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-content {
  padding: 18px;
}

.card-kicker {
  color: var(--green-700);
  background: var(--green-50);
  padding: 5px 10px;
  margin-bottom: 12px;
}

.card-content h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-content h2 a:hover,
.ranking-card h2 a:hover,
.side-card a:hover {
  color: var(--green-700);
}

.card-content p {
  color: var(--gray-600);
  margin: 0 0 14px;
  font-size: 14px;
  min-height: 44px;
}

.card-meta {
  color: var(--gray-500);
  justify-content: space-between;
  font-size: 13px;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-row {
  gap: 7px;
}

.tag-row span {
  color: var(--gray-600);
  background: var(--gray-100);
  font-size: 12px;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  box-shadow: var(--shadow-soft);
  color: var(--white);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.52) saturate(1.12);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12));
}

.category-card span {
  font-size: 22px;
  font-weight: 850;
  margin-bottom: 8px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.rank-list,
.side-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 62px 1fr;
  gap: 13px;
  align-items: center;
  min-height: 78px;
  border-radius: 18px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(34, 197, 94, 0.46);
}

.rank-item img {
  width: 62px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f766e;
}

.rank-item strong {
  display: block;
  line-height: 1.35;
  margin-bottom: 4px;
}

.rank-item em {
  display: block;
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.rank-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  font-weight: 850;
}

.page-hero {
  padding: 150px 0 70px;
  color: var(--white);
  background: linear-gradient(135deg, #065f46, #0f766e 48%, #2563eb);
}

.page-hero.accent {
  background: linear-gradient(135deg, #111827, #064e3b 52%, #0d9488);
}

.page-hero span {
  display: inline-flex;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 750;
  margin-bottom: 14px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

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

.inline-filter,
.search-page-form {
  margin-top: 26px;
  width: min(640px, 100%);
}

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

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

.ranking-cards {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 54px 116px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-200);
}

.ranking-index {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 14px;
  font-size: 19px;
  font-weight: 850;
  background: linear-gradient(135deg, var(--green-500), var(--teal-600));
}

.ranking-poster img {
  width: 116px;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  background: #0f766e;
}

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

.ranking-card p {
  margin: 0 0 14px;
  color: var(--gray-600);
}

.detail-main {
  background: var(--gray-50);
}

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

.detail-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.93), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.22)), linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.15));
}

.detail-intro {
  position: relative;
  z-index: 2;
  padding-top: 118px;
  padding-bottom: 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  margin-bottom: 30px;
}

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

.detail-head {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  background: #0f766e;
}

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

.detail-title h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-title p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  margin: 0;
}

.detail-section {
  padding-top: 48px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.94);
  box-shadow: 0 18px 34px rgba(22, 163, 74, 0.34);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-button span {
  display: block;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid var(--white);
  margin-left: 6px;
}

.player-shell.playing .player-button {
  opacity: 0;
  pointer-events: none;
}

.player-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.detail-panel,
.side-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.detail-panel {
  margin-top: 22px;
  padding: 28px;
}

.detail-panel h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-panel p {
  color: var(--gray-700);
  margin: 0 0 24px;
  font-size: 16px;
}

.detail-tags {
  margin-top: 4px;
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.side-card {
  padding: 22px;
}

.side-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 10px;
}

.side-card dt {
  color: var(--gray-500);
}

.side-card dd {
  margin: 0;
  color: var(--gray-800);
  font-weight: 650;
}

.side-list .rank-item {
  grid-template-columns: 54px 1fr;
}

.side-list .rank-item .rank-number {
  display: none;
}

.side-list .rank-item img {
  width: 54px;
  height: 70px;
}

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

.search-summary {
  margin-bottom: 22px;
  color: var(--gray-600);
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px;
  border-radius: 24px;
  background: var(--white);
  text-align: center;
  color: var(--gray-600);
  box-shadow: var(--shadow-soft);
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, var(--gray-900), #0f172a 52%, #064e3b);
  padding: 52px 0 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin-bottom: 14px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

.site-footer h2 {
  font-size: 18px;
  margin: 0 0 14px;
  color: var(--green-100);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  margin-top: 44px;
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1100px) {
  .top-search {
    display: none;
  }

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

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

  .ranking-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

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

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

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

  .brand-subtitle {
    display: none;
  }

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

  .hero-copy h1 {
    font-size: 36px;
  }

  .quick-grid {
    margin-top: -40px;
  }

  .section,
  .detail-section {
    padding: 44px 0;
  }

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

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

  .ranking-poster img {
    width: 88px;
    height: 116px;
  }

  .detail-head {
    grid-template-columns: 140px 1fr;
    align-items: center;
  }

  .detail-title h1 {
    font-size: 32px;
  }

  .detail-title p {
    font-size: 16px;
  }
}

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

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

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-meta span {
    font-size: 12px;
  }

  .quick-grid,
  .movie-grid,
  .archive-grid,
  .related-grid,
  .category-grid,
  .category-grid.large,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 120px 0 52px;
  }

  .search-page-form,
  .mobile-search {
    flex-direction: column;
  }

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

  .ranking-card h2 {
    font-size: 18px;
  }

  .ranking-card p {
    display: none;
  }

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

  .detail-poster {
    width: 180px;
  }

  .player-button {
    width: 62px;
    height: 62px;
  }

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