:root {
  --autumn-50: #fff7ed;
  --autumn-100: #ffedd5;
  --autumn-200: #fed7aa;
  --autumn-500: #f97316;
  --autumn-600: #ea580c;
  --autumn-700: #c2410c;
  --leaf-50: #fefce8;
  --leaf-200: #fef08a;
  --leaf-500: #84cc16;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--autumn-50), #ffffff 34%, #ffffff);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.top-ribbon {
  color: #ffffff;
  text-align: center;
  padding: 8px 0;
  background: linear-gradient(135deg, #f97316, #ea580c, #f59e0b);
  font-size: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--autumn-500), var(--autumn-700));
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.brand-mark.small {
  width: 32px;
  height: 32px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text strong {
  color: var(--autumn-700);
  font-size: 24px;
}

.brand-text em {
  color: var(--autumn-500);
  font-style: normal;
  font-size: 12px;
}

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

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

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

.nav-search input,
.mobile-search input,
.cta-search input,
.search-hero input,
.filter-bar input {
  border: 2px solid var(--autumn-200);
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.cta-search input:focus,
.search-hero input:focus,
.filter-bar input:focus {
  border-color: var(--autumn-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.nav-search button,
.mobile-search button,
.cta-search button,
.search-hero button,
.filter-bar button,
.primary-button,
.soft-button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--autumn-600);
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.cta-search button:hover,
.search-hero button:hover,
.filter-bar button:hover,
.primary-button:hover,
.soft-button:hover {
  background: var(--autumn-700);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--autumn-600);
  background: transparent;
  font-size: 28px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--autumn-100);
  padding: 16px;
}

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

.mobile-link {
  display: block;
  padding: 12px 0;
  color: #374151;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.1s ease;
  pointer-events: none;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(254, 240, 138, 0.28), transparent 35%), linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.18)), linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #7c2d12;
  background: var(--leaf-200);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.eyebrow.dark {
  color: var(--autumn-700);
  background: var(--autumn-100);
}

.hero-text h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-text p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #ffedd5;
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.55;
}

.hero-tags,
.detail-tags,
.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.tag-line span {
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 12px;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
}

.ghost-button {
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.ghost-button:hover {
  color: var(--autumn-700);
  background: #ffffff;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

.hero-arrow {
  border: 0;
  border-radius: 999px;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 34px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-dot.active {
  width: 30px;
  background: #ffffff;
}

.page-section {
  margin-top: 72px;
}

.page-top {
  padding-top: 38px;
}

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

.section-head h2,
.title-panel h1 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 900;
}

.section-head p,
.title-panel p,
.cta-panel p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  color: var(--autumn-600);
  font-weight: 900;
}

.white-panel,
.title-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 34px;
}

.title-panel {
  background: linear-gradient(135deg, #ffffff, var(--autumn-50));
}

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

.feature-card,
.feature-link {
  position: relative;
  display: block;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

.feature-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 10px;
  color: #ffffff;
}

.feature-copy strong {
  font-size: 25px;
  line-height: 1.2;
}

.feature-copy em,
.feature-meta {
  color: #e5e7eb;
  font-style: normal;
}

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

.movie-list {
  display: grid;
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.movie-card-list {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
}

.movie-poster {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: #111827;
}

.movie-poster.wide {
  height: 100%;
  min-height: 210px;
}

.movie-poster img,
.feature-link img,
.category-card img {
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-poster img,
.feature-link:hover img,
.category-card:hover img {
  transform: scale(1.07);
}

.duration {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--autumn-600);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.poster-meta {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.poster-meta b,
.pill {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.poster-meta b,
.pill.orange {
  color: var(--autumn-700);
  background: rgba(255, 255, 255, 0.92);
}

.pill.gray {
  color: #374151;
  background: #f3f4f6;
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  font-size: 54px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-hover,
.feature-link:hover .play-hover {
  opacity: 1;
}

.movie-info {
  padding: 16px;
}

.movie-info.grow {
  padding: 22px;
}

.movie-info h2,
.movie-info h3 {
  margin: 0 0 9px;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
}

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

.movie-info p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row,
.card-foot,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.meta-row {
  margin-bottom: 10px;
}

.card-foot {
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.rating {
  color: var(--leaf-500);
  font-weight: 900;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar input {
  min-width: min(320px, 100%);
}

.filter-bar button {
  color: var(--autumn-700);
  background: var(--autumn-100);
  box-shadow: none;
}

.filter-bar button.active,
.filter-bar button:hover {
  color: #ffffff;
  background: var(--autumn-600);
}

.sticky-filter {
  position: sticky;
  top: 92px;
  z-index: 5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
  backdrop-filter: blur(12px);
}

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

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12));
}

.category-card strong,
.category-card em {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.category-card strong {
  bottom: 68px;
  font-size: 24px;
  font-weight: 900;
}

.category-card em {
  bottom: 22px;
  color: #f3f4f6;
  font-style: normal;
  line-height: 1.5;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.ranking-box,
.cta-panel,
.side-card,
.detail-panel {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 26px;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 80px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-num,
.ranking-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--autumn-600);
  font-weight: 900;
}

.rank-row img {
  height: 54px;
  border-radius: 10px;
}

.rank-copy {
  display: grid;
  gap: 4px;
}

.rank-copy strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em,
.rank-score {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.cta-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff, var(--autumn-50), var(--leaf-50));
}

.cta-panel h2 {
  margin: 18px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.cta-search input,
.search-hero input {
  flex: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--autumn-600);
  font-weight: 800;
}

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

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
  cursor: pointer;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: var(--autumn-600);
  font-size: 44px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.34);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover span {
  transform: scale(1.08);
  background: var(--autumn-700);
}

.player-start.hidden {
  display: none;
}

.detail-panel {
  margin-top: 24px;
}

.detail-panel h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
}

.detail-panel h2,
.side-card h2 {
  margin: 24px 0 12px;
  font-size: 22px;
  color: #111827;
}

.detail-panel p {
  color: #374151;
  line-height: 1.85;
  font-size: 17px;
}

.lead-text {
  font-weight: 800;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 12px;
  color: #374151;
  background: #f3f4f6;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
}

.soft-button.outline {
  color: #374151;
  border: 2px solid #d1d5db;
  background: #ffffff;
}

.soft-button.outline:hover {
  color: var(--autumn-700);
  border-color: var(--autumn-600);
  background: #ffffff;
}

.detail-tags span {
  color: #374151;
  background: #f3f4f6;
}

.review-box {
  border-radius: 20px;
  background: linear-gradient(135deg, var(--autumn-50), var(--leaf-50));
  padding: 22px;
  margin-top: 24px;
}

.detail-side {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 20px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-list a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-list img {
  height: 72px;
  border-radius: 12px;
}

.side-list strong {
  display: block;
  overflow: hidden;
  color: #111827;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.muted-card {
  background: linear-gradient(135deg, #ffffff, var(--autumn-50));
}

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

.ranking-card {
  position: relative;
}

.ranking-card .ranking-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
}

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

.site-footer {
  margin-top: 80px;
  background: linear-gradient(180deg, var(--autumn-50), var(--autumn-100));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--autumn-700);
  font-size: 20px;
  margin-bottom: 12px;
}

.site-footer h3 {
  color: var(--autumn-800, #9a3412);
  margin: 0 0 14px;
}

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

.site-footer a {
  color: #4b5563;
}

.site-footer a:hover {
  color: var(--autumn-600);
}

.footer-bottom {
  border-top: 1px solid var(--autumn-200);
  color: var(--muted);
  text-align: center;
  padding: 18px;
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

  .feature-grid,
  .category-grid.large,
  .split-section,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-side {
    position: static;
  }
}

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

  .hero-carousel {
    height: 560px;
  }

  .hero-text h1 {
    font-size: 42px;
  }

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

  .white-panel,
  .title-panel,
  .ranking-box,
  .cta-panel,
  .side-card,
  .detail-panel {
    padding: 22px;
    border-radius: 20px;
  }

  .movie-grid,
  .ranking-grid,
  .category-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-list {
    grid-template-columns: 1fr;
  }

  .movie-poster.wide {
    height: 230px;
  }

  .rank-row {
    grid-template-columns: 34px 64px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .filter-bar input {
    width: 100%;
  }

  .side-list a {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}
