:root {
  --teal: #0f766e;
  --teal-dark: #115e59;
  --cyan: #0891b2;
  --blue: #2563eb;
  --amber: #f59e0b;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.25);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  box-shadow: 0 16px 35px rgba(8, 145, 178, 0.22);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

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

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fde68a;
}

.nav-search {
  position: relative;
  width: 240px;
}

.nav-search input,
.hero-search input,
.filter-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.36);
  outline: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 12px 16px;
  backdrop-filter: blur(14px);
}

.nav-search input::placeholder,
.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 88vw);
  max-height: 420px;
  overflow: auto;
  display: none;
  color: var(--slate-800);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  padding: 10px;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: var(--slate-100);
}

.search-result-item img {
  width: 54px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--slate-200);
}

.search-result-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--slate-900);
}

.search-result-item span {
  display: block;
  color: var(--slate-600);
  font-size: 13px;
}

.menu-button {
  display: none;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  flex-direction: column;
  gap: 12px;
  font-weight: 700;
}

.mobile-nav.open {
  display: flex;
}

main {
  min-height: 60vh;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(135deg, #0f766e, #0891b2 52%, #2563eb);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(76px);
  opacity: 0.42;
  pointer-events: none;
}

.hero::before {
  top: 8%;
  left: 4%;
  background: rgba(255, 255, 255, 0.6);
}

.hero::after {
  right: 4%;
  bottom: 6%;
  background: rgba(245, 158, 11, 0.7);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 58px;
}

.hero-slider {
  position: relative;
  min-height: 548px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.74fr);
  align-items: center;
  gap: 42px;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
  margin: 18px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(239, 246, 255, 0.92);
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.78;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.hero-tags span,
.tag-row span,
.meta-pill,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.hero-tags span {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.btn-primary,
.btn-secondary,
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--teal-dark);
  background: var(--white);
  padding: 14px 22px;
  box-shadow: 0 18px 35px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 13px 20px;
  backdrop-filter: blur(12px);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-text:hover {
  transform: translateY(-2px);
}

.hero-search {
  position: relative;
  width: min(520px, 100%);
}

.hero-search input {
  padding: 16px 20px;
  font-size: 16px;
}

.hero-media {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  isolation: isolate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.78));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-media-panel {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  backdrop-filter: blur(16px);
}

.hero-media-panel strong {
  display: block;
  font-size: 20px;
}

.hero-media-panel span {
  color: rgba(255, 255, 255, 0.76);
}

.hero-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-dot {
  width: 48px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.active {
  width: 72px;
  background: #fde68a;
}

.section-wrap,
.page-hero-inner,
.footer-grid,
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-wrap {
  padding: 54px 0;
}

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

.section-eyebrow {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2,
.page-hero h1,
.detail-title,
.category-title {
  margin: 0;
  color: var(--slate-900);
  font-weight: 950;
  letter-spacing: -0.035em;
}

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

.section-head p,
.page-hero p,
.category-intro,
.detail-summary {
  color: var(--slate-600);
  line-height: 1.75;
}

.btn-text {
  color: var(--teal);
  padding: 10px 0;
}

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: var(--shadow-soft);
}

.poster-link {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--slate-200);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-soft);
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 34px;
  padding: 0 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), #f97316);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 52px;
  margin-bottom: 10px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card p {
  display: -webkit-box;
  min-height: 66px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: var(--slate-600);
  font-size: 13px;
}

.movie-meta span,
.meta-pill {
  background: var(--slate-100);
  padding: 5px 9px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  color: var(--teal-dark);
  background: #ccfbf1;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.category-card strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 12px;
  font-size: 23px;
  font-weight: 950;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(100deg, var(--teal), var(--cyan), var(--blue));
}

.page-hero-inner {
  padding: 58px 0;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(38px, 6vw, 58px);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.breadcrumbs a:hover {
  color: #fde68a;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-search input {
  color: var(--slate-800);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
}

.filter-search input::placeholder {
  color: var(--slate-600);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  border: 0;
  color: var(--slate-700);
  background: var(--slate-100);
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
  color: var(--white);
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  transform: translateY(-1px);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.68));
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.player-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: var(--shadow-strong);
}

.detail-card {
  padding: 28px;
  margin-top: 24px;
}

.detail-title {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 52px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.meta-pill {
  color: var(--teal-dark);
  background: #ccfbf1;
  padding: 8px 12px;
  font-weight: 900;
}

.highlight-box {
  margin: 22px 0;
  padding: 18px;
  color: var(--slate-800);
  background: #fffbeb;
  border-left: 5px solid var(--amber);
  border-radius: 0 16px 16px 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.75;
}

.content-block h2,
.side-card h2 {
  margin: 24px 0 12px;
  color: var(--slate-900);
  font-size: 24px;
  font-weight: 950;
}

.content-block p {
  margin: 0 0 18px;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-line;
}

.review-box {
  padding: 20px;
  background: linear-gradient(135deg, #ecfeff, #f0fdfa);
  border: 1px solid #99f6e4;
  border-radius: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  background: var(--slate-50);
  border-radius: 18px;
}

.info-grid span {
  display: block;
  color: var(--slate-600);
  font-size: 13px;
}

.info-grid strong {
  color: var(--slate-900);
}

.side-card {
  padding: 18px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 76px;
  height: 104px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-200);
}

.side-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-900);
  font-weight: 900;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-item span {
  display: block;
  margin-top: 6px;
  color: var(--slate-600);
  font-size: 13px;
}

.rank-list .movie-card {
  display: grid;
  grid-template-columns: 160px 1fr;
}

.rank-list .poster-link img {
  height: 100%;
  aspect-ratio: auto;
}

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

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 34px;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 460px;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #5eead4;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 22px 0;
  text-align: center;
  color: #94a3b8;
}

.no-result {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--slate-600);
  background: var(--white);
  border-radius: var(--radius-xl);
}

.no-result.active {
  display: block;
}

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

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-search {
    width: min(320px, 36vw);
  }

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

  .hero-slider {
    min-height: 0;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.active {
    display: grid;
  }

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

  .rank-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-search {
    order: 4;
    width: 100%;
  }

  .hero-inner {
    padding: 46px 0 42px;
  }

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

  .hero-media {
    border-radius: 24px;
  }

  .hero-media-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

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

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

  .movie-title {
    min-height: 46px;
    font-size: 16px;
  }

  .movie-card p {
    min-height: 58px;
    font-size: 13px;
  }

  .detail-card {
    padding: 18px;
  }

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

  .rank-list .movie-card {
    grid-template-columns: 116px 1fr;
  }

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

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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