* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(12px);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #22d3ee;
}

.brand span:last-child,
.footer-brand {
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  color: #22d3ee;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  color: #e2e8f0;
}

.nav-links a,
.mobile-panel a,
.footer-links a,
.section-action,
.filter-strip a {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover,
.footer-links a:hover,
.section-action:hover,
.filter-strip a:hover {
  color: #22d3ee;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.65);
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #f8fafc;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #e2e8f0;
}

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

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.25), transparent 35%), #020617;
}

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

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

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: opacity 0.2s ease;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.78) 24%, rgba(0, 0, 0, 0.35) 58%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  color: #facc15;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-copy .lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.tag-cloud,
.card-meta,
.filter-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.tag-cloud span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #0891b2, #2563eb);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.34);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-plain {
  color: #22d3ee;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 30px;
  background: #22d3ee;
}

.section {
  padding: 58px 0;
}

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

.section-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: #94a3b8;
}

.section-action {
  color: #22d3ee;
  font-weight: 800;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 20px;
}

.poster-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(34, 211, 238, 0.78);
  box-shadow: 0 24px 55px rgba(8, 145, 178, 0.18);
}

.movie-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.wide-thumb {
  aspect-ratio: 16 / 9;
}

.movie-thumb img,
.category-thumbs img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card:hover .movie-thumb img {
  transform: scale(1.08);
}

.score,
.duration,
.badge {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.score {
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  color: #facc15;
  background: rgba(0, 0, 0, 0.72);
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.68);
}

.badge-new {
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  background: rgba(34, 197, 94, 0.88);
}

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-info p {
  display: -webkit-box;
  min-height: 42px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  gap: 6px;
}

.card-meta span {
  min-height: 22px;
  padding: 3px 7px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.8);
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-card-wide .movie-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-panel {
  padding: 34px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 28px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.5));
}

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

.category-grid.large {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.category-card {
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.7);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  height: 88px;
  margin-bottom: 14px;
}

.category-thumbs img {
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

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

.category-card p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.7;
}

.rankings-preview {
  padding-top: 22px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 42px 70px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(51, 65, 85, 0.76);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.76);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row.big {
  grid-template-columns: 54px 92px 1fr auto;
  padding: 16px;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.72);
}

.rank-num {
  color: #22d3ee;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.ranking-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.ranking-row h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
}

.ranking-row p {
  margin: 6px 0 0;
  color: #94a3b8;
  line-height: 1.6;
}

.ranking-row strong {
  color: #facc15;
  font-size: 20px;
}

.page-hero {
  padding: 72px 0 58px;
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.25), transparent 35%), linear-gradient(90deg, #1d4ed8, #0891b2);
}

.page-hero.category-title {
  background: radial-gradient(circle at 70% 10%, rgba(250, 204, 21, 0.22), transparent 30%), linear-gradient(90deg, #0f172a, #164e63);
}

.search-box {
  max-width: 680px;
  margin-top: 28px;
}

.search-box.small {
  max-width: 480px;
}

.search-box input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  outline: none;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.search-box input::placeholder {
  color: #cbd5e1;
}

.filter-strip {
  margin-bottom: 24px;
}

.filter-strip a {
  padding: 8px 12px;
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.65);
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 26px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 18px;
  color: #cbd5e1;
  text-align: center;
  background: rgba(15, 23, 42, 0.7);
}

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

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

.breadcrumb a:hover {
  color: #22d3ee;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) saturate(1.25);
  transform: scale(1.08);
  opacity: 0.28;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.88) 44%, rgba(15, 23, 42, 0.62) 100%);
}

.detail-head {
  position: relative;
  padding: 46px 0 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #164e63);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.detail-copy .lead {
  font-size: 19px;
}

.detail-meta {
  margin-top: 22px;
}

.tag-cloud {
  margin: 20px 0 30px;
}

.player-card {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.94));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

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

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.3), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

.play-layer.is-hidden {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(90deg, #0891b2, #2563eb);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.4);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid #ffffff;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.article-card {
  padding: 28px;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
}

.article-card h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 26px;
}

.article-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 2;
  text-align: justify;
}

.site-footer {
  padding: 52px 0 0;
  color: #94a3b8;
  background: linear-gradient(180deg, #0f172a, #000000);
  border-top: 1px solid rgba(51, 65, 85, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-bottom {
  margin-top: 42px;
  padding: 18px;
  border-top: 1px solid rgba(51, 65, 85, 0.78);
  color: #64748b;
  text-align: center;
}

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

  .nav-toggle {
    display: block;
  }

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

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

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

  .brand {
    font-size: 20px;
  }

  .hero,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content {
    padding-bottom: 84px;
  }

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

  .btn {
    width: 100%;
  }

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

  .rail {
    grid-auto-columns: 68%;
  }

  .movie-card-wide {
    display: block;
  }

  .ranking-row,
  .ranking-row.big {
    grid-template-columns: 34px 58px 1fr;
  }

  .ranking-row strong {
    grid-column: 3;
    justify-self: start;
  }

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

  .detail-poster {
    width: 210px;
  }

  .detail-hero {
    min-height: auto;
  }

  .page-hero {
    padding: 54px 0 44px;
  }

  .feature-panel {
    padding: 22px;
  }
}
