
:root {
  --site-amber: #f59e0b;
  --site-gold: #fbbf24;
  --site-brown: #78350f;
  --site-ink: #1f2937;
  --site-muted: #6b7280;
  --site-paper: #fffbeb;
}

html {
  scroll-behavior: smooth;
}

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

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, rgba(245, 158, 11, 0.18), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(251, 191, 36, 0.20), transparent 28%),
    linear-gradient(180deg, #fffbeb 0%, #fef3c7 50%, #fff7ed 100%);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-nav.is-scrolled,
.site-nav.nav-solid {
  background: rgba(255, 251, 235, 0.94);
  box-shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
  backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--site-brown);
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--site-amber), var(--site-gold));
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.32);
  transform: rotate(-8deg);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(8deg) scale(1.06);
}

.brand-name {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #d97706, #ca8a04);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-sub {
  display: block;
  margin-top: -0.1rem;
  color: #d97706;
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav-links a,
.mobile-panel a {
  color: var(--site-brown);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover {
  color: #d97706;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form input,
.local-search input,
.local-search select {
  width: 16rem;
  border: 2px solid rgba(245, 158, 11, 0.36);
  background: rgba(255, 255, 255, 0.68);
  color: var(--site-ink);
  border-radius: 999px;
  padding: 0.6rem 2.6rem 0.6rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form input:focus,
.local-search input:focus,
.local-search select:focus {
  border-color: var(--site-amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
  background: #fff;
}

.search-form button {
  position: absolute;
  right: 0.35rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-amber), var(--site-gold));
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  color: var(--site-brown);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.mobile-panel {
  display: none;
  padding: 1rem;
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 18px 36px rgba(120, 53, 15, 0.12);
}

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

.mobile-panel a {
  display: block;
  padding: 0.85rem 0;
}

.main-offset {
  padding-top: 6.5rem;
}

.hero {
  position: relative;
  height: 42rem;
  min-height: 640px;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide.prev {
  transform: translateX(-4rem);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.25) 48%, rgba(0, 0, 0, 0.20)),
    radial-gradient(circle at 20% 65%, rgba(245, 158, 11, 0.34), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  height: 100%;
  margin: 0 auto;
  padding: 10rem 1rem 5rem;
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  max-width: 56rem;
  color: #fff;
  animation: fadeRise 0.7s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--site-amber), var(--site-gold));
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.35);
}

.hero h1,
.hero h2 {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 48rem;
  font-size: 1.15rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.84);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.3rem 0 1.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.btn-primary,
.btn-ghost,
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.btn-gold {
  color: #fff;
  background: linear-gradient(135deg, var(--site-amber), var(--site-gold));
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.30);
}

.btn-primary {
  padding: 0.95rem 1.7rem;
}

.btn-gold {
  padding: 0.75rem 1.25rem;
}

.btn-ghost {
  padding: 0.9rem 1.35rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 1.25rem;
}

.hero-next {
  right: 1.25rem;
}

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

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 2rem;
  background: var(--site-amber);
}

.section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4.5rem 1rem;
}

.section-tight {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4.5rem;
}

.section-head {
  text-align: center;
  max-width: 45rem;
  margin: 0 auto 2.6rem;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #d97706, #ca8a04);
  -webkit-background-clip: text;
  color: transparent;
}

.section-head p {
  margin-top: 1rem;
  color: var(--site-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

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

.stat-card,
.category-card,
.info-card {
  border-radius: 1.35rem;
  padding: 1.55rem;
  box-shadow: 0 22px 55px rgba(120, 53, 15, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, #facc15, #f59e0b);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, #fb923c, #d97706);
}

.category-card,
.info-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(14px);
}

.stat-card:hover,
.category-card:hover,
.info-card:hover,
.movie-card:hover,
.rank-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 65px rgba(120, 53, 15, 0.18);
}

.stat-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 2rem;
  line-height: 1;
}

.category-card h3,
.info-card h3 {
  color: #92400e;
  font-size: 1.35rem;
  font-weight: 850;
  margin-bottom: 0.65rem;
}

.category-card p,
.info-card p {
  color: #6b7280;
  line-height: 1.7;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #92400e, #f59e0b);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after,
.related-card:hover .poster::after {
  opacity: 1;
}

.duration,
.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--site-amber), var(--site-gold));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.duration {
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.35rem 0.65rem;
}

.score-badge {
  left: 0.8rem;
  bottom: 0.8rem;
  padding: 0.35rem 0.65rem;
}

.rank-badge {
  top: 0.8rem;
  left: 0.8rem;
  width: 2.05rem;
  height: 2.05rem;
  display: grid;
  place-items: center;
}

.card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  color: #111827;
  font-weight: 850;
  line-height: 1.25;
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
  transition: color 0.2s ease;
}

.movie-card:hover h3,
.related-card:hover h3,
.rank-card:hover h3 {
  color: #d97706;
}

.card-body p {
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.card-meta span,
.detail-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  color: #92400e;
  background: #fef3c7;
  font-size: 0.78rem;
  font-weight: 750;
}

.card-link {
  margin-top: auto;
  color: #d97706;
  font-weight: 850;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rank-card {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 45px rgba(120, 53, 15, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card .poster {
  aspect-ratio: 16 / 10;
  min-height: 100%;
}

.rank-info {
  padding: 1rem 1rem 1rem 0;
}

.rank-info h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 850;
  margin-bottom: 0.45rem;
}

.rank-info p {
  color: #6b7280;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.local-search {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 auto 2rem;
}

.filter-chip {
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  color: #92400e;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.24);
  font-weight: 780;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--site-amber), var(--site-gold));
  transform: translateY(-1px);
}

.breadcrumbs {
  color: #92400e;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.breadcrumbs a {
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: 1.55rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 60px rgba(120, 53, 15, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
  cursor: pointer;
}

.player-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.18));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 5.3rem;
  height: 5.3rem;
  border-radius: 999px;
  color: #fff;
  font-size: 2rem;
  padding-left: 0.22rem;
  background: linear-gradient(135deg, var(--site-amber), var(--site-gold));
  box-shadow: 0 20px 55px rgba(245, 158, 11, 0.36);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}

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

.player-title {
  padding: 1.25rem 1.35rem 1.35rem;
}

.player-title h1 {
  color: #111827;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.player-title p {
  margin-top: 0.8rem;
  color: #6b7280;
  line-height: 1.75;
}

.detail-card,
.side-card {
  padding: 1.35rem;
}

.detail-card h2,
.side-card h2 {
  color: #92400e;
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
}

.detail-card p {
  color: #374151;
  line-height: 1.95;
  margin-bottom: 1rem;
}

.side-poster {
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #92400e, #f59e0b);
  margin-bottom: 1rem;
}

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

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

.related-card {
  overflow: hidden;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(120, 53, 15, 0.10);
}

.related-card .card-body {
  padding: 0.85rem;
}

.no-results {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: #92400e;
  font-weight: 850;
}

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

.site-footer {
  margin-top: 4rem;
  color: #fffbeb;
  background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3 {
  color: #fde68a;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.site-footer p,
.site-footer a {
  color: #fef3c7;
  line-height: 1.75;
}

.site-footer a {
  display: inline-block;
  margin: 0.15rem 0.7rem 0.15rem 0;
}

.fade-in {
  animation: fadeRise 0.6s ease both;
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .rank-card {
    grid-template-columns: 12rem 1fr;
  }

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

@media (max-width: 820px) {
  .nav-links,
  .nav-inner > .search-form {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .hero {
    min-height: 620px;
    height: 90vh;
  }

  .hero-content {
    padding: 8rem 1.2rem 4.5rem;
  }

  .hero-control {
    display: none;
  }

  .stats-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 560px) {
  .brand-name {
    font-size: 1.15rem;
  }

  .brand-sub {
    font-size: 0.68rem;
  }

  .hero h1,
  .hero h2 {
    font-size: 2.45rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-info {
    padding: 1rem;
  }

  .local-search input,
  .local-search select {
    width: 100%;
  }
}
