:root {
  --bg: #f8fafc;
  --bg-soft: #ecfeff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(14, 165, 233, 0.18);
  --cyan: #06b6d4;
  --blue: #2563eb;
  --cyan-dark: #0891b2;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --small-shadow: 0 12px 34px rgba(14, 165, 233, 0.16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.24), transparent 30rem),
    linear-gradient(135deg, #f8fafc 0%, #ecfeff 44%, #eff6ff 100%);
  min-height: 100vh;
}

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

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

img.is-empty {
  opacity: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 64vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.32);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #334155;
  font-weight: 650;
  transition: color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-dark);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(236, 254, 255, 0.9);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: #0f172a;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-nav .nav-link {
  display: block;
  padding: 10px 4px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 46px 0 34px;
}

.hero-bg {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.6;
  pointer-events: none;
}

.hero-bg-one {
  width: 430px;
  height: 430px;
  left: -160px;
  top: 40px;
  background: rgba(34, 211, 238, 0.28);
}

.hero-bg-two {
  width: 360px;
  height: 360px;
  right: -110px;
  bottom: 20px;
  background: rgba(37, 99, 235, 0.18);
}

.hero-stage {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 560px;
  padding: 30px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 254, 255, 0.74)),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.18), transparent 30rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-slides {
  position: relative;
  min-height: 488px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 40px;
  align-items: center;
  opacity: 0;
  transform: translateX(26px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-copy {
  padding: 24px 10px 24px 18px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--cyan-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #475569;
  font-size: 20px;
  line-height: 1.75;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.ghost-button {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--small-shadow);
}

.hero-poster {
  position: relative;
  display: block;
  width: min(370px, 100%);
  justify-self: center;
  border-radius: 34px;
  transform: rotate(2deg);
  isolation: isolate;
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  border-radius: 34px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.25);
}

.poster-glow {
  position: absolute;
  inset: auto -14px -16px 30px;
  z-index: -1;
  height: 38%;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.28);
  filter: blur(22px);
}

.hero-control-row {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrows button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
  font-size: 28px;
  line-height: 1;
}

.home-search-section {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
}

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

.section-heading {
  margin-bottom: 24px;
}

.section-heading.centered {
  text-align: center;
}

.section-heading.centered .eyebrow {
  margin: 0 auto 10px;
}

.section-heading.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  color: #64748b;
  font-size: 18px;
  line-height: 1.8;
}

.text-link {
  color: var(--cyan-dark);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 200px) minmax(150px, 200px);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(14, 165, 233, 0.1);
}

.search-box {
  position: relative;
  display: block;
}

.search-box span {
  position: absolute;
  left: 18px;
  top: 50%;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-50%);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  outline: none;
}

.filter-panel input {
  padding: 0 18px 0 64px;
}

.filter-panel select {
  padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(6, 182, 212, 0.62);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 254, 255, 0.68));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -34px;
  top: -34px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.16);
}

.category-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-card span {
  position: relative;
  z-index: 1;
  color: #64748b;
  line-height: 1.65;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.42);
  box-shadow: var(--small-shadow);
}

.category-card.large {
  min-height: 168px;
}

.featured-card {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.98), rgba(37, 99, 235, 0.96));
  color: #fff;
}

.featured-card span {
  color: rgba(255, 255, 255, 0.82);
}

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

.archive-grid {
  margin-top: 26px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.42);
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.13);
}

.poster-link {
  position: relative;
  display: block;
}

.poster-frame {
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 3 / 4.12;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.year-badge {
  right: 12px;
  top: 12px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.86);
}

.rank-badge {
  left: 12px;
  top: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: #94a3b8;
}

.movie-card h2 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--cyan-dark);
}

.movie-card p {
  min-height: 58px;
  margin: 0 0 13px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0e7490;
  background: rgba(207, 250, 254, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  font-size: 13px;
  font-weight: 900;
}

.ranking-panel {
  border-radius: 34px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 44px;
  background:
    radial-gradient(circle at 22% 20%, rgba(34, 211, 238, 0.24), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(236, 254, 255, 0.66));
  border-bottom: 1px solid var(--line);
}

.compact-page-hero .container {
  max-width: 860px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 36px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.24), transparent 24rem);
}

.detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  display: block;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan-dark);
}

.detail-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.lead-text {
  max-width: 760px;
  color: #475569;
  font-size: 20px;
  line-height: 1.78;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.detail-meta-grid strong {
  color: var(--muted);
  font-size: 12px;
}

.detail-copy .primary-button {
  margin-top: 24px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(6, 182, 212, 0.32), transparent 18rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.82));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 54px rgba(6, 182, 212, 0.4);
}

.play-ring span {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid #fff;
}

.player-cover strong {
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.player-cover em {
  font-style: normal;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
}

.detail-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.content-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

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

.content-panel p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
  font-size: 17px;
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 34px;
  text-align: center;
  color: #64748b;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(236, 254, 255, 0.66));
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 32px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid p {
  max-width: 340px;
  color: #64748b;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #64748b;
}

.footer-grid a:hover {
  color: var(--cyan-dark);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #64748b;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr 300px;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero-stage {
    min-height: auto;
    padding: 24px;
  }

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

  .hero-slide {
    position: relative;
    display: none;
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .hero-copy {
    padding: 10px 0;
  }

  .hero-poster {
    width: min(270px, 78vw);
    order: -1;
    transform: rotate(0deg);
  }

  .hero-control-row {
    position: static;
    margin-top: 24px;
  }

  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .detail-poster {
    width: min(300px, 72vw);
  }

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

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

@media (max-width: 560px) {
  .container,
  .nav-shell,
  .mobile-nav,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 19px;
  }

  .hero-section {
    padding-top: 18px;
  }

  .hero-stage {
    border-radius: 26px;
    padding: 18px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p,
  .lead-text {
    font-size: 17px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .player-cover strong {
    max-width: 82%;
  }
}
