* {
  box-sizing: border-box;
}

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 26px 60px rgba(15, 23, 42, 0.22);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-800);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.header-solid,
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(250, 250, 249, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--slate-900);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--amber-600));
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.24);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.brand-text {
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--slate-800);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-700);
  background: rgba(255, 251, 235, 0.8);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--stone-200);
}

.hero-carousel {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  background: var(--slate-950);
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 42%, rgba(245, 158, 11, 0.28), transparent 32%),
    linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 32px));
  min-height: 85vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 120px 0 150px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--amber-100);
  text-transform: uppercase;
}

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

.hero-copy {
  width: min(720px, 100%);
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2.1vw, 21px);
}

.hero-tags,
.tag-row,
.detail-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.meta-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

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

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
}

.button-primary {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.32);
}

.button-primary:hover {
  background: var(--amber-700);
}

.button-glass {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

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

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

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 74px;
  z-index: 4;
  width: min(560px, calc(100% - 32px));
  display: flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

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

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  padding: 10px 22px;
  font-weight: 800;
  cursor: pointer;
}

main {
  background: linear-gradient(to bottom, var(--white), var(--stone-50));
}

.page-main {
  padding-top: 104px;
}

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

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

.section-head h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.18;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--slate-600);
}

.text-link {
  flex: 0 0 auto;
  color: var(--amber-700);
  font-weight: 800;
}

.movie-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 2px 22px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.movie-rail .movie-card {
  width: 320px;
  flex: 0 0 320px;
}

.movie-rail .card-large {
  width: 390px;
  flex-basis: 390px;
}

.rail-controls {
  display: flex;
  gap: 8px;
}

.rail-controls button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
  color: var(--slate-700);
  background: var(--white);
  cursor: pointer;
  font-size: 24px;
  transition: background 0.2s ease, color 0.2s ease;
}

.rail-controls button:hover {
  color: var(--amber-700);
  background: var(--amber-50);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(214, 211, 209, 0.72);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 119, 6, 0.28);
  box-shadow: var(--shadow-hover);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(217, 119, 6, 0.68));
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

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

.year-badge,
.play-badge,
.rank-medal {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 17px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--slate-800);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: var(--amber-700);
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 14px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span,
.meta-line span,
.detail-meta span {
  padding: 4px 8px;
  font-size: 12px;
  color: var(--slate-600);
  background: var(--stone-100);
}

.meta-line {
  justify-content: space-between;
}

.card-horizontal {
  display: flex;
  gap: 18px;
  padding: 0;
}

.card-horizontal .poster-link {
  width: 230px;
  flex: 0 0 230px;
  aspect-ratio: 16 / 10;
}

.card-horizontal .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

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

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

.category-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(214, 211, 209, 0.78);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 34%),
    linear-gradient(135deg, var(--white), var(--stone-50));
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 6, 0.34);
  box-shadow: var(--shadow-soft);
}

.category-card span {
  display: block;
  color: var(--slate-800);
  font-size: 19px;
  font-weight: 850;
}

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

.ranking-preview {
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  padding: 42px;
  color: var(--white);
}

.ranking-preview .section-head h2,
.ranking-preview .text-link {
  color: var(--white);
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-list a:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(3px);
}

.rank-number {
  color: var(--amber-100);
  font-size: 22px;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 10px;
  border-radius: 28px;
  padding: 58px;
}

.soft-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.2), transparent 28%),
    linear-gradient(135deg, var(--stone-50), var(--white));
  border: 1px solid var(--stone-200);
}

.page-hero .eyebrow,
.detail-info .eyebrow {
  color: var(--amber-700);
}

.page-hero h1 {
  color: var(--slate-900);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--slate-600);
  font-size: 18px;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 700;
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
  color: var(--slate-800);
  background: var(--stone-50);
  padding: 0 12px;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  background: var(--white);
}

.detail-main {
  background: linear-gradient(to bottom, var(--stone-50), var(--white));
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 38px;
  align-items: center;
  border-radius: 30px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--slate-900), var(--amber-600));
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

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

.detail-info h1 {
  color: var(--slate-900);
}

.detail-one-line {
  margin: 18px 0;
  color: var(--slate-600);
  font-size: 18px;
}

.detail-meta {
  margin: 18px 0 0;
}

.detail-tags {
  justify-content: flex-start;
  margin: 22px 0 28px;
}

.detail-tags span {
  color: var(--slate-700);
  border-color: var(--stone-200);
  background: var(--stone-100);
}

.player-section {
  padding-bottom: 24px;
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--black);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  font-weight: 850;
  font-size: 18px;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-600);
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.38);
}

.article-section {
  color: var(--slate-700);
  font-size: 17px;
}

.article-section h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 26px;
}

.article-section p {
  margin: 0 0 28px;
}

.detail-nearby {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.nearby-link {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  color: var(--slate-800);
  background: var(--stone-100);
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.nearby-link:hover {
  color: var(--amber-700);
  background: var(--amber-50);
}

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

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

.rank-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 140px;
  background: linear-gradient(135deg, var(--slate-900), var(--amber-600));
}

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

.rank-medal {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  font-weight: 900;
  background: var(--amber-600);
}

.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--stone-200);
  background: linear-gradient(to bottom, var(--stone-100), var(--stone-200));
  color: var(--slate-600);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 42px 0 24px;
}

.footer-inner p {
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 800;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 1px solid var(--stone-300);
  text-align: center;
  font-size: 14px;
}

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

@media (max-width: 1050px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

  .mobile-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: grid;
    gap: 8px;
    background: rgba(250, 250, 249, 0.98);
  }

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

  .header-inner {
    width: min(100% - 24px, 1180px);
    height: 68px;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 78vh;
  }

  .hero-content {
    padding: 100px 0 150px;
  }

  .hero-actions {
    flex-direction: column;
    width: min(320px, 100%);
  }

  .hero-control {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .section-head,
  .footer-inner {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .movie-grid,
  .compact-grid,
  .vertical-list,
  .ranking-list,
  .ranking-grid,
  .detail-nearby {
    grid-template-columns: 1fr;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero,
  .ranking-preview {
    padding: 28px;
    border-radius: 22px;
  }

  .card-horizontal,
  .ranking-card {
    grid-template-columns: 1fr;
    display: block;
  }

  .card-horizontal .poster-link {
    width: 100%;
    flex-basis: auto;
  }

  .rank-poster {
    min-height: 210px;
  }
}

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

  .movie-rail .movie-card,
  .movie-rail .card-large {
    width: 82vw;
    flex-basis: 82vw;
  }

  .hero-search {
    bottom: 68px;
  }

  .hero-search button {
    padding: 10px 14px;
  }

  .page-main {
    padding-top: 88px;
  }
}
