* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #020617;
  color: #e5edf7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 8%, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(244, 63, 94, 0.14), transparent 30rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(2, 6, 23, 0.96));
  z-index: -1;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.54), transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.nav-wrap {
  max-width: 1240px;
  height: 76px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #06111c;
  background: linear-gradient(135deg, #22d3ee, #67e8f9 50%, #f43f5e);
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.22);
}

.brand-name {
  font-size: 20px;
  color: #ffffff;
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 14px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.13);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 4px;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  padding: 0 22px 18px;
  background: rgba(2, 6, 23, 0.94);
}

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

.hero {
  min-height: 74vh;
  position: relative;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide {
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.62) 45%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.22) 36%, transparent 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 74vh;
  padding: 140px 22px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 38px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #67e8f9;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.02;
  color: #ffffff;
  letter-spacing: -0.05em;
  text-shadow: 0 22px 52px rgba(0, 0, 0, 0.38);
}

.hero p {
  max-width: 690px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 17px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(226, 232, 240, 0.15);
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.48);
  background: rgba(14, 165, 233, 0.18);
}

.btn.primary {
  color: #04111d;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  border-color: transparent;
  font-weight: 800;
}

.hero-panel {
  border: 1px solid rgba(148, 163, 184, 0.17);
  background: rgba(15, 23, 42, 0.70);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  padding: 22px;
}

.hero-panel h2,
.hero-panel h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.hero-rank {
  display: grid;
  gap: 12px;
}

.hero-rank a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.42);
}

.hero-rank a:hover {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.10);
}

.hero-rank b {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.16);
  color: #67e8f9;
}

.hero-rank small {
  color: #94a3b8;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 22px 74px;
}

.content-section {
  margin-top: 52px;
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  color: #ffffff;
  line-height: 1.12;
}

.section-head h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.section-head h2 {
  font-size: clamp(25px, 3vw, 36px);
}

.section-head p {
  margin: 10px 0 0;
  max-width: 760px;
  color: #94a3b8;
}

.section-more {
  color: #67e8f9;
  font-weight: 700;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(103, 232, 249, 0.32);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.poster-link {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #111827);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent);
}

.year-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.15);
  backdrop-filter: blur(8px);
}

.year-badge {
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 12px;
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.24);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 14px;
  min-height: 44px;
}

.meta-line {
  display: flex;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

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

.tag-row span {
  padding: 3px 8px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.10);
  font-size: 12px;
}

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

.category-card {
  min-height: 180px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.13), transparent 45%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.62));
  transition: 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 232, 249, 0.36);
}

.category-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 21px;
}

.category-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 24px 0;
  padding: 14px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
  outline: none;
}

.search-input:focus {
  border-color: rgba(103, 232, 249, 0.46);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.09);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pills button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.86);
  cursor: pointer;
}

.filter-pills button.active,
.filter-pills button:hover {
  color: #04111d;
  background: #67e8f9;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 58px 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.72);
}

.rank-num {
  color: #67e8f9;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

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

.rank-info h3 {
  margin: 0 0 6px;
  color: #ffffff;
}

.rank-info p {
  margin: 0;
  color: #94a3b8;
}

.page-hero {
  padding-top: 116px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #67e8f9;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: 28px;
}

.player-card,
.detail-card,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.30);
  overflow: hidden;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.25), rgba(2, 6, 23, 0.62));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.play-button {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #04111d;
  background: linear-gradient(135deg, #22d3ee, #f8fafc);
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(34, 211, 238, 0.24);
}

.detail-card {
  padding: 26px;
  margin-top: 20px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 24px;
}

.detail-card p {
  color: #cbd5e1;
}

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

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.10);
}

.side-card {
  padding: 20px;
}

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

.side-list a {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.32);
}

.side-list img {
  width: 62px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.side-list strong {
  display: block;
  color: #ffffff;
  line-height: 1.35;
}

.side-list small {
  color: #94a3b8;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.86);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #94a3b8;
}

.footer-logo {
  color: #ffffff;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: #cbd5e1;
}

.hidden-card {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero-content,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    height: 66px;
  }

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

  .hero-content {
    padding-top: 104px;
    padding-bottom: 40px;
  }

  .hero-panel {
    display: none;
  }

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

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

  .rank-item {
    grid-template-columns: 40px 58px 1fr;
  }

  .rank-item .btn {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  main {
    padding-left: 14px;
    padding-right: 14px;
  }

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

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

  .card-body p {
    min-height: auto;
  }
}
