:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --indigo-700: #4338ca;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 20px 25px -5px rgb(15 23 42 / 0.10), 0 8px 10px -6px rgb(15 23 42 / 0.10);
  --shadow-strong: 0 25px 50px -12px rgb(2 132 199 / 0.35);
  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;
  background: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--sky-600), var(--blue-700));
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.18);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.85;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 0.18);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
  font-weight: 900;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-subtitle {
  margin-top: -4px;
  font-size: 12px;
  opacity: 0.88;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.nav-links a {
  opacity: 0.95;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #bae6fd;
  opacity: 1;
}

.header-search {
  flex: 0 0 270px;
}

.search-pill {
  position: relative;
  display: flex;
  align-items: center;
}

.search-pill input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 10px 18px 10px 42px;
  color: var(--white);
  background: rgb(255 255 255 / 0.18);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.15);
}

.search-pill input::placeholder {
  color: rgb(255 255 255 / 0.72);
}

.search-pill::before {
  content: "⌕";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 18px;
  opacity: 0.78;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgb(255 255 255 / 0.12);
}

.mobile-panel {
  display: none;
  padding: 0 0 16px;
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-600), var(--blue-600) 50%, var(--indigo-700));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.10);
  filter: blur(1px);
}

.hero::before {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 80px;
}

.hero::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: 70px;
}

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

.hero-slide {
  display: none;
  min-height: 620px;
  align-items: center;
  padding: 72px 0;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.23;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(2 132 199 / 0.94), rgb(37 99 235 / 0.78) 55%, rgb(67 56 202 / 0.82));
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgb(255 255 255 / 0.14);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
}

.hero h1 {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(18px, 2vw, 25px);
  color: #dbeafe;
}

.hero-summary {
  max-width: 760px;
  margin: 0 0 30px;
  color: #eff6ff;
  font-size: 17px;
}

.hero-actions,
.filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  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: var(--sky-700);
  background: var(--white);
  box-shadow: 0 12px 30px rgb(15 23 42 / 0.16);
}

.btn-primary:hover {
  background: var(--sky-50);
}

.btn-ghost {
  color: var(--white);
  background: rgb(255 255 255 / 0.14);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.22);
}

.hero-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-strong);
  background: rgb(255 255 255 / 0.16);
  backdrop-filter: blur(18px);
}

.hero-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0.94;
}

.hero-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgb(15 23 42 / 0.82));
}

.hero-card-info h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.hero-card-info p {
  margin: 0;
  color: #dbeafe;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.35);
}

.hero-dot.is-active {
  background: var(--white);
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(135deg, var(--sky-50), #eff6ff);
}

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

.section-title {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--slate-500);
}

.link-more {
  color: var(--sky-700);
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 180px;
  border-radius: 24px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--blue-700));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.category-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgb(15 23 42 / 0.05), rgb(15 23 42 / 0.55));
}

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

.category-card p {
  margin: 0;
  color: #dbeafe;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 28px rgb(15 23 42 / 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-100), #dbeafe);
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--sky-700);
  background: var(--sky-100);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--white);
  background: rgb(14 165 233 / 0.92);
}

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

.movie-title {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-desc {
  margin: 0;
  color: var(--slate-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--slate-600);
  background: var(--slate-100);
}

.page-hero {
  padding: 62px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-600), var(--blue-700));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sky-700);
  font-weight: 700;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 10px 28px rgb(15 23 42 / 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 12px 14px;
  outline: 0;
  color: var(--slate-800);
  background: var(--slate-50);
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3px rgb(14 165 233 / 0.16);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 64px 84px minmax(0, 1fr) 100px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 8px 22px rgb(15 23 42 / 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-700));
}

.rank-poster {
  width: 84px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: var(--sky-100);
}

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

.rank-title {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 19px;
}

.rank-desc {
  margin: 0;
  color: var(--slate-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.score-box {
  text-align: right;
  color: var(--sky-700);
  font-size: 22px;
  font-weight: 900;
}

.detail-shell {
  padding: 34px 0 80px;
}

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

.player-card,
.detail-card,
.sidebar-card {
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 12px 34px rgb(15 23 42 / 0.10);
  overflow: hidden;
}

.player-area {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--slate-900);
}

.player-area video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--slate-900);
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: rgb(15 23 42 / 0.28);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.play-button {
  position: relative;
  z-index: 4;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: var(--sky-700);
  background: var(--white);
  font-size: 34px;
  box-shadow: 0 18px 40px rgb(15 23 42 / 0.28);
  transition: transform 0.22s ease, background 0.22s ease;
}

.player-overlay:hover .play-button {
  transform: scale(1.08);
  background: var(--sky-50);
}

.player-info {
  padding: 26px;
}

.player-info h1 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

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

.detail-card h2,
.sidebar-card h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 18px;
  color: var(--slate-700);
  font-size: 16px;
}

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

.info-cell {
  padding: 14px;
  border-radius: 16px;
  background: var(--slate-50);
}

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

.info-cell strong {
  display: block;
  margin-top: 4px;
  color: var(--slate-900);
}

.sidebar-card {
  padding: 20px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 78px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  background: var(--sky-100);
}

.side-item h3 {
  margin: 0 0 5px;
  color: var(--slate-900);
  font-size: 15px;
  line-height: 1.3;
}

.side-item p {
  margin: 0;
  color: var(--slate-500);
  font-size: 13px;
}

.cta-band {
  overflow: hidden;
  border-radius: 32px;
  padding: 44px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(90deg, var(--sky-500), var(--blue-700));
  box-shadow: var(--shadow-strong);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.cta-band p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: #dbeafe;
}

.site-footer {
  padding: 46px 0;
  color: var(--slate-400);
  background: var(--slate-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-title {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
}

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

.footer-list a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgb(148 163 184 / 0.18);
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  color: var(--slate-500);
  background: var(--white);
}

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

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

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

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .hero,
  .hero-slide {
    min-height: 760px;
  }

  .hero-slide {
    padding: 44px 0 72px;
  }

  .hero-layout {
    gap: 28px;
  }

  .hero-card,
  .hero-card img {
    min-height: 320px;
    height: 320px;
  }

  .section-heading {
    display: block;
  }

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

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

  .ranking-item {
    grid-template-columns: 52px 70px minmax(0, 1fr);
  }

  .score-box {
    grid-column: 3;
    text-align: left;
    font-size: 16px;
  }

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

@media (max-width: 540px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-subtitle {
    display: none;
  }

  .brand-title {
    font-size: 17px;
  }

  .hero h1 {
    font-size: 38px;
  }

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

  .btn {
    width: 100%;
  }

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

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