* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #f59e0b #020617;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #f8fafc;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 34rem),
    radial-gradient(circle at 80% 8%, rgba(30, 64, 175, 0.24), transparent 38rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 34px rgba(245, 158, 11, 0.35);
}

.brand-text {
  font-size: 1.45rem;
  background: linear-gradient(90deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 22px;
}

.nav-link {
  color: #cbd5e1;
  font-size: 0.96rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fbbf24;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.82);
}

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

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.62) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.08) 52%, rgba(2, 6, 23, 0.66) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  padding: 7px 14px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 820px;
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.52);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 32px;
  color: #dbeafe;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.primary-button,
.quick-search button {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.26);
}

.secondary-button,
.section-link {
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.62);
}

.primary-button:hover,
.secondary-button:hover,
.quick-search button:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  font-size: 2.2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 34px;
  background: #f59e0b;
}

.search-banner,
.page-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  margin-top: 42px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 64, 175, 0.22));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.search-banner h2,
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.search-banner p,
.page-hero p {
  margin: 0;
  color: #cbd5e1;
}

.quick-search {
  display: flex;
  gap: 12px;
  border-radius: 999px;
  padding: 8px;
  background: rgba(2, 6, 23, 0.76);
}

.quick-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #f8fafc;
  background: transparent;
  padding: 0 16px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.category-chip,
.category-overview-card a {
  display: grid;
  min-height: 130px;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.category-chip:hover,
.category-overview-card a:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(30, 41, 59, 0.82);
  transform: translateY(-3px);
}

.category-chip strong,
.category-overview-card h2 {
  color: #fff;
  font-size: 1.12rem;
}

.category-chip span,
.category-overview-card p,
.sample-title-row span {
  color: #94a3b8;
  font-size: 0.92rem;
}

.content-section,
.catalog-section {
  margin-top: 56px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

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

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

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

.movie-card {
  min-width: 0;
}

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-link:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #111827, #1e3a8a);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 16px;
  opacity: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.78) 100%);
  transition: opacity 0.25s ease;
}

.movie-card-link:hover .poster-shade {
  opacity: 1;
}

.play-pill,
.rank-badge,
.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  font-size: 0.82rem;
  font-weight: 800;
}

.play-pill {
  min-height: 32px;
  padding: 0 14px;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
}

.movie-card-body {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.movie-card-body h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 2.6em;
  margin: 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 0.86rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.9);
  font-size: 0.75rem;
}

.page-main {
  padding: 34px 0 0;
}

.small-hero {
  display: block;
  min-height: auto;
  margin-top: 20px;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.category-overview-card a {
  min-height: 220px;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 1.45rem;
}

.category-count {
  width: fit-content;
  padding: 5px 12px;
}

.sample-title-row {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.filter-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}

.filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.filter-panel-head h2 {
  margin: 0;
}

.filter-panel-head span {
  color: #fbbf24;
  font-weight: 800;
}

.filter-controls {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.filter-controls label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.88rem;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  outline: 0;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.78);
  padding: 0 13px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 20px;
  color: #94a3b8;
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-main {
  padding-top: 24px;
}

.detail-hero {
  margin-top: 16px;
}

.player-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
  font-size: 1.05rem;
  font-weight: 800;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.overlay-play-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 42px rgba(245, 158, 11, 0.36);
  font-size: 2rem;
}

.player-info {
  padding: clamp(22px, 4vw, 38px);
}

.player-info h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.player-info p {
  max-width: 900px;
  margin: 0 0 18px;
  color: #dbeafe;
  font-size: 1.08rem;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 26px;
  margin-top: 34px;
}

.detail-article,
.detail-side-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.detail-article {
  padding: clamp(22px, 4vw, 38px);
}

.detail-article h2 {
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: 1.4rem;
}

.detail-article p {
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.85;
}

.detail-side-card {
  align-self: start;
  overflow: hidden;
}

.detail-side-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #0f172a;
}

.detail-side-card dl {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 18px;
}

.detail-side-card div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 12px;
}

.detail-side-card dt {
  color: #94a3b8;
}

.detail-side-card dd {
  margin: 0;
  color: #f8fafc;
  text-align: right;
}

.detail-side-card a {
  color: #fbbf24;
}

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

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 58, 138, 0.55), rgba(15, 23, 42, 0.94));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0;
}

.footer-brand {
  margin-bottom: 10px;
  color: #fbbf24;
  font-size: 1.4rem;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: #94a3b8;
  font-size: 0.92rem;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fbbf24;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 18px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
  }

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

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero-carousel {
    height: 76vh;
    min-height: 600px;
  }

  .hero-content {
    padding-right: 46px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .search-banner,
  .page-hero,
  .filter-controls,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .quick-search input {
    min-height: 44px;
  }

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

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

  .brand-text {
    font-size: 1.18rem;
  }

  .hero-content h1 {
    font-size: 2.55rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

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

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

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

  .player-info {
    padding: 18px;
  }

  .overlay-play-icon {
    width: 68px;
    height: 68px;
  }
}
