:root {
  --jelly-bg-primary: #f8f9ff;
  --jelly-bg-secondary: #eef2ff;
  --jelly-text-primary: #1f2937;
  --jelly-text-secondary: #64748b;
  --jelly-accent-pink: #f093fb;
  --jelly-accent-lavender: #764ba2;
  --jelly-accent-blue: #667eea;
  --jelly-accent-mint: #00f2fe;
  --jelly-accent-peach: #ffd4c4;
  --jelly-moon: #e8eaf6;
  --shadow-soft: 0 8px 32px rgba(31, 38, 135, 0.15), 0 2px 8px rgba(31, 38, 135, 0.1);
  --shadow-hover: 0 16px 48px rgba(31, 38, 135, 0.25), 0 4px 12px rgba(31, 38, 135, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--jelly-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #4facfe, #00f2fe);
  background-size: 400% 400%;
  animation: gradientShift 30s ease infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.42), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(255, 212, 196, 0.34), transparent 26%),
    radial-gradient(circle at 50% 85%, rgba(0, 242, 254, 0.24), transparent 34%);
  z-index: -1;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.jelly-card {
  overflow: hidden;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.jelly-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.jelly-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-soft);
}

.jelly-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.jelly-button {
  color: #5b21b6;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72));
  box-shadow: 0 4px 16px rgba(31, 38, 135, 0.15);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
}

.jelly-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(31, 38, 135, 0.25);
}

.jelly-gradient-text {
  color: transparent;
  background-image: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  background-clip: text;
  -webkit-background-clip: text;
}

.moon-glow {
  position: relative;
}

.moon-glow::before {
  content: "";
  position: absolute;
  inset: -50%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(232, 234, 246, 0.45) 0%, transparent 70%);
  pointer-events: none;
  animation: moonPulse 4s ease-in-out infinite;
}

@keyframes moonPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.text-shadow-soft {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.line-clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.video-card-hover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.28), rgba(240, 147, 251, 0.24));
}

.video-card-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 62%);
  transition: opacity 0.3s ease;
}

.video-card-hover:hover::after {
  opacity: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-radius: 0;
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 1.6rem;
  background: linear-gradient(135deg, #c4ddff, #ffd4c4);
  box-shadow: 0 8px 26px rgba(118, 75, 162, 0.24);
}

.brand-text {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

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

.desktop-nav > a,
.nav-dropdown > button {
  color: #334155;
  font-weight: 700;
  background: transparent;
  border: 0;
  padding: 0.45rem 0;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown > button:hover {
  color: #7c3aed;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  width: 300px;
  padding: 0.8rem;
  border-radius: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-panel a {
  padding: 0.65rem 0.75rem;
  border-radius: 1rem;
  color: #475569;
  font-size: 0.92rem;
}

.dropdown-panel a:hover {
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.52);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-search input,
.mobile-search input,
.filter-input,
.tool-panel select {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #334155;
  background: rgba(255, 255, 255, 0.72);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.header-search input,
.mobile-search input {
  width: 210px;
  padding: 0.72rem 1rem;
}

.header-search button,
.mobile-search button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 1rem;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #f093fb);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #475569;
  background: rgba(255, 255, 255, 0.42);
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  padding: 1rem;
  border-radius: 1.2rem;
}

.mobile-panel.open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.mobile-panel nav a {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.45);
  font-weight: 800;
}

.page-shell {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 108px 0 44px;
}

.home-shell {
  padding-top: 104px;
}

.content-section {
  margin-top: 4rem;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.05;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  text-align: right;
}

.hero-carousel {
  position: relative;
  height: clamp(420px, 58vw, 580px);
  min-height: 420px;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-image,
.hero-image img {
  width: 100%;
  height: 100%;
}

.hero-image img {
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.45) 45%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 45%);
}

.hero-content {
  position: absolute;
  left: clamp(1.5rem, 6vw, 4.5rem);
  bottom: clamp(2rem, 6vw, 4rem);
  width: min(720px, calc(100% - 3rem));
  color: white;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.75);
}

.hero-content h1 {
  margin: 1rem 0;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.75;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.3s ease, background 0.3s ease;
}

.hero-dots button.active {
  width: 34px;
  background: rgba(255, 255, 255, 0.95);
}

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

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

.poster-link {
  display: block;
  height: 100%;
}

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

.poster-frame img,
.wide-cover img,
.detail-side img,
.category-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duration-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
}

.play-float {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.poster-body,
.wide-body,
.category-overview-body {
  padding: 1rem;
}

.poster-body h3,
.wide-body h3 {
  margin: 0.55rem 0 0.5rem;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.35;
}

.summary {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
}

.movie-meta {
  margin-top: 0.8rem;
  color: #7c8292;
  font-size: 0.82rem;
  line-height: 1.4;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 1.5rem;
  align-items: start;
}

.wide-grid {
  display: grid;
  gap: 1rem;
}

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

.movie-card-wide .wide-link {
  display: flex;
  min-height: 178px;
}

.wide-cover {
  width: 160px;
  flex: 0 0 160px;
}

.rank-panel {
  padding: 1.2rem;
}

.mini-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mini-heading h2 {
  margin: 0;
  font-size: 1.55rem;
}

.mini-heading a {
  color: #7c3aed;
  font-weight: 800;
}

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

.rank-row {
  border-radius: 1rem;
}

.rank-row a {
  display: grid;
  grid-template-columns: 44px 54px minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem;
}

.rank-number {
  color: #7c3aed;
  font-weight: 950;
}

.rank-row img {
  width: 54px;
  height: 72px;
  border-radius: 0.8rem;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.28);
}

.rank-info {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  overflow: hidden;
  color: #64748b;
  font-size: 0.82rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-heat {
  color: #7c3aed;
  font-weight: 800;
}

.rank-page-list .rank-row a {
  grid-template-columns: 56px 76px minmax(0, 1fr) auto;
  padding: 1rem;
}

.rank-page-list .rank-row img {
  width: 76px;
  height: 102px;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 250px);
  gap: 1rem;
  overflow-x: auto;
  padding: 0 0.1rem 1rem;
}

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

.category-tile {
  display: grid;
  gap: 0.65rem;
  min-height: 180px;
  padding: 1.3rem;
}

.category-tile span {
  font-size: 2.2rem;
}

.category-tile strong {
  color: #1f2937;
  font-size: 1.2rem;
}

.category-tile em {
  color: #64748b;
  font-style: normal;
  line-height: 1.6;
}

.inner-shell {
  padding-top: 116px;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.3rem, 4vw, 2.4rem);
}

.compact-hero h1 {
  margin: 0.75rem 0 0.8rem;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.8;
}

.category-overview-card a {
  display: block;
}

.category-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 150px;
  background: rgba(255, 255, 255, 0.28);
}

.category-overview-body span {
  font-size: 2rem;
}

.category-overview-body h2 {
  margin: 0.55rem 0;
}

.category-overview-body p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.tool-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
  padding: 1rem;
  border-radius: 1.25rem;
}

.filter-input {
  flex: 1 1 260px;
  min-height: 48px;
  padding: 0 1.2rem;
}

.tool-panel select {
  min-height: 48px;
  padding: 0 1rem;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.quick-filters button {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: #5b21b6;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.62);
}

.quick-filters button.active {
  color: white;
  background: linear-gradient(135deg, #667eea, #f093fb);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.5fr);
  gap: 1.4rem;
  align-items: stretch;
}

.player-card {
  padding: 0.7rem;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #7c3aed;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.36), rgba(15, 23, 42, 0.06));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: clamp(72px, 12vw, 108px);
  height: clamp(72px, 12vw, 108px);
  border-radius: 999px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-side {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.detail-side img {
  border-radius: 1.1rem;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.28);
}

.detail-side h1 {
  margin: 0.8rem 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.detail-one-line {
  margin: 0 0 1rem;
  color: #475569;
  line-height: 1.7;
}

.detail-side .detail-meta span {
  color: #64748b;
  background: rgba(124, 58, 237, 0.08);
}

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

.tag-list span {
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  color: #5b21b6;
  font-size: 0.84rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
}

.detail-content {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.detail-content h2 {
  margin: 0 0 0.8rem;
  font-size: 1.65rem;
}

.detail-content h2:not(:first-child) {
  margin-top: 2rem;
}

.detail-content p {
  margin: 0;
  color: #334155;
  font-size: 1.04rem;
  line-height: 1.95;
}

.site-footer {
  margin-top: 2rem;
  border-radius: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
}

.footer-brand {
  margin-bottom: 0.7rem;
  font-size: 1.4rem;
  font-weight: 950;
}

.footer-inner p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.footer-links a {
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  color: #475569;
  background: rgba(255, 255, 255, 0.42);
  font-weight: 700;
}

.footer-links a:hover {
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.72);
}

.movie-card.hidden-card {
  display: none;
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .wide-grid-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 68px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .page-shell,
  .home-shell,
  .inner-shell {
    width: min(100% - 1rem, 1280px);
    padding-top: 88px;
  }

  .hero-carousel {
    min-height: 520px;
    height: 76vh;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.28));
  }

  .hero-content {
    left: 1.2rem;
    bottom: 4rem;
    width: calc(100% - 2.4rem);
  }

  .hero-dots {
    left: 1.2rem;
    right: auto;
    bottom: 1.5rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 0.65rem;
    text-align: left;
  }

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

  .poster-body,
  .wide-body {
    padding: 0.82rem;
  }

  .poster-body h3,
  .wide-body h3 {
    font-size: 0.96rem;
  }

  .movie-card-wide .wide-link {
    min-height: 146px;
  }

  .wide-cover {
    width: 116px;
    flex-basis: 116px;
  }

  .page-hero {
    display: block;
  }

  .page-hero .jelly-button {
    margin-top: 1rem;
  }

  .detail-side {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .rank-row a,
  .rank-page-list .rank-row a {
    grid-template-columns: 42px 56px minmax(0, 1fr);
  }

  .rank-heat {
    display: none;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .horizontal-scroll {
    grid-auto-columns: minmax(220px, 78vw);
  }

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

  .detail-side img {
    width: min(220px, 70vw);
  }
}
