:root {
  --site-bg: #fff7ed;
  --site-text: #111827;
  --site-muted: #6b7280;
  --site-line: #fed7aa;
  --site-card: #ffffff;
  --site-orange: #f97316;
  --site-orange-dark: #ea580c;
  --site-red: #ef4444;
  --site-green: #059669;
  --site-blue: #2563eb;
  --site-shadow: 0 18px 45px rgba(124, 45, 18, 0.13);
  --site-radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-text);
}

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

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

.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.94);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
}

.site-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.35);
  font-size: 15px;
}

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

.site-nav__link,
.mobile-nav__link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active,
.mobile-nav__link:hover,
.mobile-nav__link.is-active {
  color: var(--site-orange-dark);
  background: #fff7ed;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 10%, rgba(255, 237, 213, 0.36), transparent 28%), linear-gradient(135deg, #f97316, #ef4444 50%, #7f1d1d);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.78));
  pointer-events: none;
}

.hero-carousel {
  position: relative;
  z-index: 1;
  min-height: 620px;
}

.hero-slide {
  display: none;
  min-height: 620px;
  align-items: center;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 48px;
  padding: 66px 0;
}

.hero-slide.is-active {
  display: grid;
  animation: heroFade 0.5s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.hero-title {
  margin: 18px 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 26px;
  color: #ffedd5;
  font-size: 19px;
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span,
.movie-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.28);
  font-weight: 900;
  cursor: pointer;
}

.button--light {
  color: #9a3412;
  background: #ffffff;
}

.button--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

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

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.45);
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 55%);
}

.hero-poster__caption {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 22px;
}

.hero-poster__caption strong {
  display: block;
  margin-bottom: 6px;
  font-size: 25px;
}

.hero-control {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.32);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control--prev {
  left: 18px;
}

.hero-control--next {
  right: 18px;
}

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

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

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

.section {
  padding: 64px 0;
}

.section--white {
  background: #ffffff;
}

.section--soft {
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
}

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

.section-title {
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 900;
}

.section-lead {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--site-muted);
  line-height: 1.75;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid #ffedd5;
  border-radius: var(--site-radius);
  background: var(--site-card);
  box-shadow: 0 10px 22px rgba(124, 45, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card__image {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecaca);
}

.movie-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .movie-card__image img {
  transform: scale(1.05);
}

.movie-card__rating,
.movie-card__type {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.movie-card__rating {
  left: 12px;
  background: var(--site-orange);
}

.movie-card__type {
  right: 12px;
  background: rgba(17, 24, 39, 0.78);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__title:hover {
  color: var(--site-orange-dark);
}

.movie-card__desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0;
  overflow: hidden;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  padding: 26px;
  overflow: hidden;
  border-radius: var(--site-radius);
  color: #111827;
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -45% 38%;
  height: 170px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(239, 68, 68, 0.12));
}

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

.category-card p {
  position: relative;
  margin: 0 0 18px;
  color: var(--site-muted);
  line-height: 1.7;
}

.category-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid #fed7aa;
  border-radius: var(--site-radius);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.08);
}

.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 900;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #fed7aa;
  border-radius: 15px;
  padding: 0 14px;
  color: #111827;
  background: #fff7ed;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--site-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: auto 86px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateX(3px);
  box-shadow: var(--site-shadow);
}

.compact-card img {
  width: 86px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: #fed7aa;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  margin-bottom: 6px;
  font-size: 16px;
}

.compact-card em {
  color: var(--site-muted);
  font-size: 13px;
  font-style: normal;
}

.rank-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
}

.detail-hero {
  padding: 42px 0 34px;
  background: radial-gradient(circle at 20% 0, #fed7aa, transparent 30%), linear-gradient(135deg, #fff7ed, #ffffff);
}

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

.detail-main,
.detail-side {
  border: 1px solid #ffedd5;
  border-radius: var(--site-radius);
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

.detail-main {
  overflow: hidden;
}

.player-stage {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.16));
  cursor: pointer;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.34);
  font-size: 34px;
  text-indent: 5px;
}

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

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 900;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

.detail-content h2 {
  margin: 28px 0 12px;
  font-size: 24px;
  font-weight: 900;
}

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

.detail-side {
  padding: 20px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: #fed7aa;
}

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

.side-title {
  margin: 20px 0 14px;
  font-size: 21px;
  font-weight: 900;
}

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

.site-footer {
  padding-top: 48px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.75;
}

.site-footer a {
  display: block;
  margin: 0 0 8px;
  color: #d1d5db;
}

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

.footer-bottom {
  margin-top: 36px;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #9ca3af;
}

[hidden] {
  display: none !important;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .movie-grid,
  .movie-grid--dense,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid,
  .rank-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .site-brand {
    font-size: 20px;
  }

  .hero,
  .hero-carousel,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 44px 0 74px;
    gap: 28px;
  }

  .hero-control {
    display: none;
  }

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

  .movie-grid,
  .movie-grid--dense,
  .category-grid,
  .rank-grid,
  .detail-layout,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .compact-card {
    grid-template-columns: auto 74px 1fr;
  }

  .compact-card img {
    width: 74px;
    height: 58px;
  }
}
