:root {
  --page-bg: #0c0a09;
  --panel: #1c1917;
  --panel-soft: rgba(41, 37, 36, 0.82);
  --line: rgba(120, 113, 108, 0.35);
  --text: #f5f5f4;
  --muted: #a8a29e;
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --danger: #ef4444;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.13), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(239, 68, 68, 0.08), transparent 30rem),
    var(--page-bg);
  color: var(--text);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(28, 25, 23, 0.94);
  border-bottom: 1px solid rgba(68, 64, 60, 0.82);
  backdrop-filter: blur(14px);
}

.site-nav {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #111827;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.24);
}

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

.nav-link {
  color: #d6d3d1;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 28vw);
  padding: 6px;
  border: 1px solid rgba(120, 113, 108, 0.42);
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.52);
}

.header-search input,
.page-search input {
  width: 100%;
  background: transparent;
  color: #fafaf9;
  outline: none;
  border: 0;
  font-size: 14px;
}

.header-search input::placeholder,
.page-search input::placeholder {
  color: #78716c;
}

.search-submit,
.mobile-toggle,
.hero-arrow,
.filter-chip {
  border: 0;
  color: #fafaf9;
  background: rgba(245, 158, 11, 0.12);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.search-submit:hover,
.mobile-toggle:hover,
.hero-arrow:hover,
.filter-chip:hover,
.filter-chip.active {
  color: #111827;
  background: var(--accent);
  transform: translateY(-1px);
}

.search-submit {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(68, 64, 60, 0.85);
  background: rgba(28, 25, 23, 0.98);
}

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

.mobile-menu-inner {
  display: grid;
  gap: 14px;
  padding: 18px 0 20px;
}

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

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

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

.hero-bg,
.hero-bg img,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.96) 0%, rgba(12, 10, 9, 0.78) 42%, rgba(12, 10, 9, 0.36) 74%, rgba(12, 10, 9, 0.9) 100%),
    linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.1) 42%, rgba(12, 10, 9, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  padding-top: 78px;
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 13px;
  font-weight: 700;
}

.hero-title {
  max-width: 760px;
  font-size: clamp(42px, 6.5vw, 82px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero-movie-title {
  margin-top: 18px;
  color: #fbbf24;
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 800;
}

.hero-desc {
  max-width: 720px;
  margin-top: 18px;
  color: #d6d3d1;
  font-size: 17px;
  line-height: 1.78;
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-top: 20px;
}

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(68, 64, 60, 0.72);
  color: #e7e5e4;
  font-size: 12px;
  font-weight: 600;
}

.tag-pill {
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.18);
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.26);
}

.btn-secondary {
  color: #fafaf9;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(231, 229, 228, 0.18);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(28, 25, 23, 0.76);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.72);
  border: 1px solid rgba(120, 113, 108, 0.32);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: #78716c;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.hero-dot.active {
  width: 26px;
  border-radius: 999px;
  background: #f59e0b;
}

.section {
  padding: 72px 0 0;
}

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

.section-title,
.page-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-desc,
.page-desc {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.92);
  border: 1px solid rgba(68, 64, 60, 0.8);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.52);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.movie-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #1c1917;
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.06);
}

.movie-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 15px;
}

.movie-title {
  color: #fafaf9;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

.card-meta {
  margin-top: 8px;
  justify-content: space-between;
  color: #a8a29e;
  font-size: 12px;
}

.card-desc {
  margin-top: 10px;
  color: #a8a29e;
  font-size: 13px;
  line-height: 1.58;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(239, 68, 68, 0.08)),
    rgba(28, 25, 23, 0.92);
  border: 1px solid rgba(120, 113, 108, 0.36);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.56);
}

.category-card h2,
.category-card h3 {
  color: #fafaf9;
  font-size: 23px;
  font-weight: 900;
}

.category-card p {
  margin-top: 12px;
  color: #c2bdb8;
  line-height: 1.68;
}

.page-hero {
  padding: 130px 0 36px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(41, 37, 36, 0.64), rgba(12, 10, 9, 0));
}

.page-search {
  display: flex;
  gap: 10px;
  width: min(720px, 100%);
  margin-top: 26px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(28, 25, 23, 0.92);
  border: 1px solid rgba(120, 113, 108, 0.36);
}

.page-search button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 16px;
  border: 0;
  color: #111827;
  background: #f59e0b;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.filter-chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 60px 100px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(28, 25, 23, 0.94);
  border: 1px solid rgba(68, 64, 60, 0.78);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.48);
}

.rank-number {
  color: #f59e0b;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: #1c1917;
}

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

.rank-title {
  color: #fafaf9;
  font-size: 20px;
  font-weight: 900;
}

.rank-desc {
  margin-top: 8px;
  color: #a8a29e;
  line-height: 1.62;
}

.rank-score {
  color: #fbbf24;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 32px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 74px rgba(0, 0, 0, 0.42);
}

.player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.26);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.52);
}

.play-button {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #111827;
  background: #f59e0b;
  font-size: 34px;
  box-shadow: 0 18px 52px rgba(245, 158, 11, 0.4);
}

.detail-panel,
.side-panel {
  padding: 26px;
  border-radius: 26px;
  background: rgba(28, 25, 23, 0.88);
  border: 1px solid rgba(68, 64, 60, 0.72);
}

.detail-panel {
  margin-top: 24px;
}

.detail-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.detail-meta {
  margin: 18px 0 22px;
}

.detail-text {
  color: #d6d3d1;
  line-height: 1.9;
  font-size: 16px;
}

.detail-subtitle {
  margin: 26px 0 12px;
  color: #fbbf24;
  font-size: 20px;
  font-weight: 900;
}

.side-cover {
  overflow: hidden;
  border-radius: 22px;
  background: #1c1917;
}

.side-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.side-title {
  margin-top: 18px;
  color: #fbbf24;
  font-size: 22px;
  font-weight: 900;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(41, 37, 36, 0.68);
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.compact-card:hover {
  border-color: rgba(245, 158, 11, 0.42);
}

.compact-card img {
  width: 58px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
}

.compact-card strong {
  color: #fafaf9;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.compact-card span {
  display: block;
  margin-top: 4px;
  color: #a8a29e;
  font-size: 12px;
}

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

.breadcrumb a {
  color: #fbbf24;
}

.site-footer {
  margin-top: 90px;
  padding: 46px 0;
  background: rgba(28, 25, 23, 0.94);
  border-top: 1px solid rgba(68, 64, 60, 0.84);
}

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

.footer-title {
  color: #fafaf9;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-text,
.footer-link {
  color: #a8a29e;
  line-height: 1.75;
  font-size: 14px;
}

.footer-link:hover {
  color: #fbbf24;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(68, 64, 60, 0.7);
  color: #78716c;
  font-size: 13px;
  text-align: center;
}

.no-results {
  display: none;
  padding: 28px;
  border-radius: 22px;
  color: #d6d3d1;
  background: rgba(28, 25, 23, 0.9);
  border: 1px solid rgba(68, 64, 60, 0.74);
}

.no-results.is-visible {
  display: block;
}

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

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

  .hero-content,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-container {
    width: min(100% - 24px, 1180px);
  }

  .nav-links,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-content {
    padding-top: 96px;
  }

  .hero-desc {
    font-size: 15px;
  }

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

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

  .section-head {
    display: block;
  }

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

  .rank-score {
    grid-column: 3;
  }

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

@media (max-width: 520px) {
  .brand {
    font-size: 19px;
  }

  .hero-actions,
  .section-actions {
    display: grid;
  }

  .movie-info {
    padding: 12px;
  }

  .rank-desc,
  .card-desc {
    display: none;
  }

  .detail-panel,
  .side-panel {
    padding: 18px;
  }
}
