:root {
  --ash-50: #f8f7f6;
  --ash-100: #efedeb;
  --ash-200: #ddd8d4;
  --ash-500: #83766d;
  --ash-700: #6d625c;
  --ash-900: #4a4441;
  --fire-50: #fff8f0;
  --fire-100: #ffefd6;
  --fire-500: #ff7a14;
  --fire-600: #f05d00;
  --fire-700: #c74400;
  --ember-50: #fdf4f3;
  --ember-100: #fce7e4;
  --ember-600: #cf4332;
  --forest-50: #f3f6f3;
  --forest-600: #475e47;
  --text: #322d2a;
  --muted: #746a63;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(74, 68, 65, 0.12);
  --shadow-strong: 0 24px 60px rgba(44, 36, 31, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--ash-50);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  color: var(--ash-900);
  line-height: 1.15;
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 20px rgba(74, 68, 65, 0.1);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--fire-500), var(--ember-600));
  box-shadow: 0 12px 24px rgba(240, 93, 0, 0.24);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ash-900);
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--ash-500);
}

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

.nav-link {
  font-weight: 700;
  color: var(--ash-700);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--fire-600);
}

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

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--ash-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 210px;
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--fire-600);
  box-shadow: 0 0 0 4px rgba(240, 93, 0, 0.12);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--fire-600);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--ash-900);
  background: var(--fire-100);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--ash-100);
  background: var(--white);
}

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

.mobile-panel-inner {
  display: grid;
  gap: 14px;
  padding: 16px 0 20px;
}

.mobile-search input {
  width: 100%;
  padding: 11px 14px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(255, 122, 20, 0.45), transparent 36%), linear-gradient(135deg, #221b18 0%, #4a231a 48%, #241f1d 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  padding: 52px 0;
  min-height: 650px;
}

.hero-main {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 34px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--fire-600);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #ffd6a8;
}

.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

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

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

.tag,
.detail-tags a {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--fire-700);
  background: var(--fire-100);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags .tag {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  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: var(--white);
  background: linear-gradient(135deg, var(--fire-600), var(--ember-600));
  box-shadow: 0 12px 24px rgba(240, 93, 0, 0.24);
}

.btn.ghost {
  color: var(--fire-700);
  background: var(--fire-100);
}

.btn.light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-image {
  position: relative;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.45));
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.hero-image:hover img {
  transform: scale(1.06);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 16px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--fire-500);
}

.hero-side {
  align-self: center;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.hero-side h2 {
  color: var(--white);
  font-size: 1.4rem;
}

.hero-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
}

.hero-mini img {
  width: 72px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.hero-categories a {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.84rem;
  font-weight: 700;
}

.section {
  padding: 56px 0;
}

.section-soft {
  background: linear-gradient(135deg, var(--fire-50), var(--ember-50));
}

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

.section-head h2,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.compact-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.section-link {
  color: var(--fire-600);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 40px rgba(74, 68, 65, 0.16);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ash-100);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.year-badge {
  right: 12px;
  top: 12px;
  padding: 5px 9px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  padding: 6px 10px;
  text-align: center;
  background: linear-gradient(135deg, var(--fire-600), var(--ember-600));
}

.movie-info {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-info h2 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.movie-info h2 a:hover {
  color: var(--fire-600);
}

.movie-info p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.93rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ash-500);
  font-size: 0.78rem;
  font-weight: 700;
}

.movie-meta span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.category-card,
.category-overview-card {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.category-card {
  padding: 20px;
}

.category-card a:first-child,
.category-overview-main {
  display: grid;
  gap: 10px;
}

.category-mark,
.category-overview-main span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--fire-600), var(--ember-600));
  font-size: 1.5rem;
  font-weight: 900;
}

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

.category-card p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
}

.category-card ul,
.category-overview-card ul,
.site-footer ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.category-card li + li {
  margin-top: 8px;
}

.category-card li a,
.category-samples a,
.site-footer a {
  color: var(--ash-700);
}

.category-card li a:hover,
.category-samples a:hover,
.site-footer a:hover {
  color: var(--fire-600);
}

.category-overview-card {
  overflow: hidden;
}

.category-overview-main {
  padding: 22px;
  background: linear-gradient(135deg, var(--white), var(--fire-50));
}

.category-samples {
  display: grid;
  gap: 9px;
  padding: 0 22px 22px;
  font-size: 0.95rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  border-radius: 24px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-title {
  margin-bottom: 16px;
}

.ranking-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-panel a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 12px;
  align-items: center;
  border-radius: 14px;
  padding: 10px;
  background: var(--ash-50);
}

.ranking-panel span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  color: var(--white);
  background: var(--fire-600);
  font-weight: 900;
}

.ranking-panel strong {
  overflow: hidden;
  color: var(--ash-900);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-panel em {
  color: var(--ash-500);
  font-size: 0.78rem;
  font-style: normal;
}

.page-hero,
.detail-hero {
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(255, 122, 20, 0.32), transparent 38%), linear-gradient(135deg, var(--ash-900), #261a16 58%, var(--ember-600));
}

.page-hero .container {
  padding: 64px 0;
}

.page-hero h1,
.page-hero p,
.detail-hero h1,
.detail-hero p {
  color: var(--white);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  border-radius: 22px;
  padding: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--ash-700);
  font-size: 0.85rem;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 11px 14px;
}

.empty-state {
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  color: var(--ash-700);
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-hero .container {
  padding: 36px 0 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--white);
}

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

.detail-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: 1.1rem;
}

.detail-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.detail-tags a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: var(--shadow-strong);
}

.video-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.35));
  transition: opacity 0.25s ease;
}

.video-player.is-loaded .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-overlay button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--fire-600), var(--ember-600));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.play-overlay span {
  margin-left: 6px;
  font-size: 2rem;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
}

.text-card {
  border-radius: 24px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.text-card h2 {
  margin-bottom: 14px;
  font-size: 1.8rem;
}

.text-card p {
  margin: 0;
  color: var(--ash-700);
  font-size: 1.02rem;
}

.accent-card {
  background: linear-gradient(135deg, var(--fire-50), var(--ember-50));
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--ash-900);
}

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

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1.2rem;
}

.site-footer p {
  margin: 14px 0 0;
}

.footer-brand {
  color: var(--white);
}

.site-footer li + li {
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
}

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

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

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-inner,
  .hero-slide,
  .split-section,
  .detail-layout,
  .content-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-main {
    min-height: 760px;
  }

  .hero-side,
  .ranking-panel {
    position: relative;
    top: auto;
  }

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

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

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

  .brand-subtitle {
    display: none;
  }

  .hero-inner {
    padding: 34px 0;
  }

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

  .hero-slide {
    align-content: center;
  }

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

  .hero-actions,
  .detail-actions,
  .page-hero-actions {
    display: grid;
  }

  .movie-grid,
  .listing-grid,
  .small-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 38px 0;
  }

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

  .page-hero .container,
  .detail-hero .container {
    padding: 42px 0;
  }

  .text-card {
    padding: 22px;
  }
}
