:root {
  color-scheme: light;
  --site-blue: #2563eb;
  --site-cyan: #0891b2;
  --site-teal: #0d9488;
  --site-dark: #111827;
  --site-gray: #4b5563;
  --site-light: #f8fafc;
  --site-border: #e5e7eb;
  --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 60%, #f8fafc 100%);
  color: var(--site-dark);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 80rem;
  height: 4.25rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: max-content;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--site-blue);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

.logo-text {
  background: linear-gradient(90deg, var(--site-blue), var(--site-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.8rem;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--site-blue);
  background: #eff6ff;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(18rem, 24vw);
}

.search-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  outline: none;
  background: #ffffff;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--site-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  color: #111827;
}

.mobile-toggle:hover {
  background: #f3f4f6;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--site-border);
  background: #ffffff;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-inner {
  display: grid;
  gap: 0.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
}

.page-main {
  min-height: 62vh;
}

.container {
  width: min(80rem, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  min-height: 38rem;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #0891b2, #0d9488);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.24), transparent 28%), radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.16), transparent 34%), linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  gap: 2rem;
  align-items: center;
  min-height: 38rem;
  padding: 4.5rem 0 7rem;
}

.hero-copy {
  max-width: 45rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-title {
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-title span {
  color: #cffafe;
}

.hero-description {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button-primary,
.button-secondary,
.button-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-blue), var(--site-cyan));
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.25);
}

.button-secondary {
  color: var(--site-blue);
  background: #eff6ff;
}

.button-white {
  color: var(--site-blue);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(255, 255, 255, 0.18);
}

.button-primary:hover,
.button-secondary:hover,
.button-white:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-slider {
  position: relative;
  min-height: 28rem;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  overflow: hidden;
  border-radius: 1.75rem;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.88)), var(--hero-image);
  background-position: center;
  background-size: cover;
  box-shadow: var(--site-shadow);
  opacity: 0;
  transform: translateX(1rem) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

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

.hero-slide-content {
  padding: 1.5rem;
}

.hero-slide-title {
  display: block;
  margin-top: 0.8rem;
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1.25;
  font-weight: 900;
}

.hero-slide-text {
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--site-blue);
}

.badge-dark {
  background: rgba(0, 0, 0, 0.66);
}

.hero-dots {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  gap: 0.45rem;
  z-index: 4;
}

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

.hero-dot.is-active {
  width: 1.8rem;
  background: #ffffff;
}

.section-overlap {
  position: relative;
  z-index: 2;
  margin-top: -4.5rem;
}

.section {
  padding: 4rem 0;
}

.section-soft {
  background: linear-gradient(90deg, #f8fafc, #eff6ff);
}

.section-warm {
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #111827;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title small {
  display: block;
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

.view-more {
  color: var(--site-blue);
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  height: 13rem;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.large-card .poster-wrap {
  height: 22rem;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.72));
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.poster-top,
.poster-bottom {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 2;
}

.poster-top {
  top: 0.75rem;
}

.poster-bottom {
  bottom: 0.75rem;
}

.movie-info {
  padding: 1rem;
}

.large-card .movie-info {
  padding: 1.35rem;
}

.movie-title {
  color: #111827;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.large-card .movie-title {
  font-size: 1.25rem;
}

.movie-desc {
  margin-top: 0.55rem;
  color: #4b5563;
  font-size: 0.94rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.large-card .movie-desc {
  -webkit-line-clamp: 3;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 700;
}

.rating {
  color: #ca8a04;
}

.horizontal-list {
  display: grid;
  gap: 1rem;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 1rem;
  overflow: hidden;
  border-radius: 0.95rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.14);
}

.horizontal-poster {
  position: relative;
  height: 7.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.horizontal-info {
  min-width: 0;
  padding: 0.9rem 1rem 0.9rem 0;
}

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

.category-tile {
  display: block;
  min-height: 10.5rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.14);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
}

.category-title {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 900;
}

.category-intro {
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.55;
}

.page-hero {
  padding: 4rem 0 3rem;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #0891b2, #0d9488);
}

.page-hero h1 {
  max-width: 56rem;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 52rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1rem;
  border: 1px solid var(--site-border);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.filter-label {
  color: #374151;
  font-weight: 800;
}

.filter-button {
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  color: #374151;
  background: #f3f4f6;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: #ffffff;
  background: var(--site-blue);
}

.no-results {
  display: none;
  padding: 3rem 1rem;
  text-align: center;
  color: #6b7280;
  font-weight: 800;
}

.no-results.is-visible {
  display: block;
}

.ranking-list {
  display: grid;
  gap: 0.85rem;
}

.ranking-item {
  display: grid;
  grid-template-columns: 3.25rem 9rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
  font-weight: 900;
}

.ranking-poster {
  height: 5.4rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.ranking-title {
  display: inline-block;
  color: #111827;
  font-size: 1.06rem;
  font-weight: 900;
}

.ranking-title:hover {
  color: var(--site-blue);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  color: #6b7280;
  font-size: 0.92rem;
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(19rem, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 1.25rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #000000;
  box-shadow: var(--site-shadow);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3rem;
  height: 3rem;
  margin-left: -1.5rem;
  margin-top: -1.5rem;
  border: 0.25rem solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: player-spin 1s linear infinite;
  pointer-events: none;
}

@keyframes player-spin {
  to {
    transform: rotate(360deg);
  }
}

.player-shell.is-ready .player-loading {
  display: none;
}

.player-big-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-shell:hover .player-controls,
.player-controls:focus-within {
  opacity: 1;
}

.player-progress {
  width: 100%;
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.player-progress-bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: #3b82f6;
}

.player-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
}

.player-control-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.player-button {
  color: #ffffff;
  font-weight: 900;
}

.player-button:hover {
  color: #93c5fd;
}

.detail-card {
  padding: 1.4rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.detail-title {
  color: #111827;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-line {
  margin-top: 1rem;
  color: #374151;
  font-size: 1.08rem;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
  color: #4b5563;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tag {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 0.85rem;
  font-weight: 800;
}

.article-block {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--site-border);
}

.article-block h2,
.article-block h3 {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 900;
}

.article-block p {
  margin-top: 0.7rem;
  color: #374151;
  line-height: 1.9;
}

.side-card {
  position: sticky;
  top: 5.5rem;
  padding: 1.15rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.side-card h2,
.side-card h3 {
  margin-bottom: 1rem;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 900;
}

.related-list {
  display: grid;
  gap: 0.85rem;
}

.related-item {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
}

.related-poster {
  position: relative;
  height: 4.25rem;
  overflow: hidden;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.related-title {
  display: -webkit-box;
  color: #111827;
  font-weight: 850;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item:hover .related-title {
  color: var(--site-blue);
}

.site-footer {
  margin-top: 4rem;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  width: min(80rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.footer-title {
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 0.9rem;
}

.footer-text,
.footer-link {
  color: #9ca3af;
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-link:hover {
  color: #60a5fa;
}

.footer-bottom {
  width: min(80rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  text-align: center;
  font-size: 0.9rem;
}

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

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

  .hero-slider {
    min-height: 24rem;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-grid {
    padding-top: 3rem;
    padding-bottom: 6.5rem;
  }

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

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

  .ranking-item {
    grid-template-columns: 2.75rem 6.5rem minmax(0, 1fr);
  }

  .ranking-score {
    grid-column: 3;
  }

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

@media (max-width: 560px) {
  .container,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 1rem, 80rem);
  }

  .hero-section {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    gap: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button-primary,
  .button-secondary,
  .button-white {
    width: 100%;
  }

  .hero-slider {
    min-height: 22rem;
  }

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

  .horizontal-card,
  .related-item {
    grid-template-columns: 1fr;
  }

  .horizontal-poster,
  .related-poster {
    height: 10rem;
  }

  .detail-title-row,
  .player-control-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ranking-item {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }

  .ranking-poster {
    grid-column: 1 / -1;
    height: 10rem;
  }

  .ranking-score {
    grid-column: 2;
  }

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