:root {
  --bg: #fffaf2;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.18);
  --brand: #d97706;
  --brand-2: #ea580c;
  --brand-3: #ef4444;
  --shadow: 0 18px 55px rgba(120, 53, 15, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #fffaf2 44%, #ffffff 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.88);
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #92400e;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.28);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.mobile-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.menu-button {
  display: none;
  border: 0;
  background: #fff7ed;
  color: #92400e;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-link {
  display: block;
  padding: 10px 4px;
  border-top: 1px solid rgba(217, 119, 6, 0.14);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #431407;
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(251, 191, 36, 0.22), transparent 35%),
    linear-gradient(115deg, rgba(67, 20, 7, 0.92) 0%, rgba(154, 52, 18, 0.76) 42%, rgba(0, 0, 0, 0.35) 100%);
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 52px;
  color: white;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.hero p {
  max-width: 640px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

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

.btn.primary {
  color: #ea580c;
  background: white;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.btn.ghost {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn.text {
  color: #fde68a;
  padding-left: 8px;
}

.hero-poster {
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(2.2deg);
}

.hero-poster img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

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

.hero-dot {
  width: 32px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.active {
  background: white;
}

.quick-search-panel {
  margin-top: -46px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 420px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel h2 {
  margin: 0 0 4px;
  font-size: 26px;
}

.quick-search-panel p {
  margin: 0;
  color: var(--muted);
}

.quick-search,
.filter-bar {
  display: flex;
  gap: 10px;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 999px;
  background: white;
  padding: 13px 18px;
  color: var(--ink);
  outline: none;
}

.quick-search button,
.filter-bar button {
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 900;
}

.section-block {
  padding: 64px 0 18px;
}

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

.section-title span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 4px 0 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-title a {
  color: #c2410c;
  font-weight: 900;
}

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

.category-card,
.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-radius: var(--radius);
  background: #111827;
  box-shadow: var(--shadow);
}

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

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

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

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

.category-card span,
.category-tile span {
  color: white;
  font-size: 23px;
  font-weight: 900;
}

.category-card em,
.category-tile p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 14px;
}

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

.category-tile {
  min-height: 260px;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
}

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

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

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

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 9px 0;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.card-body p {
  min-height: 58px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.07);
}

.rank-num {
  color: #fb923c;
  font-size: 22px;
  font-weight: 900;
}

.rank-item img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  color: #111827;
  font-size: 17px;
}

.rank-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-item b {
  color: #dc2626;
  font-size: 20px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 76px;
  color: white;
  background:
    radial-gradient(circle at 18% 24%, rgba(251, 191, 36, 0.38), transparent 32%),
    linear-gradient(135deg, #92400e 0%, #ea580c 55%, #ef4444 100%);
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.category-hero .filter-bar,
.search-page-bar {
  max-width: 780px;
  margin-top: 28px;
}

.detail-hero {
  position: relative;
  padding: 74px 0 58px;
  color: white;
  background-image: var(--detail-bg);
  background-size: cover;
  background-position: center;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(67, 20, 7, 0.92), rgba(124, 45, 18, 0.82), rgba(0, 0, 0, 0.36)),
    rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(7px);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 40px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.breadcrumb a {
  color: #fde68a;
  font-weight: 800;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 21px;
}

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

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 800;
}

.detail-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #030712;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030712;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.52));
}

.play-cover span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 18px 50px rgba(234, 88, 12, 0.36);
  font-size: 34px;
  padding-left: 5px;
}

.play-cover strong {
  font-size: 22px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 30px;
  padding-top: 42px;
}

.detail-main,
.detail-side {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 15px 42px rgba(120, 53, 15, 0.08);
}

.detail-main {
  padding: 30px;
}

.detail-main h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 25px;
}

.detail-main p {
  margin: 0 0 26px;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.detail-side {
  align-self: start;
  padding: 22px;
}

.detail-side a {
  display: block;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: #9a3412;
  background: #fff7ed;
  font-weight: 900;
}

.site-footer {
  margin-top: 70px;
  padding: 44px 0;
  color: #fff7ed;
  background: #431407;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.2fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 900;
}

.footer-grid p {
  margin: 0;
  color: rgba(255, 247, 237, 0.72);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 247, 237, 0.86);
  font-weight: 800;
}

.wrap-links {
  flex-direction: row;
  flex-wrap: wrap;
  align-content: start;
}

.compact-card .card-body p {
  min-height: auto;
}

.is-hidden {
  display: none !important;
}

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

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

  .hero-content {
    grid-template-columns: 1fr 300px;
  }
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 42px;
    padding-bottom: 72px;
    gap: 24px;
  }

  .hero-poster {
    width: 210px;
    justify-self: start;
  }

  .hero-poster img {
    height: 280px;
  }

  .quick-search-panel,
  .detail-hero-inner,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-search,
  .filter-bar {
    flex-direction: column;
  }

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

  .detail-poster {
    width: 220px;
  }
}

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

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 42px;
  }

  .hero p,
  .page-hero p,
  .detail-one-line {
    font-size: 17px;
  }

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

  .btn {
    width: 100%;
  }

  .category-grid,
  .category-overview,
  .movie-grid,
  .wide-grid,
  .rank-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 36px 52px 1fr;
  }

  .rank-item b {
    grid-column: 3;
  }
}
