:root {
  --jelly-bg-primary: #f8f9fe;
  --jelly-bg-secondary: #ffffff;
  --jelly-text-primary: #2d3748;
  --jelly-text-secondary: #718096;
  --jelly-accent-mint: #b8e6d5;
  --jelly-accent-lavender: #d4c5f9;
  --jelly-accent-pink: #ffc4dd;
  --jelly-accent-blue: #c4ddff;
  --jelly-accent-peach: #ffd4c4;
  --jelly-moon: #e8eaf6;
  --purple: #667eea;
  --violet: #764ba2;
  --pink: #f093fb;
  --blue: #4facfe;
  --cyan: #00f2fe;
  --shadow: 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;
  scroll-behavior: smooth;
}

html {
  min-width: 320px;
}

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 {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(255, 196, 221, 0.35), transparent 30%),
    radial-gradient(circle at 50% 85%, rgba(196, 221, 255, 0.30), transparent 32%);
  pointer-events: none;
}

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

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

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

main {
  overflow: hidden;
}

.jelly-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  transition: transform 0.4s cubic-bezier(.4, 0, .2, 1), box-shadow 0.4s cubic-bezier(.4, 0, .2, 1), border-color 0.3s ease;
}

.jelly-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.48);
}

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

.jelly-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.72rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #36405f;
  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);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(24px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.jelly-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.88));
  box-shadow: 0 8px 24px rgba(31, 38, 135, 0.25);
}

.jelly-button.primary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
}

.jelly-button.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.jelly-button.small {
  min-height: 38px;
  padding: 0.52rem 1rem;
  font-size: 0.9rem;
}

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

.moon-glow {
  position: relative;
}

.moon-glow::before {
  position: absolute;
  top: -48%;
  left: -48%;
  width: 196%;
  height: 196%;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(232, 234, 246, 0.48), transparent 70%);
  animation: moonPulse 4s ease-in-out infinite;
  pointer-events: none;
}

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

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

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--jelly-accent-lavender), var(--jelly-accent-pink));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 30px rgba(118, 75, 162, 0.25);
}

.brand-text {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  color: rgba(45, 55, 72, 0.78);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #5a4ab2;
  background: rgba(255, 255, 255, 0.52);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  width: 310px;
  padding: 0.8rem;
  border-radius: 1.25rem;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

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

.dropdown-panel a,
.mobile-nav a {
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  color: rgba(45, 55, 72, 0.78);
  font-weight: 700;
}

.dropdown-panel a:hover,
.mobile-nav a:hover {
  color: #5a4ab2;
  background: rgba(255, 255, 255, 0.55);
}

.mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #4a5568;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 0.65rem;
  border-radius: 1.25rem;
}

.hero-section {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
  padding-top: 98px;
}

.hero-carousel {
  position: relative;
  min-height: clamp(560px, 72vh, 760px);
  overflow: hidden;
  border-radius: 2.2rem;
  box-shadow: 0 30px 80px rgba(20, 24, 80, 0.32);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: center;
  gap: clamp(1rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 5rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.2) brightness(0.78);
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(28, 23, 70, 0.86), rgba(44, 40, 116, 0.50), rgba(240, 147, 251, 0.22)),
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.25), transparent 35%);
}

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

.hero-content {
  max-width: 760px;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.16);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section .eyebrow,
.page-main .eyebrow,
.footer-grid .eyebrow {
  color: #7756c3;
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 8vw, 6.3rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.65vw, 1.25rem);
  line-height: 1.9;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.tag-row span {
  color: #67578e;
  border-color: rgba(102, 126, 234, 0.12);
  background: rgba(102, 126, 234, 0.08);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.hero-poster {
  align-self: center;
  justify-self: end;
  aspect-ratio: 3 / 4;
  width: min(330px, 25vw);
  min-width: 240px;
  border-radius: 2rem;
}

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

.hero-poster span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 999px;
  color: #764ba2;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(18px);
}

.hero-control.prev {
  left: 1rem;
}

.hero-control.next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 1.2rem;
  left: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

.section {
  padding: 3.8rem 0 0;
}

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

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

.section-head.centered {
  display: block;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.article-card h2,
.overview-copy h2,
.rank-copy h2 {
  margin: 0;
  color: #263050;
  letter-spacing: -0.04em;
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.06;
}

.section-head p,
.page-hero p,
.footer-grid p {
  color: rgba(45, 55, 72, 0.72);
  line-height: 1.8;
}

.intro-section {
  padding-top: 3rem;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1.45rem 1.45rem 0 0;
  background: rgba(255, 255, 255, 0.18);
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(.4, 0, .2, 1), filter 0.35s ease;
}

.movie-card:hover .movie-poster img {
  transform: scale(1.07);
  filter: saturate(1.12) brightness(0.9);
}

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

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

.play-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  color: #704eb4;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rank-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 3;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 0.5rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #667eea, #f093fb);
  box-shadow: 0 8px 18px rgba(102, 126, 234, 0.28);
  font-weight: 900;
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.62rem;
  padding: 1rem;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 0;
  overflow: hidden;
  color: #263050;
  font-size: 1rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info p {
  display: -webkit-box;
  min-height: 4.9em;
  margin: 0;
  overflow: hidden;
  color: rgba(45, 55, 72, 0.68);
  font-size: 0.9rem;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  color: rgba(45, 55, 72, 0.55);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 1rem;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.category-thumbs img,
.overview-preview img {
  width: 100%;
  height: 116px;
  border-radius: 1rem;
  object-fit: cover;
}

.category-card h3,
.overview-copy h2 {
  margin: 0 0 0.5rem;
  color: #263050;
}

.category-card p,
.overview-copy p {
  margin: 0;
  color: rgba(45, 55, 72, 0.68);
  line-height: 1.75;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.35rem;
  padding: 1rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.search-box span {
  color: #7756c3;
  font-size: 1.35rem;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #2d3748;
  background: transparent;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.filter-pill {
  min-height: 38px;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: #67578e;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-weight: 800;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.filter-pill:hover,
.filter-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: translateY(-1px);
}

.page-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #263050;
}

.page-hero::after {
  position: absolute;
  right: -10%;
  bottom: -35%;
  width: 460px;
  height: 460px;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(240, 147, 251, 0.26), transparent 68%);
  pointer-events: none;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.page-hero p,
.page-hero .hero-actions {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  color: rgba(45, 55, 72, 0.70);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #624fc0;
  font-weight: 800;
}

.categories-overview {
  display: grid;
  gap: 1rem;
}

.category-overview {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 1.35rem;
  padding: 1rem;
}

.overview-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.overview-copy {
  align-self: center;
}

.overview-copy .jelly-button {
  margin-top: 1rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.82fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.35rem;
  background: rgba(17, 24, 39, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 44px rgba(20, 24, 80, 0.24);
  cursor: pointer;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #ffffff;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.22));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 999px;
  color: #764ba2;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  font-size: 1.35rem;
}

.play-overlay strong {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.detail-copy {
  padding: clamp(0.5rem, 2vw, 1rem);
}

.detail-copy h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.02;
}

.detail-copy .lead {
  margin: 0 0 1.1rem;
  color: rgba(45, 55, 72, 0.76);
  font-size: 1.05rem;
  line-height: 1.9;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.1rem 0;
}

.detail-meta-grid div {
  padding: 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.58);
}

.detail-meta-grid span {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(45, 55, 72, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-meta-grid strong {
  color: #34405f;
}

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

.article-card h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

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

.article-card p {
  margin: 0;
  color: rgba(45, 55, 72, 0.78);
  font-size: 1.02rem;
  line-height: 2;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
}

.rank-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #667eea, #f093fb);
  font-size: 1.05rem;
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1rem;
}

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

.rank-copy h2 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.rank-copy p {
  display: -webkit-box;
  margin: 0 0 0.45rem;
  overflow: hidden;
  color: rgba(45, 55, 72, 0.70);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 4rem auto 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 1.4rem;
  padding: 1.4rem;
}

.footer-grid h2 {
  margin: 0 0 0.8rem;
  color: #263050;
  font-size: 1rem;
}

.footer-grid p {
  margin: 0.75rem 0 0;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

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

.footer-links a {
  color: rgba(45, 55, 72, 0.70);
  font-weight: 700;
}

.footer-links a:hover {
  color: #624fc0;
}

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

@media (max-width: 1180px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: end;
    padding: 5rem 1.25rem 4.8rem;
  }

  .hero-poster {
    order: -1;
    justify-self: start;
    width: min(260px, 58vw);
    min-width: 0;
  }

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

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

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

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

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

  .rank-item {
    grid-template-columns: 42px 72px minmax(0, 1fr);
  }

  .rank-item .jelly-button {
    grid-column: 2 / 4;
    justify-self: start;
  }

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

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 20px, 1180px);
    min-height: 68px;
  }

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

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

  .hero-section {
    width: min(100% - 16px, 1180px);
    padding-top: 84px;
  }

  .hero-carousel {
    min-height: 680px;
    border-radius: 1.45rem;
  }

  .hero-control {
    display: none;
  }

  .hero-content h1 {
    font-size: clamp(2.35rem, 15vw, 4.2rem);
  }

  .section,
  .page-main,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .section-head {
    display: block;
  }

  .section-head .jelly-button {
    margin-top: 0.85rem;
  }

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

  .movie-info {
    padding: 0.85rem;
  }

  .movie-info p {
    min-height: auto;
    -webkit-line-clamp: 2;
  }

  .category-grid,
  .overview-preview,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 38px 64px minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.7rem;
  }

  .rank-number {
    width: 36px;
    height: 36px;
    font-size: 0.88rem;
  }

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

  .play-overlay span {
    width: 60px;
    height: 60px;
  }
}
