:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 6px 18px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 14px 35px rgba(17, 24, 39, 0.12);
  --shadow-lg: 0 28px 60px rgba(17, 24, 39, 0.18);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}

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

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

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;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-700);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
  font-size: 18px;
  letter-spacing: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--gray-700);
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--amber-600);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 16px 16px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.mobile-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--gray-700);
}

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

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--amber-500), var(--orange-500));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.38), rgba(245, 158, 11, 0.28)), var(--hero-bg);
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease;
}

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

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: 48px;
  align-items: center;
  min-height: 560px;
  padding: 72px 0;
}

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

.hero-badge,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 8vw, 70px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 630px;
  margin: 0 0 26px;
  color: var(--amber-50);
  font-size: clamp(18px, 2.4vw, 24px);
}

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

.hero-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  color: var(--amber-700);
  background: var(--white);
}

.btn-amber {
  color: var(--white);
  background: var(--amber-600);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: var(--shadow-lg);
}

.hero-poster img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 24, 39, 0.58));
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-control,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.hero-control {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  opacity: 0.7;
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  opacity: 1;
  background: var(--white);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 620px;
  margin-top: 24px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 0 16px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

.section.white {
  background: var(--white);
}

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

.section-head.center {
  display: block;
  text-align: center;
}

.section-head h1,
.section-head h2 {
  margin: 10px 0 8px;
  color: var(--gray-800);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head p,
.category-intro,
.page-intro {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

.text-link {
  color: var(--amber-600);
  font-weight: 800;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--gray-800);
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: var(--gray-200);
}

.compact-card .poster-wrap,
.small-grid .poster-wrap {
  height: 190px;
}

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

.movie-card:hover img,
.category-card:hover img,
.related-card:hover img {
  transform: scale(1.08);
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 14px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  right: 14px;
  padding: 5px 10px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
  left: 14px;
  padding: 5px 10px;
  background: var(--red-500);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.compact-card .card-body,
.small-grid .card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 850;
  transition: color 0.2s ease;
}

.compact-card .card-body h3,
.small-grid .card-body h3 {
  overflow: hidden;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card:hover h3,
.related-card:hover h3,
.ranking-item:hover h3 {
  color: var(--amber-600);
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  margin-top: auto;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-size: 12px;
  font-weight: 700;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 13px;
}

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

.category-card {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:nth-child(3n+2) {
  background: linear-gradient(135deg, #fb7185, var(--orange-500));
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #38bdf8, var(--amber-500));
}

.category-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-md);
}

.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.category-card strong {
  position: absolute;
  right: 20px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.22);
  font-size: 56px;
  line-height: 1;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: linear-gradient(180deg, var(--white), var(--amber-50));
  border: 1px solid var(--amber-100);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ranking-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), var(--orange-500));
  border-radius: 14px;
  font-size: 18px;
  font-weight: 900;
}

.ranking-item img {
  width: 92px;
  height: 116px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.ranking-item p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-item small {
  color: var(--gray-500);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 0.28fr));
  gap: 14px;
  margin: 30px 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--gray-200);
  outline: 0;
  border-radius: 14px;
  color: var(--gray-800);
  background: var(--gray-50);
  padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.empty-state {
  display: none;
  padding: 30px;
  color: var(--gray-600);
  text-align: center;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.empty-state.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-600);
  font-weight: 700;
}

.detail-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--white);
  background: rgba(17, 24, 39, 0.35);
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 2;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.play-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  font-size: 36px;
  transition: transform 0.2s ease;
}

.player-cover:hover .play-circle {
  transform: scale(1.08);
}

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

.detail-body {
  padding: 32px;
}

.detail-title {
  margin: 12px 0 14px;
  color: var(--gray-800);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.detail-meta span {
  padding: 8px 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: 999px;
  font-weight: 700;
}

.detail-lead {
  margin: 22px 0;
  padding: 18px 20px;
  color: var(--gray-800);
  background: var(--amber-50);
  border-left: 5px solid var(--amber-600);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h2 {
  margin: 0 0 12px;
  color: var(--gray-800);
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.88;
}

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

.related-card {
  color: var(--gray-800);
}

.related-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.related-card h3 {
  overflow: hidden;
  margin: 10px 0 4px;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-card small {
  color: var(--gray-500);
}

.cta-band {
  color: var(--white);
  background: linear-gradient(100deg, var(--amber-600), var(--orange-500));
}

.cta-band .section-head h2,
.cta-band .section-head p {
  color: var(--white);
}

.site-footer {
  padding: 46px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
  color: var(--gray-600);
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--gray-800);
}

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

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

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

@media (max-width: 1040px) {
  .movie-grid,
  .movie-grid.small-grid,
  .category-grid,
  .related-grid,
  .ranking-list.split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-poster {
    display: none;
  }

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .brand {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-inner {
    min-height: 610px;
  }

  .hero-inner {
    padding: 48px 0 74px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search input {
    height: 46px;
  }

  .section {
    padding: 48px 0;
  }

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

  .movie-grid,
  .movie-grid.small-grid,
  .category-grid,
  .related-grid,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .compact-card .poster-wrap,
  .small-grid .poster-wrap {
    height: 240px;
  }

  .ranking-item {
    grid-template-columns: 42px 74px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .ranking-number {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 15px;
  }

  .ranking-item img {
    width: 74px;
    height: 98px;
  }

  .detail-body {
    padding: 22px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
