:root {
  --bg: #fff8eb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(245, 158, 11, 0.22);
  --amber: #f59e0b;
  --orange: #f97316;
  --dark: #111827;
  --soft: rgba(255, 255, 255, 0.78);
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #f9fafb 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.06);
}

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

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.26);
}

.logo-main {
  display: block;
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, #b45309, #ea580c);
  -webkit-background-clip: text;
  color: transparent;
}

.logo-sub {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

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

.nav-links a,
.mobile-panel a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: #374151;
  font-weight: 700;
  border-radius: 14px;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.22);
}

.nav-action {
  padding: 11px 18px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 900;
}

.mobile-panel {
  display: none;
  padding: 0 0 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 70px 0 54px;
  background:
    radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.42), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(249, 115, 22, 0.24), transparent 31%),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 46%, #f3f4f6 100%);
}

.hero:before,
.hero:after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  filter: blur(2px);
}

.hero:before {
  width: 420px;
  height: 420px;
  right: -130px;
  bottom: -110px;
}

.hero:after {
  width: 220px;
  height: 220px;
  left: 5%;
  top: 14%;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 42px;
  align-items: center;
}

.hero-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #b45309;
  padding: 8px 14px;
  font-weight: 850;
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.gradient-text {
  background: linear-gradient(90deg, #d97706, #f97316, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 680px;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.9;
}

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

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 15px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.26);
}

.btn-ghost {
  color: #b45309;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(245, 158, 11, 0.22);
}

.btn:hover,
.btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 44px rgba(249, 115, 22, 0.2);
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.hero-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.06);
}

.hero-mini strong {
  color: #111827;
  font-size: 22px;
}

.hero-mini span {
  color: #6b7280;
  font-size: 13px;
}

.hero-slider {
  position: relative;
  min-height: 510px;
}

.hero-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 34px 80px rgba(146, 64, 14, 0.22);
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.hero-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.72));
}

.hero-card-body {
  position: relative;
  z-index: 2;
  padding: 34px;
  color: #fff;
}

.hero-card-body h2 {
  font-size: clamp(27px, 3vw, 44px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-card-body p {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.hero-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-card-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

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

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

.section {
  padding: 68px 0;
}

.section-alt {
  background: linear-gradient(135deg, rgba(249, 250, 251, 0.92), rgba(255, 247, 237, 0.92));
}

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

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

.section-title {
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-desc {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(146, 64, 14, 0.14);
}

.poster {
  position: relative;
  aspect-ratio: 4 / 5.4;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.grid.featured .poster {
  aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.62));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 21px;
}

.card-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(17, 24, 39, 0.7);
}

.card-body {
  padding: 16px;
}

.card-title {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.card-meta,
.card-line {
  margin-top: 8px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.card-line {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile {
  display: block;
  min-height: 148px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 22px 50px rgba(146, 64, 14, 0.12);
}

.category-tile strong {
  color: #111827;
  font-size: 22px;
  font-weight: 950;
}

.category-tile p {
  margin-top: 10px;
  color: #6b7280;
  line-height: 1.7;
  font-size: 14px;
}

.page-hero {
  padding: 62px 0 46px;
  background:
    radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.36), transparent 34%),
    linear-gradient(135deg, #fff7ed, #f9fafb);
}

.page-hero h1 {
  margin: 14px 0 12px;
  color: #111827;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #92400e;
  font-weight: 750;
  font-size: 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 28px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.05);
}

.filters input,
.filters select {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  background: #fff;
  color: #374151;
  padding: 0 14px;
  outline: none;
}

.filters input {
  flex: 1 1 260px;
}

.filters select {
  flex: 0 1 170px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 84px 130px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.rank-item img {
  width: 130px;
  height: 82px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-info h2,
.rank-info h3 {
  color: #111827;
  font-size: 21px;
  font-weight: 920;
}

.rank-info p {
  margin-top: 7px;
  color: #6b7280;
  line-height: 1.65;
}

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

.player-card,
.detail-card,
.sidebar-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 20px 55px rgba(17, 24, 39, 0.08);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.65));
  z-index: 2;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
}

.player-button {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.28);
  font-size: 31px;
  transition: transform 0.25s ease;
}

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

.detail-card {
  padding: 28px;
  margin-top: 24px;
}

.detail-card h1 {
  color: #111827;
  font-size: clamp(31px, 4vw, 50px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #92400e;
  font-weight: 850;
  background: #fef3c7;
}

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

.detail-section h2 {
  margin-bottom: 12px;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.detail-section p {
  color: #4b5563;
  line-height: 1.95;
  font-size: 16px;
}

.sidebar-card {
  padding: 20px;
}

.sidebar-card h2 {
  margin-bottom: 16px;
  color: #111827;
  font-size: 22px;
  font-weight: 950;
}

.side-link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.25s ease;
}

.side-link:hover {
  background: #fff7ed;
}

.side-link img {
  width: 92px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.side-link strong {
  color: #111827;
  font-weight: 900;
  line-height: 1.4;
}

.side-link span {
  display: block;
  margin-top: 5px;
  color: #6b7280;
  font-size: 12px;
}

.site-footer {
  margin-top: 40px;
  padding: 54px 0 34px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer li {
  color: #9ca3af;
  line-height: 1.8;
  font-size: 14px;
}

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

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

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.back-top.show {
  display: grid;
}

@media (max-width: 1024px) {
  .hero-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 780px) {
  .nav-links,
  .nav-action {
    display: none;
  }

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

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

  .mobile-panel a {
    display: flex;
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 38px;
  }

  .hero-slider {
    min-height: 420px;
  }

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

  .grid,
  .grid.featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .rank-item {
    grid-template-columns: 54px 92px minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }

  .rank-num {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 18px;
  }

  .rank-item img {
    width: 92px;
    height: 68px;
  }

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

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

  .logo-main {
    font-size: 18px;
  }

  .logo-sub {
    display: none;
  }

  .hero-card-body {
    padding: 22px;
  }

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

  .filters select {
    flex: 1 1 100%;
  }
}
