:root {
  --site-blue: #2563eb;
  --site-blue-dark: #1d4ed8;
  --site-indigo: #4f46e5;
  --site-ink: #111827;
  --site-muted: #6b7280;
  --site-line: #e5e7eb;
  --site-soft: #f8fafc;
  --site-card: #ffffff;
  --site-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

body {
  color: var(--site-ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #eef2ff 100%);
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-blue), var(--site-indigo));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.desktop-nav a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.desktop-nav a.is-active {
  color: var(--site-blue-dark);
  background: #eff6ff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--site-blue-dark);
  font-weight: 800;
}

.mobile-nav {
  display: none;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.hero-slide {
  display: none;
  min-height: 620px;
  position: relative;
}

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

.hero-slide-image {
  position: absolute;
  inset: 0;
}

.hero-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.76) 42%, rgba(15, 23, 42, 0.28) 100%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  height: 15rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(248, 250, 252, 1));
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.55fr);
  align-items: center;
  gap: 3rem;
  max-width: 80rem;
  min-height: 620px;
  margin: 0 auto;
  padding: 5rem 1.25rem 6rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-title {
  max-width: 48rem;
  margin-top: 1.35rem;
  font-size: clamp(2.45rem, 6vw, 4.75rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 44rem;
  margin-top: 1.25rem;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.45rem;
}

.hero-meta span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  color: #1e3a8a;
  background: #dbeafe;
  font-weight: 800;
  font-size: 0.88rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button-primary,
.button-secondary,
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.76rem 1.2rem;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-indigo));
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
}

.button-secondary {
  color: var(--site-blue-dark);
  background: #eff6ff;
}

.button-light {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.button-primary:hover,
.button-secondary:hover,
.button-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.hero-poster-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

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

.hero-poster-info {
  padding: 1rem;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: #ffffff;
}

.main-area {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.page-hero {
  overflow: hidden;
  border-radius: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.95), rgba(37, 99, 235, 0.88) 38%, rgba(30, 41, 59, 0.96) 100%);
  box-shadow: var(--site-shadow);
}

.page-hero h1 {
  max-width: 52rem;
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 52rem;
  margin-top: 1rem;
  color: #dbeafe;
  font-size: 1.08rem;
  line-height: 1.85;
}

.section-block {
  margin-top: 4rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin-top: 0.35rem;
  color: var(--site-muted);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.75rem;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.search-panel input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  outline: none;
  color: var(--site-ink);
  background: transparent;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: #334155;
  background: #ffffff;
  border: 1px solid var(--site-line);
  font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--site-blue), var(--site-indigo));
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.15rem;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.35rem;
  background: var(--site-card);
  box-shadow: 0 10px 32px 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(-0.45rem);
  border-color: #bfdbfe;
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.16);
}

.card-poster {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.card-badge {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 900;
}

.card-body {
  padding: 0.95rem;
}

.card-title {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 900;
}

.card-title:hover {
  color: var(--site-blue-dark);
}

.card-desc {
  margin-top: 0.5rem;
  min-height: 2.7rem;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.75rem;
}

.card-meta span {
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 0.75rem;
  font-weight: 800;
}

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

.category-card {
  padding: 1.35rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.4rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.14);
}

.category-card h2,
.category-card h3 {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 950;
}

.category-card p {
  margin-top: 0.6rem;
  color: #64748b;
  line-height: 1.75;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 7rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-indigo));
  font-weight: 950;
}

.rank-item img {
  width: 7rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.9rem;
}

.rank-item h2,
.rank-item h3 {
  font-weight: 950;
  line-height: 1.35;
}

.rank-item p {
  margin-top: 0.45rem;
  color: #64748b;
  line-height: 1.65;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
  color: #64748b;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--site-blue-dark);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 2rem;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  background: #020617;
  box-shadow: var(--site-shadow);
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-indigo));
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.42);
  font-weight: 950;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.player-shell.is-started .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-panel {
  padding: 1.35rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 15px 38px rgba(15, 23, 42, 0.08);
}

.detail-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 1.1rem;
}

.detail-title {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.detail-copy {
  margin-top: 1rem;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.9;
}

.prose-card {
  margin-top: 1.4rem;
  padding: 1.45rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.prose-card h2 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
  font-weight: 950;
}

.prose-card p {
  color: #475569;
  line-height: 1.9;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-cloud span {
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  color: #1e3a8a;
  background: #dbeafe;
  font-size: 0.82rem;
  font-weight: 850;
}

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 1.25rem;
  color: #64748b;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

.empty-state {
  display: none;
  padding: 2rem;
  text-align: center;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  border-radius: 1.5rem;
  background: #ffffff;
}

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

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

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

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

  .detail-panel {
    max-width: 24rem;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-top: 4rem;
  }

  .hero-poster-card {
    max-width: 18rem;
  }

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

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

@media (max-width: 640px) {
  .nav-inner {
    padding: 0.75rem 1rem;
  }

  .site-logo {
    font-size: 1.05rem;
  }

  .logo-mark {
    width: 2.15rem;
    height: 2.15rem;
  }

  .hero-carousel,
  .hero-slide,
  .hero-content {
    min-height: 560px;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .main-area {
    padding: 2.8rem 1rem;
  }

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

  .search-panel {
    grid-template-columns: 1fr;
    border-radius: 1.35rem;
  }

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

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

  .rank-item {
    grid-template-columns: auto 5.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .rank-item img {
    width: 5.5rem;
  }
}
