@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0a0e13;
  color: #edeae3;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
}

p {
  margin: 0;
}

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

.card-zen {
  overflow: hidden;
  border: 1px solid rgba(95, 85, 70, 0.5);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(79, 72, 59, 0.42), rgba(79, 72, 59, 0.18));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card-zen:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.divider-zen {
  height: 1px;
  margin: 32px 0;
  background: linear-gradient(90deg, transparent, #726650, transparent);
}

.btn-primary,
.btn-ghost,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  padding: 13px 24px;
  background: #d97706;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.24);
}

.btn-primary:hover {
  transform: scale(1.04);
  background: #b45309;
}

.btn-ghost {
  padding: 12px 22px;
  border: 1px solid rgba(251, 191, 36, 0.36);
  color: #fbbf24;
  background: rgba(10, 14, 19, 0.42);
}

.btn-ghost:hover,
.section-link:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.7);
}

.section-link {
  padding: 10px 16px;
  border: 1px solid rgba(217, 119, 6, 0.34);
  color: #fbbf24;
  background: rgba(217, 119, 6, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 19, 0.82);
  border-bottom: 1px solid rgba(114, 102, 80, 0.22);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 80px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #ffffff;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.26);
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 24px;
}

.brand-copy small {
  color: #a8a29e;
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: #e7dfd1;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fbbf24;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(114, 102, 80, 0.55);
  border-radius: 12px;
  background: rgba(79, 72, 59, 0.34);
  color: #f5f0e8;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 200px;
  padding: 10px 12px;
}

.header-search button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(217, 119, 6, 0.18);
  color: #fbbf24;
  cursor: pointer;
}

.header-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(114, 102, 80, 0.5);
  border-radius: 12px;
  background: rgba(79, 72, 59, 0.3);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #fbbf24;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(114, 102, 80, 0.2);
}

.mobile-nav-inner {
  display: grid;
  gap: 12px;
  padding: 16px 0 22px;
}

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

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #0a0e13;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(251, 191, 36, 0.18), transparent 35%),
    linear-gradient(90deg, rgba(10, 14, 19, 0.96), rgba(10, 14, 19, 0.72) 44%, rgba(10, 14, 19, 0.18)),
    linear-gradient(0deg, #0a0e13 0%, rgba(10, 14, 19, 0.18) 34%, rgba(10, 14, 19, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 650px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 90px 0 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content h2 {
  margin-top: 12px;
  color: #fbbf24;
  font-size: clamp(24px, 4vw, 44px);
}

.hero-content p {
  max-width: 680px;
  margin-top: 20px;
  color: #d6d3ca;
  font-size: 18px;
}

.hero-tags,
.detail-meta-row,
.tag-row,
.detail-tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-meta-row span,
.tag-chip,
.detail-tag-links a {
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(217, 119, 6, 0.1);
  color: #fcd58d;
  font-size: 13px;
  font-weight: 650;
}

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

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

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

.hero-dot.is-active {
  background: #fbbf24;
}

.content-section {
  padding: 72px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(79, 72, 59, 0.16), rgba(10, 14, 19, 0));
}

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

.section-heading h2 {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
}

.featured-layout,
.detail-content-grid,
.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 68px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px;
  min-height: 88px;
}

.compact-card img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card small {
  display: block;
  color: #a8a29e;
}

.rank-index {
  width: 34px;
  color: #fbbf24;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

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

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

.movie-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #111827;
}

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.category-cover-stack:hover img {
  transform: scale(1.08);
}

.card-badge,
.play-pill {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  top: 12px;
  left: 12px;
  background: rgba(10, 14, 19, 0.76);
  color: #fbbf24;
}

.play-pill {
  right: 12px;
  bottom: 12px;
  background: rgba(217, 119, 6, 0.88);
  color: #ffffff;
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a8a29e;
  font-size: 12px;
}

.movie-card h3 {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #fbbf24;
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: #c7c0b3;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-chip {
  padding: 4px 9px;
  color: #d7c8a4;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  display: grid;
  min-height: 210px;
  align-content: end;
  padding: 24px;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  transition: transform 0.45s ease;
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(10, 14, 19, 0.92), rgba(10, 14, 19, 0.1));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile span {
  color: #ffffff;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}

.category-tile small {
  max-width: 360px;
  color: #c7c0b3;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: #0a0e13;
}

.simple-hero {
  padding: 92px 0 64px;
  background:
    radial-gradient(circle at 16% 18%, rgba(217, 119, 6, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(79, 72, 59, 0.32), rgba(10, 14, 19, 0));
}

.simple-hero h1,
.page-hero-content h1,
.detail-hero h1 {
  max-width: 900px;
  color: #ffffff;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.1;
}

.simple-hero p,
.page-hero-content p,
.detail-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: #d6d3ca;
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 220px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  overflow: hidden;
}

.category-cover-stack img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-overview-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}

.category-overview-body h2 {
  color: #ffffff;
  font-size: 28px;
}

.category-overview-body p {
  color: #c7c0b3;
}

.category-hero,
.detail-hero {
  min-height: 430px;
}

.page-hero-image,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) blur(1px);
  transform: scale(1.03);
}

.page-hero-overlay,
.detail-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 18%, rgba(251, 191, 36, 0.2), transparent 36%),
    linear-gradient(90deg, rgba(10, 14, 19, 0.96), rgba(10, 14, 19, 0.72) 48%, rgba(10, 14, 19, 0.24)),
    linear-gradient(0deg, #0a0e13 0%, rgba(10, 14, 19, 0.18) 58%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 0;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
}

.filter-panel input {
  flex: 1 1 320px;
  min-height: 48px;
  padding: 0 16px;
}

.filter-panel select {
  min-height: 48px;
  padding: 0 14px;
}

.empty-state {
  margin-top: 28px;
  color: #a8a29e;
  text-align: center;
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 34px;
  align-items: center;
  min-height: 560px;
  padding: 80px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #a8a29e;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-meta-row {
  margin-top: 24px;
}

.detail-tag-links {
  margin-top: 18px;
}

.detail-poster {
  padding: 10px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  object-fit: cover;
}

.player-section {
  padding-top: 36px;
}

.player-card {
  padding: 14px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #000000;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.78));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-button {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #d97706;
  box-shadow: 0 22px 46px rgba(217, 119, 6, 0.28);
  cursor: pointer;
}

.player-triangle {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 27px solid #ffffff;
}

.player-overlay strong {
  color: #ffffff;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 24px;
}

.detail-content-section {
  padding-top: 0;
}

.detail-main-copy {
  display: grid;
  gap: 20px;
}

.detail-text,
.detail-side,
.ranking-aside {
  padding: 24px;
}

.detail-text h2,
.detail-side h2,
.ranking-aside h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 26px;
}

.detail-text p {
  color: #d6d3ca;
  font-size: 17px;
}

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

.site-footer {
  padding: 64px 0 34px;
  border-top: 1px solid rgba(114, 102, 80, 0.2);
  background: linear-gradient(180deg, rgba(79, 72, 59, 0.12), rgba(10, 14, 19, 1));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.6fr));
  gap: 32px;
}

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

.footer-text {
  max-width: 620px;
  color: #a8a29e;
}

.footer-grid h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #a8a29e;
}

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

.copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: #78716c;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .header-search {
    margin-left: auto;
  }

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

@media (max-width: 900px) {
  .header-search {
    display: none;
  }

  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .featured-layout,
  .detail-content-grid,
  .ranking-layout,
  .detail-hero-grid,
  .footer-grid,
  .category-overview-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 280px;
  }

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

@media (max-width: 640px) {
  .container-zen {
    width: min(100% - 24px, 1280px);
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-carousel,
  .hero-content {
    min-height: 520px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p,
  .simple-hero p,
  .page-hero-content p,
  .detail-hero p {
    font-size: 16px;
  }

  .content-section {
    padding: 48px 0;
  }

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

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

  .movie-card-body {
    padding: 12px;
  }

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .compact-card {
    grid-template-columns: auto 58px minmax(0, 1fr);
  }

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

  .category-overview-card {
    min-height: auto;
  }

  .category-cover-stack {
    min-height: 190px;
  }

  .category-cover-stack img {
    height: 95px;
  }

  .detail-hero-grid {
    min-height: auto;
    padding: 64px 0 42px;
  }

  .player-button {
    width: 68px;
    height: 68px;
  }

  .player-overlay strong {
    font-size: 19px;
  }
}
