:root {
  --yellow: #facc15;
  --yellow-dark: #ca8a04;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fffbeb;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #fefce8 0%, #ffffff 45%, #fffbeb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #facc15, #fde047, #f59e0b);
  box-shadow: 0 12px 30px rgba(202, 138, 4, 0.22);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #f59e0b;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.13);
}

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

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

.nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 16px;
  color: #374151;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #111827;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(146, 64, 14, 0.18);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.45);
}

.nav-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 10px;
  color: #111827;
}

.nav-search button,
.mobile-search button,
.button,
.text-link {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  transition: 0.2s ease;
}

.nav-search button,
.mobile-search button,
.button.primary {
  color: #ffffff;
  background: #111827;
}

.nav-search button:hover,
.mobile-search button:hover,
.button.primary:hover {
  transform: translateY(-1px);
  background: #1f2937;
}

.button.ghost {
  color: #111827;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.36);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 1.35rem;
  font-weight: 900;
}

.mobile-menu {
  display: none;
  padding: 0 16px 18px;
}

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

.mobile-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0 88px;
  background: linear-gradient(135deg, #facc15 0%, #fde047 45%, #f59e0b 100%);
}

.hero-shape {
  position: absolute;
  border: 5px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  animation: floatPulse 5s ease-in-out infinite;
}

.shape-one {
  top: 42px;
  left: 5%;
  width: 90px;
  height: 90px;
}

.shape-two {
  right: 8%;
  top: 120px;
  width: 138px;
  height: 138px;
  animation-delay: 1s;
}

.shape-three {
  left: 35%;
  bottom: 42px;
  width: 72px;
  height: 72px;
  animation-delay: 1.8s;
}

@keyframes floatPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.42;
  }
  50% {
    transform: translateY(-18px) scale(1.07);
    opacity: 0.2;
  }
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-intro {
  color: #111827;
}

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  border-radius: 999px;
  color: #eab308;
  background: #ffffff;
  font-size: 2rem;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.site-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 13px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-intro h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 620px;
  color: #374151;
  font-size: 1.18rem;
  line-height: 1.8;
}

.quick-links,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quick-links a {
  border-radius: 999px;
  padding: 12px 18px;
  color: #111827;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.14);
}

.quick-links a:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.hero-carousel {
  position: relative;
  min-height: 474px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 218px;
  gap: 24px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  box-shadow: 0 28px 70px rgba(146, 64, 14, 0.18);
  backdrop-filter: blur(18px);
  transition: 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-copy p {
  color: #4b5563;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-meta span,
.meta-line span,
.detail-facts span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #a16207;
  background: #fef3c7;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 400px;
  background: #111827;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.hero-poster img {
  transition: 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.08);
}

.play-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  color: #111827;
  background: #facc15;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
  transform: translate(-50%, -50%);
}

.hero-dots {
  position: absolute;
  left: 28px;
  bottom: 26px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.24);
  transition: 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: #111827;
}

.stats-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 0;
}

.stats-grid div {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f9fafb, #ffffff);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.stats-grid span {
  color: var(--muted);
}

.section-block {
  padding: 72px 0;
  background: #ffffff;
}

.section-block.warm {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

.section-head h2,
.page-title h1,
.detail-main-text h1 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p,
.detail-main-text .lead-text {
  max-width: 740px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.text-link {
  color: #a16207;
  background: #fef3c7;
  white-space: nowrap;
}

.text-link:hover {
  color: #111827;
  background: #fde68a;
}

.movie-grid,
.ranking-preview,
.ranking-hero-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

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

.movie-card-link {
  display: block;
  overflow: hidden;
  height: 100%;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
  transition: 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 54px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111827;
}

.poster-frame img {
  transition: 0.5s ease;
}

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 70%);
  transition: 0.25s ease;
}

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

.duration-badge,
.rank-flag {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
}

.rank-flag {
  left: 10px;
  top: 10px;
  color: #111827;
  background: #facc15;
}

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

.movie-card-body h3 {
  min-height: 3.1em;
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.42;
  font-weight: 900;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body p {
  min-height: 3.2em;
  margin: 0 0 12px;
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-line {
  margin-bottom: 12px;
}

.tag-row span {
  color: #854d0e;
  background: #fff7ed;
}

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

.category-tile,
.category-overview-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-tile-main,
.category-overview-card > a {
  display: block;
  padding: 26px;
}

.category-tile h3,
.category-overview-card h2 {
  margin: 10px 0 8px;
  font-size: 1.65rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.category-tile p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

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

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

.mini-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  background: #111827;
}

.mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.mini-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-title {
  padding: 58px 0 30px;
}

.filters-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(170px, 0.7fr));
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.filters-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 900;
}

.filters-panel input,
.filters-panel select {
  width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px 15px;
  outline: none;
  background: #ffffff;
  transition: 0.2s ease;
}

.filters-panel input:focus,
.filters-panel select:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.2);
}

.filter-grid {
  padding-bottom: 72px;
}

.no-results {
  display: none;
  margin-bottom: 72px;
  border-radius: 20px;
  padding: 26px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 900;
  text-align: center;
}

.no-results.show {
  display: block;
}

.detail-hero {
  padding: 38px 0 44px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 42%, #92400e 100%);
}

.detail-shell {
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.video-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #111827;
  background: radial-gradient(circle at center, rgba(250, 204, 21, 0.26), rgba(0, 0, 0, 0.26));
  transition: 0.25s ease;
}

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

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  font-size: 2.2rem;
  transform: scale(1);
  transition: 0.2s ease;
}

.player-overlay:hover .play-button {
  transform: scale(1.08);
}

.detail-side {
  display: grid;
  gap: 16px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

.detail-facts,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-facts span {
  color: #111827;
  background: #fef3c7;
}

.detail-content {
  padding: 56px 0 18px;
}

.detail-main-text {
  max-width: 920px;
}

.detail-tags {
  margin: 20px 0 26px;
}

.story-card {
  margin: 24px 0;
  border-radius: 24px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
  font-weight: 950;
}

.story-card p {
  margin: 0 0 14px;
  color: #374151;
  line-height: 1.9;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 44px 0 28px;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.35rem;
}

.footer-grid p {
  max-width: 650px;
  margin-top: 10px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  border-radius: 999px;
  padding: 10px 14px;
  color: #111827;
  background: #facc15;
  font-weight: 900;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0 28px;
  color: #9ca3af;
}

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

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

  .hero-shell,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 560px;
  }

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

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

  .detail-side {
    grid-template-columns: 180px 1fr;
    align-items: start;
  }
}

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

  .nav-shell {
    min-height: 66px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

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

  .hero-section {
    padding: 46px 0 62px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .hero-poster {
    min-height: 250px;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .stats-grid,
  .movie-grid,
  .ranking-preview,
  .ranking-hero-list,
  .category-grid,
  .category-overview-grid,
  .filters-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .text-link {
    margin-top: 14px;
    display: inline-flex;
  }

  .section-block {
    padding: 50px 0;
  }

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

  .detail-side {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 240px;
  }

  .play-button {
    width: 76px;
    height: 76px;
  }
}
