*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --lotus-50: #f4f9f7;
  --lotus-100: #dceee7;
  --lotus-200: #b9ddcf;
  --lotus-300: #91c8b2;
  --lotus-400: #68ad92;
  --lotus-500: #4b947a;
  --lotus-600: #396d5d;
  --lotus-700: #2f574c;
  --mist-50: #f7fafc;
  --mist-100: #f0f4f7;
  --mist-200: #d9e2ea;
  --mist-600: #66788f;
  --mist-700: #506175;
  --mist-800: #354354;
  --mist-900: #1f2937;
  --ink: #111827;
  --paper: #ffffff;
  --shadow-soft: 0 18px 45px rgba(31, 41, 55, 0.12);
  --shadow-strong: 0 25px 60px rgba(0, 0, 0, 0.25);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--mist-50), #ffffff 28%, var(--mist-50));
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.3));
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.12);
  backdrop-filter: blur(14px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--mist-800);
}

.logo-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--lotus-500), var(--lotus-700));
  box-shadow: 0 12px 25px rgba(57, 109, 93, 0.24);
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a,
.mobile-nav a {
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--mist-700);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--lotus-700);
  background: var(--lotus-50);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--mist-800);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.hero {
  min-height: 80vh;
  background: var(--mist-900);
}

.hero-stage {
  position: relative;
  height: 80vh;
  min-height: 620px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.7s ease;
  pointer-events: none;
}

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

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

.hero-overlay,
.detail-hero-mask,
.catalog-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.82));
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 70%, rgba(75, 148, 122, 0.45), transparent 32%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 116px;
  max-width: 820px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--lotus-200);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.hero-content h1 {
  margin: 0 0 24px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content h1 strong {
  color: #ffffff;
  font-weight: 800;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 23px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--lotus-700);
  background: var(--lotus-50);
  font-size: 13px;
  font-weight: 700;
}

.hero-tags .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: #ffffff;
  background: var(--lotus-500);
  box-shadow: 0 14px 34px rgba(57, 109, 93, 0.36);
}

.btn-primary:hover {
  background: var(--lotus-600);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hero-dot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  text-align: left;
}

.hero-dot span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.hero-dot strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-dot.is-active {
  border-color: rgba(185, 221, 207, 0.95);
  background: rgba(57, 109, 93, 0.48);
}

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

.section-tight {
  padding-top: 56px;
}

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

.section-head.plain {
  align-items: center;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.search-result-head h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  color: var(--mist-900);
  line-height: 1.12;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-head p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--mist-600);
}

.section-link {
  flex: none;
  color: var(--lotus-700);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 226, 234, 0.9);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--lotus-200);
  box-shadow: var(--shadow-soft);
}

.movie-card-large {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
}

.poster-link {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mist-200), var(--mist-100));
}

.movie-card:not(.movie-card-large) .poster-link {
  aspect-ratio: 2 / 3;
  min-height: auto;
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.play-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(75, 148, 122, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.rank-mark {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--mist-600);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span,
.detail-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--mist-100);
}

.card-body h3 {
  margin: 12px 0 8px;
  color: var(--mist-900);
  font-size: 19px;
  line-height: 1.3;
}

.card-body h3 a:hover,
.compact-card h3 a:hover {
  color: var(--lotus-700);
}

.card-body p {
  margin: 0 0 14px;
  color: var(--mist-700);
  font-size: 14px;
}

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

.category-tile,
.catalog-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius-md);
  color: #ffffff;
  background: var(--mist-800);
  box-shadow: var(--shadow-soft);
}

.category-tile img,
.catalog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile span,
.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
}

.category-tile span {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.category-tile::after {
  background: radial-gradient(circle at 70% 20%, rgba(75, 148, 122, 0.44), transparent 28%);
}

.category-tile strong,
.category-tile em,
.catalog-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-tile strong {
  bottom: 56px;
  font-size: 22px;
}

.category-tile em {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 13px;
}

.catalog-card div {
  bottom: 22px;
}

.catalog-card h2 {
  margin: 0 0 8px;
  font-size: 25px;
}

.catalog-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 120px max(24px, calc((100vw - 1180px) / 2)) 60px;
  background:
    radial-gradient(circle at 20% 24%, rgba(185, 221, 207, 0.78), transparent 28%),
    linear-gradient(135deg, var(--mist-900), var(--lotus-700));
  color: #ffffff;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(38px, 6vw, 70px);
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #ffffff;
  background: var(--mist-900);
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 116px 0 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 38px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(36px, 6vw, 68px);
}

.detail-one-line {
  max-width: 850px;
  margin: 18px 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
}

.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.detail-tags {
  margin-top: 18px;
}

.detail-section {
  padding-top: 56px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-strong);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.42));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--lotus-500);
  box-shadow: 0 18px 40px rgba(75, 148, 122, 0.42);
  font-size: 32px;
}

.play-overlay strong {
  font-size: 20px;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  min-height: 0;
  color: #ffffff;
  font-weight: 700;
}

.player-message:empty {
  display: none;
}

.detail-article {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  padding: 34px;
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.detail-article h2 {
  font-size: 28px;
}

.detail-article p {
  margin: 0;
  color: var(--mist-800);
  font-size: 17px;
}

.search-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.search-panel label {
  display: grid;
  gap: 8px;
  color: var(--mist-700);
  font-size: 14px;
  font-weight: 800;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--mist-200);
  border-radius: 14px;
  color: var(--mist-900);
  background: #ffffff;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--lotus-400);
  box-shadow: 0 0 0 4px rgba(75, 148, 122, 0.12);
}

.search-result-head {
  margin-bottom: 18px;
}

.search-empty {
  grid-column: 1 / -1;
  padding: 38px;
  border-radius: var(--radius-md);
  background: var(--mist-100);
  color: var(--mist-700);
  text-align: center;
  font-weight: 700;
}

.compact-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

.compact-poster {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.compact-poster img {
  width: 72px;
  height: 96px;
  object-fit: cover;
}

.compact-card h3,
.compact-card p {
  margin: 0;
}

.compact-card p {
  color: var(--mist-600);
  font-size: 13px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--mist-700);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
  font-weight: 800;
}

.pagination a:hover,
.pagination a.is-current {
  color: #ffffff;
  background: var(--lotus-500);
}

.pagination span {
  opacity: 0.45;
}

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, var(--mist-900), var(--lotus-700));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  color: #ffffff;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 700;
}

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

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

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

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

  .hero-dot:nth-child(n + 4) {
    display: none;
  }

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

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

  .menu-toggle {
    display: flex;
  }

  .header-inner {
    height: 66px;
  }

  .logo {
    font-size: 20px;
  }

  .hero-stage {
    height: 86vh;
    min-height: 650px;
  }

  .hero-content {
    bottom: 130px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    min-height: 44px;
    padding: 0 18px;
  }

  .hero-dots {
    grid-template-columns: 1fr;
  }

  .hero-dot:not(.is-active) {
    display: none;
  }

  .section {
    padding: 46px 0;
  }

  .section-head,
  .footer-inner {
    display: grid;
    align-items: start;
  }

  .movie-grid,
  .featured-grid,
  .rank-grid,
  .category-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-large {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    max-width: 230px;
  }

  .detail-one-line {
    font-size: 18px;
  }

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

  .detail-article {
    padding: 22px;
  }
}
