: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-purple: #7c3aed;
  --jelly-pink: #ec4899;
  --jelly-moon: #e8eaf6;
  --shadow-soft: 0 18px 50px rgba(31, 38, 135, 0.18);
  --shadow-hover: 0 24px 70px rgba(31, 38, 135, 0.28);
}

* {
  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 {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(255, 255, 255, 0.45),
      transparent 28%
    ),
    radial-gradient(
      circle at 92% 18%,
      rgba(255, 196, 221, 0.38),
      transparent 30%
    ),
    radial-gradient(
      circle at 48% 95%,
      rgba(184, 230, 213, 0.35),
      transparent 34%
    );
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

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

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

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

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

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

button,
input {
  font: inherit;
}

.jelly-glass,
.jelly-card,
.movie-card,
.hero-shell,
.player-shell,
.content-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px clamp(14px, 4vw, 40px) 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.desktop-nav a,
.nav-drop > a {
  color: #4b5563;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-drop > a.active {
  color: var(--jelly-purple);
}

.nav-drop {
  position: relative;
  padding: 14px 0;
}

.drop-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
  width: 260px;
  padding: 14px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 10px);
  border-radius: 22px;
  transition: 0.25s ease;
}

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

.drop-panel a {
  padding: 9px 12px;
  border-radius: 14px;
}

.drop-panel a:hover {
  background: rgba(255, 255, 255, 0.7);
}

.nav-search {
  display: flex;
  align-items: center;
  width: min(300px, 26vw);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}

.nav-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  color: #374151;
  background: transparent;
  border: 0;
  outline: 0;
}

.nav-search button,
.hero-search button,
.jelly-button {
  border: 0;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-search button {
  align-self: stretch;
  padding: 0 16px;
}

.jelly-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
}

.jelly-button.secondary {
  color: #6d28d9;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 26px rgba(31, 38, 135, 0.14);
}

.jelly-button:hover,
.nav-search button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.3);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 16px;
  color: #6d28d9;
  background: rgba(255, 255, 255, 0.72);
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 10px auto 0;
  padding: 14px;
  border-radius: 24px;
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mobile-nav a {
  padding: 12px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
}

.main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.hero-shell {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 36px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(18px) saturate(1.15);
  transform: scale(1.08);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  color: #6d28d9;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 999px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-copy p {
  max-width: 640px;
  margin: 20px 0 0;
  color: #4b5563;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-search {
  display: flex;
  width: min(560px, 100%);
  margin-top: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(31, 38, 135, 0.12);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
  border: 0;
  outline: 0;
  background: transparent;
}

.hero-search button {
  padding: 0 24px;
  border: 0;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-height: 450px;
}

.hero-poster {
  position: absolute;
  right: 0;
  top: 0;
  width: min(390px, 88%);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 10px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  box-shadow: 0 36px 80px rgba(31, 38, 135, 0.25);
}

.hero-mini {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(320px, 72%);
  padding: 18px;
  border-radius: 26px;
}

.hero-mini strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-mini span {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.section-block {
  margin-top: 54px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.section-head p,
.page-title p,
.detail-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #4b5563;
  line-height: 1.85;
}

.section-link {
  color: #6d28d9;
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 28px;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.4);
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.28);
}

.play-chip {
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.rank-badge {
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
}

.movie-card-body {
  padding: 16px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: #7c3aed;
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card p {
  margin: 10px 0 0;
  color: #5f6b7a;
  line-height: 1.72;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.info-pill,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  color: #6d28d9;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 999px;
}

.duo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
}

.ranking-list,
.category-list,
.related-list {
  display: grid;
  gap: 14px;
}

.ranking-item {
  display: grid;
  grid-template-columns: auto 76px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 20px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.9);
}

.ranking-item img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.list-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.ranking-copy strong,
.ranking-copy em {
  display: block;
}

.ranking-copy strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.ranking-copy em {
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

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

.category-tile {
  min-height: 170px;
  padding: 24px;
  border-radius: 28px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: #5f6b7a;
  line-height: 1.75;
}

.page-title,
.detail-title,
.content-panel {
  margin-bottom: 26px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 32px;
}

.filter-box {
  display: flex;
  gap: 12px;
  margin: 18px 0 0;
}

.filter-box input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  outline: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  border-radius: 32px;
}

.video-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #101827;
}

.video-box video {
  width: 100%;
  height: 100%;
  background: #101827;
}

.video-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.36);
  cursor: pointer;
}

.video-cover img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.video-cover.hidden {
  display: none;
}

.play-button {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: white;
  font-size: 34px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 20px 55px rgba(236, 72, 153, 0.38);
  cursor: pointer;
}

.player-copy {
  padding: 24px;
}

.player-copy h2,
.content-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.player-copy p,
.content-panel p {
  color: #4b5563;
  line-height: 1.9;
}

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

.info-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 18px;
}

.info-card span {
  display: block;
  color: #6b7280;
  font-size: 13px;
}

.info-card strong {
  display: block;
  margin-top: 4px;
  color: #2d3748;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.search-results {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
}

.search-result-card img {
  width: 110px;
  height: 146px;
  object-fit: cover;
  border-radius: 18px;
}

.search-result-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.search-result-card p {
  color: #566173;
  line-height: 1.75;
}

.empty-state {
  padding: 32px;
  text-align: center;
  border-radius: 26px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 30px;
  padding: 24px;
  border-radius: 30px;
}

.site-footer p {
  margin: 8px 0 0;
  color: #5f6b7a;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  color: #6d28d9;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
}

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-shell {
    min-height: 820px;
  }

  .hero-visual {
    min-height: 360px;
  }

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

@media (max-width: 760px) {
  .main {
    width: min(100% - 24px, 1240px);
    padding-top: 24px;
  }

  .nav-wrap {
    border-radius: 22px;
  }

  .brand {
    font-size: 17px;
  }

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

  .hero-shell {
    min-height: 780px;
    border-radius: 28px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-poster {
    width: 74%;
  }

  .hero-mini {
    width: 78%;
  }

  .hero-dots {
    right: 22px;
    bottom: 20px;
  }

  .movie-grid,
  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card-body {
    padding: 13px;
  }

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    font-size: 14px;
  }

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

  .ranking-item {
    grid-template-columns: auto 64px 1fr;
  }

  .ranking-item img {
    width: 64px;
    height: 84px;
  }

  .search-result-card {
    grid-template-columns: 86px 1fr;
  }

  .search-result-card img {
    width: 86px;
    height: 116px;
  }

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

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

  .hero-shell {
    min-height: 830px;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search button {
    padding: 12px;
  }
}
