:root {
  color-scheme: dark;
  --page-bg: #030712;
  --panel: rgba(17, 24, 39, 0.82);
  --panel-strong: rgba(31, 41, 55, 0.92);
  --line: rgba(75, 85, 99, 0.56);
  --text: #f9fafb;
  --muted: #9ca3af;
  --orange: #f97316;
  --cyan: #06b6d4;
  --radius: 18px;
}

body {
  background: radial-gradient(circle at 12% 12%, rgba(249, 115, 22, 0.14), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(6, 182, 212, 0.14), transparent 30%),
    var(--page-bg);
  color: var(--text);
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(17, 24, 39, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand,
.nav-links,
.mobile-panel,
.footer-grid,
.hero-actions,
.quick-links,
.detail-meta,
.tag-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fb923c, #ffffff, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.22);
}

.nav-links {
  gap: 22px;
  color: #d1d5db;
  font-size: 0.95rem;
}

.nav-links a,
.mobile-panel a,
.site-footer a,
.section-title a,
.mini-links a {
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover,
.site-footer a:hover,
.section-title a:hover,
.mini-links a:hover {
  color: #fb923c;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 19px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0 24px 20px;
  color: #d1d5db;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(234, 88, 12, 0.24), transparent 34%, rgba(8, 145, 178, 0.22)),
    url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAxMCAwIEwgMCAwIDAgMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIgc3Ryb2tlLXdpZHRoPSIxIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyaWQpIi8+PC9zdmc+");
  opacity: 0.96;
}

.hero-wrap {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero-slide {
  display: none;
  width: 100%;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 420px);
  gap: 48px;
  align-items: center;
  animation: fadeIn 0.48s ease both;
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  font-weight: 900;
  line-height: 1.05;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  max-width: 980px;
  background: linear-gradient(90deg, #fb923c, #ffffff 48%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.hero-copy h2 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  margin-bottom: 18px;
}

.hero-copy p {
  color: #d1d5db;
  font-size: 1.08rem;
  line-height: 1.85;
  max-width: 740px;
}

.hero-actions {
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 800;
}

.primary-btn,
.home-search button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  box-shadow: 0 16px 35px rgba(249, 115, 22, 0.22);
}

.ghost-btn {
  border: 1px solid rgba(209, 213, 219, 0.28);
  color: #e5e7eb;
  background: rgba(17, 24, 39, 0.5);
}

.primary-btn:hover,
.ghost-btn:hover,
.home-search button:hover,
.category-tile:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}

.hero-poster img,
.poster-link img,
.detail-poster img,
.rank-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dots button.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
}

.quick-search {
  margin-top: -54px;
  position: relative;
  z-index: 4;
}

.home-search,
.filter-inner {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.25);
}

.home-search {
  grid-template-columns: 1fr auto;
}

.home-search input,
.filter-inner input,
.filter-inner select {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(75, 85, 99, 0.76);
  background: rgba(3, 7, 18, 0.64);
  color: #ffffff;
  padding: 0 14px;
}

.quick-links {
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  color: #d1d5db;
}

.section-block {
  padding-top: 72px;
  padding-bottom: 72px;
}

.section-muted {
  background: linear-gradient(180deg, transparent, rgba(31, 41, 55, 0.54), transparent);
}

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

.section-title h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 900;
}

.section-title a {
  color: #67e8f9;
}

.category-grid,
.category-overview-grid,
.movie-grid {
  display: grid;
  gap: 20px;
}

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

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

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

.category-tile,
.category-overview-card,
.movie-card,
.rank-row,
.player-shell,
.content-main,
.content-side {
  border: 1px solid rgba(75, 85, 99, 0.56);
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.78), rgba(17, 24, 39, 0.88));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.category-tile,
.category-overview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
}

.category-icon,
.category-heading span,
.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  color: #ffffff;
  font-weight: 900;
}

.category-tile strong,
.category-heading strong {
  font-size: 1.15rem;
}

.category-tile em,
.category-overview-card p,
.movie-desc,
.movie-meta,
.page-hero p,
.detail-line,
.content-main p,
.content-side dd,
.site-footer p,
.small-text {
  color: var(--muted);
  line-height: 1.75;
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #67e8f9;
  font-size: 0.92rem;
}

.movie-card {
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.62);
  box-shadow: 0 24px 72px rgba(6, 182, 212, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  transition: transform 0.45s ease;
}

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

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

.type-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.9);
  font-size: 0.75rem;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: rgba(6, 182, 212, 0.92);
}

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

.movie-card h3 {
  font-size: 0.98rem;
  font-weight: 800;
  min-height: 2.7em;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #22d3ee;
}

.movie-meta {
  margin: 6px 0;
  font-size: 0.78rem;
}

.movie-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.86rem;
}

.page-hero {
  padding-top: 82px;
  padding-bottom: 42px;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  margin-bottom: 18px;
  background: linear-gradient(90deg, #fb923c, #ffffff, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  max-width: 780px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.filter-bar {
  position: sticky;
  top: 73px;
  z-index: 50;
  padding: 14px 0;
  background: rgba(3, 7, 18, 0.76);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(75, 85, 99, 0.28);
}

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

.filter-inner label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #d1d5db;
  font-size: 0.82rem;
}

.movie-card.is-hidden {
  display: none;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
}

.rank-row img {
  width: 58px;
  height: 78px;
  border-radius: 10px;
}

.rank-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rank-info strong {
  font-weight: 850;
}

.rank-info em {
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(26px);
  transform: scale(1.1);
  opacity: 0.24;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.98), rgba(3, 7, 18, 0.78), rgba(3, 7, 18, 0.98));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
  min-height: 560px;
  padding: 48px 0;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: #9ca3af;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #67e8f9;
}

.detail-info h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  margin-bottom: 18px;
}

.detail-line {
  max-width: 820px;
  font-size: 1.12rem;
}

.detail-meta,
.tag-list {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.detail-meta span,
.tag-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.72);
  border: 1px solid rgba(75, 85, 99, 0.54);
  color: #e5e7eb;
  font-size: 0.88rem;
}

.tag-pill {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.11);
  border-color: rgba(249, 115, 22, 0.34);
}

.detail-info .primary-btn {
  margin-top: 30px;
}

.player-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), rgba(0, 0, 0, 0.72));
  z-index: 4;
}

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

.play-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  box-shadow: 0 18px 50px rgba(249, 115, 22, 0.3);
  font-size: 2rem;
}

.player-cover strong {
  font-size: clamp(1.1rem, 3vw, 1.7rem);
}

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

.content-main,
.content-side {
  border-radius: 22px;
  padding: 28px;
}

.content-main h2,
.content-side h2 {
  font-size: 1.45rem;
  font-weight: 850;
  margin-bottom: 14px;
}

.content-main p + h2 {
  margin-top: 28px;
}

.content-side dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px 14px;
}

.content-side dt {
  color: #fbbf24;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #030712;
  padding-top: 46px;
}

.footer-grid {
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 0.9fr;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(90deg, #fb923c, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer h3 {
  margin-bottom: 12px;
  font-weight: 850;
}

.site-footer a {
  display: block;
  color: #9ca3af;
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 36px;
  padding: 20px;
  border-top: 1px solid rgba(75, 85, 99, 0.45);
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .nav-toggle {
    display: flex;
  }

  .hero-slide,
  .detail-hero-inner,
  .detail-content,
  .footer-grid,
  .category-overview-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .hero-wrap,
  .hero-section {
    min-height: auto;
  }

  .hero-wrap {
    padding-top: 68px;
    padding-bottom: 96px;
  }

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

  .filter-inner,
  .home-search {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    position: relative;
    top: auto;
  }

  .detail-hero-inner {
    padding-top: 38px;
  }
}

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

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

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

  .section-block {
    padding-top: 46px;
    padding-bottom: 46px;
  }

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

  .movie-desc {
    display: none;
  }

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