@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700;800&display=swap');

:root {
  --ice-950: #020617;
  --ice-925: #06111f;
  --ice-900: #0f172a;
  --ice-850: #152037;
  --ice-800: #1e293b;
  --ice-700: #334155;
  --ice-500: #64748b;
  --ice-400: #94a3b8;
  --ice-300: #cbd5e1;
  --ice-200: #e2e8f0;
  --ice-50: #f8fafc;
  --frost-700: #0369a1;
  --frost-600: #0284c7;
  --frost-500: #0ea5e9;
  --frost-400: #38bdf8;
  --glacier-600: #0891b2;
  --yellow: #facc15;
  --danger: #ef4444;
  --shadow-ice: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-frost: 0 8px 32px rgba(31, 38, 135, 0.37);
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(2, 132, 199, 0.22), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(8, 145, 178, 0.18), transparent 30rem),
    var(--ice-950);
  color: var(--ice-50);
  font-family: Inter, 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 85%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container-custom {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--frost-600), var(--glacier-600));
  color: white;
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.35);
  transition: transform 0.3s ease;
}

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

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

.brand-copy strong {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 0.2rem;
  color: var(--ice-400);
  font-size: 0.78rem;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link,
.mobile-link {
  border-radius: 0.75rem;
  color: var(--ice-300);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 0.68rem 0.9rem;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  background: var(--frost-600);
  color: white;
}

.mobile-toggle {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.8rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  color: white;
  background: rgba(30, 41, 59, 0.9);
}

.mobile-toggle span {
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--ice-800);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.45rem;
}

.mobile-link {
  display: block;
  padding: 0.9rem 1rem;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ice-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.02);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.76) 46%, rgba(2, 6, 23, 0.08) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.18) 42%, rgba(2, 6, 23, 0.6) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(100%, 48rem);
  padding-top: 2rem;
  animation: fadeIn 0.55s ease both;
}

.hero-tags,
.hero-meta,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-tags span,
.category-badge,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.9);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.72rem;
}

.hero-tags strong,
.rating-badge {
  color: var(--yellow);
  font-weight: 800;
}

.hero-copy h1,
.detail-copy h1,
.page-hero h1 {
  margin: 1.2rem 0 0.9rem;
  font-size: clamp(2.35rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.55);
}

.hero-copy p,
.detail-copy p,
.page-hero p {
  width: min(100%, 46rem);
  color: var(--ice-200);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-meta {
  margin: 1.2rem 0 1.6rem;
  color: var(--ice-300);
}

.hero-meta span {
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.78);
  padding: 0.42rem 0.72rem;
}

.btn-primary,
.btn-secondary,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  min-height: 2.75rem;
  padding: 0.78rem 1.2rem;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--frost-600);
  color: white;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.32);
}

.btn-primary:hover,
.section-more:hover {
  transform: translateY(-2px);
  background: var(--frost-700);
  box-shadow: var(--shadow-frost);
}

.btn-secondary,
.section-more {
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: rgba(15, 23, 42, 0.78);
  color: var(--ice-100, #f1f5f9);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.7);
  color: white;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  color: white;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  line-height: 1;
}

.hero-control:hover {
  background: var(--ice-800);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

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

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  width: 2rem;
  background: var(--frost-400);
}

.quick-search {
  margin-top: -3.5rem;
  position: relative;
  z-index: 6;
}

.quick-search-inner,
.filter-panel,
.search-large {
  border: 1px solid rgba(30, 41, 59, 0.96);
  border-radius: var(--radius-2xl);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-ice);
  backdrop-filter: blur(18px);
}

.quick-search-inner {
  padding: 1rem;
}

.search-box,
.search-large {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.search-box input,
.search-large input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid var(--ice-700);
  border-radius: 0.8rem;
  outline: 0;
  background: rgba(2, 6, 23, 0.68);
  color: white;
  padding: 0.82rem 0.95rem;
}

.search-box input:focus,
.search-large input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--frost-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.category-pills a {
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.72);
  color: var(--ice-300);
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
}

.category-pills a:hover {
  color: white;
  background: rgba(2, 132, 199, 0.86);
}

.section-block {
  padding: 4.5rem 0;
}

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

.eyebrow {
  display: inline-flex;
  color: var(--frost-400);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2,
.player-heading h2,
.content-card h2,
.filter-panel h2 {
  margin: 0.3rem 0 0.25rem;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.2;
}

.section-head p,
.player-heading p,
.filter-panel p,
.content-card p {
  margin: 0;
  color: var(--ice-400);
  line-height: 1.8;
}

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

.card {
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow-ice);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-0.25rem) scale(1.015);
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: var(--shadow-frost);
}

.movie-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ice-800), var(--ice-950));
}

.movie-poster img,
.detail-poster img,
.rank-thumb img,
.compact-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.movie-card:hover .movie-poster img,
.compact-card:hover img,
.category-card:hover img {
  transform: scale(1.1);
}

.rating-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border-radius: 0.65rem;
  background: rgba(2, 6, 23, 0.82);
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
}

.category-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: rgba(2, 132, 199, 0.9);
}

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
}

.movie-body strong {
  color: var(--ice-50);
  font-size: 1.08rem;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover .movie-body strong,
.compact-card:hover strong {
  color: var(--frost-400);
}

.movie-body em,
.compact-card small,
.rank-main em {
  color: var(--ice-400);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: auto;
  color: var(--ice-500);
  font-size: 0.78rem;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 1.25rem;
}

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

.category-card,
.category-overview-card {
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.85));
  box-shadow: var(--shadow-ice);
}

.category-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  overflow: hidden;
  padding: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(56, 189, 248, 0.42);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  height: 7rem;
}

.category-cover-stack img {
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
}

.category-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.category-card-body strong,
.category-overview-head h2 {
  font-size: 1.3rem;
}

.category-card-body em,
.category-card-body small,
.category-overview-head p {
  color: var(--ice-400);
  font-style: normal;
  line-height: 1.6;
}

.category-overview-card {
  padding: 1.25rem;
}

.category-overview-head {
  margin-bottom: 1rem;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.compact-card {
  display: grid;
  gap: 0.45rem;
}

.compact-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0.8rem;
  background: var(--ice-800);
}

.compact-card strong {
  line-height: 1.35;
  font-size: 0.92rem;
}

.page-hero {
  position: relative;
  padding: 5rem 0 3.25rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.95));
}

.compact-page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  color: var(--ice-400);
  font-size: 0.88rem;
}

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

.filter-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.filter-count {
  margin: 0;
  color: var(--ice-400);
}

.rank-list {
  display: grid;
  gap: 0.75rem;
}

.rank-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(30, 41, 59, 0.92);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.82);
  padding: 0.9rem 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.rank-row:hover {
  transform: translateX(0.25rem);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.98);
}

.rank-number {
  display: inline-grid;
  place-items: center;
  min-width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--frost-600), var(--glacier-600));
  color: white;
  font-weight: 900;
}

.rank-info {
  color: var(--ice-400);
  font-size: 0.86rem;
}

.rank-row strong,
.rank-row b {
  color: var(--yellow);
}

.rank-row-large {
  grid-template-columns: auto 4.5rem minmax(0, 1fr);
}

.rank-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.7rem;
  background: var(--ice-800);
}

.rank-main {
  min-width: 0;
}

.rank-main strong {
  display: block;
  color: var(--ice-50);
  margin-bottom: 0.25rem;
}

.rank-row-large .rank-info,
.rank-row-large b {
  display: none;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 4.2rem 0 3rem;
  background: var(--ice-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(10px) saturate(1.2);
  transform: scale(1.05);
}

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

.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.75) 52%, rgba(2, 6, 23, 0.95) 100%),
    linear-gradient(0deg, var(--ice-950), transparent 55%);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 16 / 9;
  background: var(--ice-800);
}

.detail-copy h1 {
  font-size: clamp(2rem, 5vw, 4.4rem);
}

.player-heading {
  margin-bottom: 1.2rem;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: black;
}

.video-player {
  width: 100%;
  height: 100%;
  background: black;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at center, rgba(2, 132, 199, 0.32), transparent 16rem),
    rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(2px);
}

.play-cover span {
  display: inline-grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: var(--frost-600);
  box-shadow: 0 16px 50px rgba(2, 132, 199, 0.45);
  font-size: 2rem;
}

.play-cover strong {
  font-size: 1.35rem;
}

.play-cover em {
  color: var(--ice-300);
  font-style: normal;
}

.video-shell.is-ready .play-cover {
  display: none;
}

.player-status {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--ice-300);
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
}

.video-shell.is-ready .player-status {
  opacity: 0;
  pointer-events: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.content-card {
  padding: 1.4rem;
}

.content-card p {
  color: var(--ice-300);
  white-space: pre-line;
}

.info-grid {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

.info-grid div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.78);
  padding-bottom: 0.7rem;
}

.info-grid span {
  color: var(--ice-500);
}

.info-grid strong {
  text-align: right;
  color: var(--ice-100, #f1f5f9);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list span {
  background: rgba(2, 132, 199, 0.2);
  color: var(--frost-300, #7dd3fc);
}

.search-page {
  min-height: 40rem;
}

.search-large {
  padding: 1rem;
  margin-bottom: 1rem;
}

.site-footer {
  border-top: 1px solid var(--ice-800);
  background: rgba(15, 23, 42, 0.95);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-grid h3 {
  margin: 0 0 0.8rem;
}

.footer-grid a:not(.brand) {
  display: block;
  margin: 0.45rem 0;
  color: var(--ice-400);
}

.footer-grid a:hover {
  color: var(--frost-400);
}

.footer-brand p {
  max-width: 32rem;
  color: var(--ice-400);
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--ice-800);
  padding-top: 1.2rem;
  padding-bottom: 1.4rem;
  color: var(--ice-500);
  font-size: 0.9rem;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .container-custom {
    padding: 0 1.5rem;
  }

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

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

  .filter-controls {
    grid-template-columns: 1.3fr repeat(3, minmax(8rem, 0.7fr));
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-toggle {
    display: none;
  }

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

  .rank-row-large {
    grid-template-columns: auto 5.5rem minmax(0, 1fr) auto auto;
  }

  .rank-row-large .rank-info,
  .rank-row-large b {
    display: inline;
  }

  .detail-layout {
    grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr);
  }

  .detail-poster {
    aspect-ratio: 3 / 4;
  }

  .detail-content-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  }

  .full-width {
    grid-column: 1 / -1;
  }

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

@media (min-width: 1024px) {
  .container-custom {
    padding: 0 2rem;
  }

  .hero {
    height: 80vh;
  }

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

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

@media (min-width: 1280px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 640px;
  }

  .hero-control {
    display: none;
  }

  .quick-search {
    margin-top: -2rem;
  }

  .search-box,
  .search-large {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row .rank-info,
  .rank-row strong,
  .rank-row b {
    grid-column: 2;
  }
}
