html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #020617;
  color: #e5e7eb;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(7, 89, 133, 0.3);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 18px 45px rgba(14, 165, 233, 0.32);
}

.brand-text {
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: #cbd5e1;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(14, 165, 233, 0.14);
  color: #ffffff;
}

.header-search,
.big-search,
.inline-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.big-search input,
.inline-search input {
  width: 220px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #e5e7eb;
  outline: none;
}

.header-search button,
.big-search button,
.inline-search button,
.btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.header-search button,
.big-search button,
.inline-search button,
.btn.primary {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.28);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.72);
  color: #e0f2fe;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.header-search button:hover,
.big-search button:hover,
.inline-search button:hover,
.btn:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 20px;
}

.hero-slider {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 45%, rgba(14, 165, 233, 0.2), transparent 34%), linear-gradient(90deg, rgba(2, 6, 23, 0.97) 0%, rgba(2, 6, 23, 0.78) 43%, rgba(2, 6, 23, 0.3) 100%), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 45%);
}

.hero-content {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  align-items: center;
  gap: 56px;
  padding: 70px 0 90px;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  color: #ffffff;
  letter-spacing: -0.05em;
  margin: 0 0 18px;
}

.hero-copy h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  color: #e0f2fe;
  margin: 0 0 18px;
}

.hero-text {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.85;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.13);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: #bae6fd;
  font-size: 13px;
}

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

.hero-poster {
  display: block;
  padding: 10px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(125, 211, 252, 0.25);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

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

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

.hero-dot {
  width: 42px;
  height: 5px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dot.active {
  background: #0ea5e9;
}

.quick-panel {
  position: relative;
  z-index: 4;
  margin-top: -42px;
}

.quick-panel-inner {
  padding: 20px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 22px 65px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(18px);
}

.big-search input {
  flex: 1;
  width: 100%;
  height: 52px;
  border-radius: 18px;
}

.big-search button {
  height: 52px;
  border-radius: 18px;
  padding: 0 24px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill-link {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.72);
  color: #e5e7eb;
}

.site-section {
  padding: 76px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(2, 6, 23, 0.4));
}

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

.section-head.tight {
  margin-bottom: 18px;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.detail-side h2 {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-more {
  color: #7dd3fc;
  font-weight: 800;
}

.movie-grid {
  display: 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: 22px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.25);
  transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.42);
  box-shadow: 0 26px 70px rgba(2, 132, 199, 0.18);
}

.movie-card[hidden] {
  display: none;
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #0f172a;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.05);
}

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

.movie-type {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.9);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 14px;
}

.movie-meta {
  margin-bottom: 7px;
  color: #94a3b8;
  font-size: 13px;
}

.movie-info h3 {
  margin: 0 0 9px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
}

.movie-line {
  min-height: 52px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.65;
}

.movie-info .tag-row {
  margin-top: 12px;
}

.movie-info .tag-row span {
  font-size: 12px;
  padding: 4px 8px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.65fr);
  gap: 38px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 10px;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
}

.rank-number,
.ranking-num {
  color: #7dd3fc;
  font-size: 18px;
  font-weight: 900;
}

.rank-item img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-title {
  color: #ffffff;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: #94a3b8;
  font-size: 13px;
}

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

.category-card {
  min-height: 160px;
  padding: 22px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 22px;
  background: radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.22), transparent 38%), rgba(15, 23, 42, 0.72);
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.category-card p,
.category-overview-copy p,
.page-hero p,
.detail-article p,
.detail-side dd,
.site-footer p,
.ranking-copy p {
  color: #cbd5e1;
  line-height: 1.8;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-samples a {
  color: #7dd3fc;
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 70% 0%, rgba(14, 165, 233, 0.28), transparent 34%), linear-gradient(135deg, #020617, #0f172a 58%, #082f49);
}

.small-hero {
  padding: 96px 0 72px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
}

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
}

.category-overview-copy h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 32px;
}

.category-overview-copy .btn {
  margin-top: 20px;
}

.category-overview-movies {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.movie-card.compact .movie-info {
  padding: 10px;
}

.movie-card.compact .movie-line,
.movie-card.compact .tag-row {
  display: none;
}

.movie-card.compact .movie-info h3 {
  margin-bottom: 0;
  font-size: 14px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.76);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 2 / 3;
}

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

.ranking-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.82);
}

.ranking-copy h2 {
  margin: 8px 0 12px;
  color: #ffffff;
  font-size: 28px;
}

.ranking-copy .tag-row {
  margin: 18px 0;
}

.search-status {
  min-height: 28px;
  margin-bottom: 18px;
  color: #7dd3fc;
  font-weight: 800;
}

.page-search {
  max-width: 720px;
  margin-top: 28px;
}

.detail-hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #020617;
}

.detail-bg-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78) 52%, rgba(2, 6, 23, 0.42)), linear-gradient(0deg, #020617, transparent 55%);
}

.detail-top {
  position: relative;
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  color: #bae6fd;
  font-size: 14px;
}

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

.detail-poster {
  padding: 9px;
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.58);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.08;
}

.detail-line {
  max-width: 760px;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.75;
}

.detail-tags {
  margin: 24px 0 30px;
}

.player-section {
  padding-top: 36px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.55);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), rgba(2, 6, 23, 0.55));
  cursor: pointer;
}

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

.player-overlay span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.42);
}

.detail-content-section {
  padding-top: 0;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
}

.detail-article,
.detail-side {
  padding: 28px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-article p + h2 {
  margin-top: 28px;
}

.detail-side dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-side dt {
  color: #7dd3fc;
  font-weight: 800;
}

.detail-side dd {
  margin: 0 0 8px;
}

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

.site-footer {
  border-top: 1px solid rgba(7, 89, 133, 0.3);
  background: #020617;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 42px 0;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  color: #7dd3fc;
  font-weight: 800;
}

.footer-bottom {
  padding: 16px;
  border-top: 1px solid rgba(7, 89, 133, 0.22);
  color: #94a3b8;
  text-align: center;
}

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 900px) {
  .site-header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .header-search input {
    flex: 1;
    width: 100%;
  }

  .hero-slider,
  .hero-content {
    min-height: auto;
  }

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

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

  .hero-content,
  .detail-layout,
  .split-layout,
  .category-overview-card,
  .detail-content-grid,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 90px;
  }

  .hero-poster,
  .detail-poster {
    max-width: 320px;
  }

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

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

  .toolbar,
  .footer-grid {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .site-container,
  .site-header-inner {
    width: min(100% - 22px, 1180px);
  }

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

  .site-section {
    padding: 52px 0;
  }

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

  .hero-text,
  .detail-line,
  .page-hero p {
    font-size: 16px;
  }

  .big-search,
  .inline-search {
    flex-direction: column;
    align-items: stretch;
  }

  .big-search button,
  .inline-search button {
    width: 100%;
  }

  .rank-item {
    grid-template-columns: 38px 46px minmax(0, 1fr);
  }

  .rank-meta {
    display: none;
  }

  .ranking-card {
    padding: 14px;
  }

  .ranking-poster {
    max-width: 220px;
  }
}
