* {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.78);
  --panel-line: rgba(30, 41, 59, 0.8);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #3b82f6;
  --shadow: rgba(8, 145, 178, 0.26);
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.12), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.glass-effect,
.glass-panel {
  border: 1px solid var(--panel-line);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
}

.text-gradient,
.logo strong,
.section-heading h2 span {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
}

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

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

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.28);
  transition: transform 0.3s ease, background 0.3s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(8deg);
  background: rgba(34, 211, 238, 0.2);
}

.logo-copy {
  display: grid;
  gap: 2px;
}

.logo-copy strong {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-copy small {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted-strong);
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover {
  color: var(--cyan);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.55rem;
  cursor: pointer;
}

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

.home-main {
  padding-top: 0;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 0.78rem 1.3rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.btn-primary {
  border: 1px solid rgba(34, 211, 238, 0.44);
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
  color: white;
  box-shadow: 0 12px 32px var(--shadow);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(34, 211, 238, 0.34);
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
}

.btn-ghost,
.section-link {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.5);
  color: var(--muted-strong);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  padding: 7px 13px;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-slider {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 44%, rgba(2, 6, 23, 0.26) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(740px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 96px;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  padding: 6px 10px;
  color: var(--muted-strong);
  font-size: 0.78rem;
}

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

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-controls > button,
.hero-dot {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: white;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.8rem;
}

.hero-controls > button:hover,
.hero-dot:hover,
.hero-dot.is-active {
  border-color: rgba(34, 211, 238, 0.65);
  background: rgba(8, 145, 178, 0.72);
  transform: translateY(-1px);
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
}

.hero-dot.is-active {
  width: 32px;
}

.home-search {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: -64px auto 0;
  border-radius: 24px;
  padding: 28px;
}

.home-search h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.story-panel h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.home-search-form,
.filter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.home-search-form input,
.search-box input,
.filter-row select {
  width: 100%;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.7);
  color: var(--text);
  padding: 0.95rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-search-form input:focus,
.search-box input:focus,
.filter-row select:focus {
  border-color: var(--cyan-dark);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.16);
}

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

.container.content-section {
  padding-top: 68px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 24px;
  width: min(1280px, calc(100% - 32px));
}

.container .section-heading {
  width: 100%;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.container .movie-grid {
  width: 100%;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, 0.95);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow: 0 22px 50px rgba(8, 145, 178, 0.18);
  transform: translateY(-6px);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(15, 23, 42, 0.9);
}

.video-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .video-card-thumb,
.category-card:hover img,
.ranking-card:hover img,
.detail-poster-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 26%, rgba(2, 6, 23, 0.86) 100%);
}

.poster-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  padding: 5px 10px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  color: white;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.26);
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.card-body.compact {
  padding: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.card-body h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-body p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.65;
}

.tag-row {
  gap: 6px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 22px;
  background: var(--panel);
  padding: 18px;
}

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

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.34));
}

.category-card strong,
.category-card small {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card strong {
  margin-top: 88px;
  color: white;
  font-size: 1.15rem;
}

.category-card small {
  margin-top: 8px;
  color: var(--muted-strong);
  line-height: 1.55;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.rank-item,
.ranking-row {
  display: grid;
  align-items: center;
  border: 1px solid rgba(30, 41, 59, 0.85);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.rank-item {
  grid-template-columns: 48px 88px 1fr;
  gap: 14px;
  padding: 10px;
}

.rank-item:hover,
.ranking-row:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(15, 23, 42, 0.94);
  transform: translateY(-3px);
}

.rank-no {
  color: var(--cyan);
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 88px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item strong,
.ranking-row strong {
  display: block;
  color: white;
  line-height: 1.45;
}

.rank-item small,
.ranking-row small,
.ranking-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 62px;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.16), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.compact-hero {
  text-align: left;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted-strong);
  font-size: 1.08rem;
  line-height: 1.8;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a:hover {
  color: var(--cyan);
}

.overview-stack {
  display: grid;
  gap: 26px;
  padding: 68px 0;
}

.category-overview-card {
  border-radius: 24px;
  padding: 26px;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.category-overview-head p {
  max-width: 760px;
  color: var(--muted-strong);
  line-height: 1.7;
}

.filter-panel {
  margin-bottom: 28px;
}

.filter-row {
  grid-template-columns: minmax(260px, 1fr) 180px 180px 180px;
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-box input {
  padding-left: 42px;
}

.list-section {
  padding-bottom: 68px;
}

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

.empty-state {
  display: none;
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  padding: 28px;
  color: var(--muted-strong);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

.ranking-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 20px;
  background: var(--panel);
}

.ranking-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  opacity: 0.64;
  transition: transform 0.55s ease;
}

.ranking-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 60%);
  content: "";
}

.ranking-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.18);
  padding: 7px 11px;
  color: var(--cyan);
  font-weight: 900;
}

.ranking-info {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
}

.ranking-info strong {
  display: block;
  font-size: 1.1rem;
}

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

.ranking-row {
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  padding: 14px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 72px;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-bg-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.68)),
    linear-gradient(0deg, #020617, transparent 54%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 38px;
  align-items: center;
}

.detail-poster-card {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.42);
}

.detail-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.detail-copy p {
  max-width: 860px;
  color: var(--muted-strong);
  font-size: 1.12rem;
  line-height: 1.85;
}

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

.detail-list div {
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.68);
  padding: 14px;
}

.detail-list dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.detail-list dd {
  margin: 0;
  color: white;
  font-weight: 700;
}

.player-section {
  padding-top: 52px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 26px;
  background: black;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.46);
  aspect-ratio: 16 / 9;
}

.movie-player,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  z-index: 1;
  background: #000;
}

.player-cover {
  z-index: 3;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  padding: 0;
  background: #000;
  color: white;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.56;
}

.player-cover::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.72));
  content: "";
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  width: clamp(74px, 12vw, 116px);
  height: clamp(74px, 12vw, 116px);
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.78);
  font-size: clamp(1.8rem, 5vw, 3rem);
  box-shadow: 0 0 44px rgba(34, 211, 238, 0.34);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background 0.25s ease;
}

.player-cover:hover .play-badge {
  background: rgba(34, 211, 238, 0.86);
  transform: translate(-50%, -50%) scale(1.06);
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.article-section {
  padding-top: 36px;
}

.story-panel {
  border-radius: 24px;
  padding: clamp(22px, 4vw, 38px);
}

.story-panel h2 + p {
  margin-top: 14px;
}

.story-panel p {
  color: var(--muted-strong);
  font-size: 1.04rem;
  line-height: 1.9;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(30, 41, 59, 0.78);
  background: rgba(2, 6, 23, 0.72);
  padding: 38px 0;
}

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

.footer-logo {
  display: block;
  margin-bottom: 12px;
  color: white;
  font-size: 1.2rem;
}

.site-footer p,
.footer-links a {
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

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

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

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

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

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

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

@media (max-width: 860px) {
  .nav-wrap {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(30, 41, 59, 0.94);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    padding: 16px;
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .home-main {
    padding-top: 0;
  }

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

  .hero-content {
    padding-top: 110px;
  }

  .home-search,
  .detail-layout,
  .footer-grid,
  .category-overview-head {
    grid-template-columns: 1fr;
  }

  .home-search-form {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .mini-grid,
  .category-list,
  .search-list,
  .ranking-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid,
  .rank-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 54px 1fr;
  }

  .ranking-row small {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .container,
  .section-heading,
  .movie-grid,
  .category-grid,
  .rank-grid {
    width: min(100% - 22px, 1280px);
  }

  .hero-content {
    width: min(100% - 22px, 740px);
  }

  .hero-actions,
  .section-heading,
  .filter-row {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .hero-actions a,
  .section-link,
  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
  }

  .movie-grid,
  .mini-grid,
  .category-list,
  .search-list,
  .ranking-grid-large {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 720px;
  }

  .home-search {
    margin-top: -38px;
    padding: 20px;
  }

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