:root {
  color-scheme: light;
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --blue: #2563eb;
  --cyan: #0891b2;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --dark: #111827;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f9fafb;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body,
input,
button,
textarea,
select {
  font: inherit;
}

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

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

button {
  cursor: pointer;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 10px 25px rgba(185, 28, 28, 0.25);
}

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

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffedd5;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.header-search input {
  width: 150px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 7px 10px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.header-search button,
.primary-button,
.big-search button,
.search-page-form button {
  border-radius: 12px;
  color: #fff;
  background: var(--orange);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.18);
}

.header-search button:hover,
.primary-button:hover,
.big-search button:hover,
.search-page-form button:hover {
  transform: translateY(-2px);
  background: var(--orange-dark);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.menu-toggle {
  display: none;
  color: #fff;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  width: 44px;
  height: 44px;
}

.hero-carousel {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #7c2d12, #7f1d1d);
}

@media (min-width: 768px) {
  .hero-carousel {
    height: 600px;
  }
}

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  color: #fff;
  max-width: 780px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  background: #dc2626;
  color: #fff;
  margin-bottom: 18px;
}

.eyebrow {
  color: var(--orange);
  background: #fff7ed;
  margin-bottom: 12px;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 11px;
  font-size: 13px;
}

.movie-tags span {
  color: var(--orange-dark);
  background: #fff7ed;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.16);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.82);
}

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

.primary-button,
.ghost-button,
.text-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-button {
  min-height: 48px;
  padding: 0 28px;
}

.ghost-button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.34);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.quick-search-section {
  margin-top: -44px;
  position: relative;
  z-index: 5;
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.quick-search-card h2,
.section-heading h2,
.inner-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.quick-search-card p,
.section-heading p,
.inner-hero p,
.content-card p,
.detail-info p {
  color: var(--muted);
  line-height: 1.75;
}

.big-search,
.search-page-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fafb;
}

.big-search input,
.search-page-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px;
}

.big-search button,
.search-page-form button {
  padding: 0 24px;
}

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

.page-section.muted,
.muted {
  background: #f3f4f6;
}

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

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

.section-heading p {
  margin: 8px 0 0;
}

.section-link,
.text-button {
  color: var(--orange);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}

.play-badge,
.score-badge {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  background: rgba(234, 88, 12, 0.9);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.score-badge {
  top: 12px;
  right: 12px;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.62);
  font-weight: 800;
}

.movie-body {
  padding: 18px;
}

.movie-body h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.movie-body h3 a:hover {
  color: var(--orange);
}

.movie-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: #6b7280;
  font-size: 13px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.movie-card-horizontal .movie-cover {
  height: 100%;
  aspect-ratio: auto;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.category-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.18));
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 22px;
}

.category-card strong {
  margin-top: 112px;
  font-size: 24px;
  font-style: normal;
}

.category-card em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.55;
}

.feature-band {
  color: #fff;
  padding: 72px 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.feature-band .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.feature-band .section-heading h2,
.feature-band .section-heading p,
.feature-band .section-link {
  color: #fff;
}

.horizontal-slider {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 0 18px;
  scroll-snap-type: x proximity;
}

.slider-item {
  width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

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

.rank-list,
.ranking-list {
  display: grid;
  gap: 14px;
}

.rank-row,
.ranking-card {
  display: grid;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row {
  grid-template-columns: 48px 72px 1fr;
}

.rank-row:hover,
.ranking-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-number,
.ranking-number {
  color: var(--orange);
  font-size: 22px;
  font-weight: 900;
}

.rank-row img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.spotlight-card,
.content-card {
  border-radius: 22px;
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.spotlight-card h2 {
  font-size: 30px;
  margin: 0 0 14px;
}

.spotlight-card p {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

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

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.site-footer p {
  color: #9ca3af;
  line-height: 1.75;
}

.site-footer h3 {
  color: #fff;
  margin: 0 0 18px;
}

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

.site-footer li + li {
  margin-top: 10px;
}

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

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

.inner-hero,
.detail-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #7c2d12, #111827);
}

.inner-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
}

.inner-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transform: scale(1.04);
}

.inner-hero-shade,
.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.38));
}

.inner-hero-content,
.detail-hero-content {
  position: relative;
  z-index: 2;
}

.inner-hero h1,
.detail-info h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
}

.inner-hero p,
.detail-info p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.compact-hero {
  min-height: 260px;
  background: linear-gradient(135deg, #7c2d12, #991b1b);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumbs a:hover {
  color: #fed7aa;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.filter-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 800;
}

.filter-search input {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 14px;
  padding: 13px 14px;
}

.filter-search input:focus {
  border-color: #fdba74;
  box-shadow: 0 0 0 4px rgba(253, 186, 116, 0.22);
}

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

.filter-pills button {
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  padding: 10px 15px;
  font-weight: 700;
}

.filter-pills button.active,
.filter-pills button:hover {
  color: #fff;
  background: var(--orange);
}

.empty-state {
  margin: 28px 0;
  border-radius: 18px;
  background: #fff7ed;
  color: var(--orange-dark);
  padding: 20px;
  text-align: center;
  font-weight: 800;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.overview-cover {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  border-radius: 18px;
  background: #111827;
}

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

.overview-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

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

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

.overview-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.overview-preview span {
  border-radius: 999px;
  background: #f3f4f6;
  padding: 7px 10px;
  color: #4b5563;
  font-size: 13px;
}

.ranking-card {
  grid-template-columns: 62px 120px 1fr auto;
}

.ranking-cover img {
  width: 120px;
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
}

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

.ranking-body p {
  margin: 0 0 10px;
  color: var(--muted);
}

.search-page-form {
  max-width: 720px;
  margin-top: 26px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}

.search-page-form input {
  color: #fff;
}

.search-page-form input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.search-title-row {
  margin-bottom: 24px;
}

.search-title-row h2 {
  margin: 0;
  font-size: 32px;
}

.detail-hero {
  padding: 46px 0 64px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #111827;
}

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

.detail-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  color: #fff;
  background: rgba(234, 88, 12, 0.92);
  font-size: 30px;
  transform: translate(-50%, -50%);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid span {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  padding: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.detail-meta-grid strong {
  display: block;
  margin-bottom: 4px;
  color: #fed7aa;
  font-size: 12px;
}

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

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

.video-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #fff;
  background: rgba(234, 88, 12, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.video-play-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

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

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

[hidden] {
  display: none !important;
}

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

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

@media (max-width: 860px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: 16px;
  }

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

  .header-search {
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }

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

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

  .filter-pills {
    justify-content: flex-start;
  }

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

  .ranking-card .text-button {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

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

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

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

  .hero-carousel {
    height: 560px;
  }

  .hero-overlay {
    padding-bottom: 58px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-actions,
  .big-search,
  .search-page-form {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .big-search button,
  .search-page-form button {
    width: 100%;
  }

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

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

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

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

  .rank-row {
    grid-template-columns: 44px 64px 1fr;
  }

  .ranking-card {
    grid-template-columns: 42px 80px 1fr;
    gap: 12px;
  }

  .ranking-cover img {
    width: 80px;
    height: 62px;
  }

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