:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #ea580c;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 22%, #f9fafb 100%);
  color: var(--text);
}

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

.nav-wrap {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.28);
}

.brand-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--amber-dark), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link,
.mobile-panel a,
.dropdown-panel a {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-panel a:hover,
.dropdown-panel a:hover {
  color: var(--amber-dark);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 190px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.dropdown-panel a:hover {
  background: #fffbeb;
}

.site-search {
  position: relative;
  width: 260px;
  flex-shrink: 0;
}

.site-search input {
  width: 100%;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0 44px 0 16px;
  background: #fff;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-search input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.site-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border-radius: 999px;
  color: #6b7280;
}

.site-search button:hover {
  color: var(--amber-dark);
  background: #fffbeb;
}

.menu-button {
  display: none;
  margin-left: auto;
  font-size: 24px;
  color: #374151;
}

.mobile-panel {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
}

.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.14) 100%);
}

.hero-content {
  position: absolute;
  left: calc((100vw - min(1280px, 100vw)) / 2 + 24px);
  top: 50%;
  transform: translateY(-50%);
  width: min(650px, calc(100vw - 48px));
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: var(--amber);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

.hero h1,
.hero h2 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
  margin-bottom: 12px;
}

.hero h3 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  font-weight: 900;
  margin-bottom: 14px;
}

.hero p {
  max-width: 620px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.primary-button {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.32);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--amber-dark);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: var(--amber);
}

.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}

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

.content-section {
  margin-bottom: 64px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-heading span {
  color: var(--amber-dark);
  font-weight: 900;
}

.section-heading h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--amber-dark);
  font-weight: 900;
}

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

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

.movie-card {
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.card-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.card-cover img,
.detail-poster img,
.category-card img,
.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-cover img {
  transition: transform 0.5s ease;
}

.card-link:hover .card-cover img {
  transform: scale(1.1);
}

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

.card-link:hover .card-cover::after {
  opacity: 1;
}

.cover-tag,
.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.cover-tag {
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  background: var(--amber);
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.28);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  min-height: 48px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link:hover h3 {
  color: var(--amber-dark);
}

.card-body p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-horizontal .card-link {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.card-horizontal .card-cover {
  height: 160px;
}

.card-horizontal .card-body h3 {
  min-height: auto;
  font-size: 18px;
}

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

.spotlight-band {
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(90deg, #ffedd5, #fef3c7, #fef9c3);
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.76));
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.5s ease;
}

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

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin-top: 8px;
  color: #f3f4f6;
  line-height: 1.6;
}

.page-hero {
  padding: 44px;
  border-radius: 30px;
  margin-bottom: 32px;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 38%), linear-gradient(135deg, #111827, #3b2415 55%, #9a3412);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}

.page-hero p {
  color: #f3f4f6;
  font-size: 18px;
  line-height: 1.8;
  max-width: 860px;
}

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

.breadcrumb a {
  color: var(--amber-dark);
  font-weight: 800;
}

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

.category-overview-card a {
  display: block;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  height: 120px;
  margin-bottom: 16px;
}

.category-thumbs img {
  border-radius: 12px;
}

.category-overview-card h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.category-overview-card span {
  color: var(--amber-dark);
  font-weight: 900;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.filter-row span {
  width: 44px;
  font-weight: 900;
  color: #374151;
}

.filter-row button {
  padding: 8px 13px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 14px;
  font-weight: 800;
}

.filter-row button:hover,
.filter-row button.is-active {
  background: var(--amber);
  color: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  margin-bottom: 36px;
  align-items: stretch;
}

.detail-poster {
  overflow: hidden;
  min-height: 460px;
  border-radius: 26px;
  background: #fed7aa;
  box-shadow: var(--shadow);
}

.detail-info {
  padding: 40px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.detail-one-line {
  font-size: 20px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 22px;
}

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

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

.player-section,
.article-section {
  margin-bottom: 42px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-section h2,
.article-section h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 18px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #030712;
}

.video-element {
  width: 100%;
  height: 100%;
  background: #030712;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.68));
  color: #fff;
  text-align: center;
}

.play-layer.is-hidden {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.36);
  font-size: 34px;
}

.play-layer strong {
  max-width: 80%;
  font-size: 22px;
  font-weight: 900;
}

.article-section p {
  color: #374151;
  line-height: 2;
  font-size: 17px;
  margin-bottom: 20px;
}

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

.empty-state {
  padding: 36px;
  border-radius: 20px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.site-footer {
  margin-top: 24px;
  background: #111827;
  color: #e5e7eb;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner strong {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  margin-top: 8px;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.footer-links a:hover {
  color: #fbbf24;
}

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

  .site-search {
    width: 220px;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    left: 24px;
    top: 52%;
  }

  .hero-control {
    display: none;
  }

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

  .ranking-list,
  .category-grid,
  .category-overview-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    min-height: 360px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    padding: 0 16px;
  }

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

  .page-container {
    padding: 32px 16px;
  }

  .hero {
    height: 620px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .section-heading h2 {
    font-size: 28px;
  }

  .card-cover {
    height: 190px;
  }

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

  .card-horizontal .card-cover {
    height: 210px;
  }

  .spotlight-band,
  .page-hero,
  .detail-info,
  .player-section,
  .article-section {
    padding: 22px;
  }

  .filter-row span {
    width: 100%;
  }
}
