:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #d97706;
  --accent-dark: #b45309;
  --accent-soft: #fef3c7;
  --rose: #fce7f3;
  --purple: #ede9fe;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.20), transparent 34rem),
    linear-gradient(180deg, #f9fafb 0%, #ffffff 46%, #f8fafc 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444 58%, #7c3aed);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #92400e;
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 11px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #1f2937;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 42px;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.9s ease;
}

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.08) contrast(1.02);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 13, 26, 0.94) 0%, rgba(17, 24, 39, 0.70) 42%, rgba(17, 24, 39, 0.12) 100%),
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.40), transparent 34rem);
}

.hero-content {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(650px, 100%);
  padding: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 22px 0 10px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.3vw, 46px);
  line-height: 1.08;
}

.hero p {
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags {
  margin: 24px 0 30px;
}

.hero-tags span,
.tag-row span,
.meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 13px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  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: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.35);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.btn.soft {
  color: #92400e;
  background: #fef3c7;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 72px;
  bottom: 34px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  background: #f59e0b;
}

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

.section {
  margin: 44px 0;
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-head a {
  color: #b45309;
  font-weight: 900;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.grid.two {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.movie-card,
.category-card,
.panel,
.detail-panel,
.search-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(229, 231, 235, 0.94);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(217, 119, 6, 0.18), rgba(124, 58, 237, 0.15)),
    #f3f4f6;
}

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

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

.score-pill {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.76);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

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

.card-body h3 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 118px 1fr;
}

.movie-card.compact .poster-link {
  aspect-ratio: auto;
  min-height: 176px;
}

.category-card {
  min-height: 188px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 10rem),
    linear-gradient(135deg, #ffffff, #fff7ed);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.category-card strong {
  color: var(--accent-dark);
}

.panel {
  padding: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #fffbeb;
  transform: translateX(3px);
}

.rank-num {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

.rank-item img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f4f6;
}

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

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

.rank-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-title {
  margin: 38px 0 26px;
  padding: 34px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(254, 243, 199, 0.86), rgba(252, 231, 243, 0.78)),
    #ffffff;
  border: 1px solid rgba(253, 230, 138, 0.74);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
}

.filter-row {
  margin: 18px 0 24px;
}

.filter-chip {
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 8px 13px;
  color: #92400e;
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: var(--accent);
}

.search-panel {
  padding: 22px;
  margin-bottom: 24px;
}

.search-input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #fde68a;
  border-radius: 16px;
  color: #111827;
  background: #ffffff;
  font-size: 16px;
  outline: none;
}

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

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 24px;
  align-items: start;
}

.watch-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050816;
  box-shadow: var(--shadow);
}

.watch-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050816;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(5, 8, 22, 0.34), rgba(5, 8, 22, 0.76));
  cursor: pointer;
}

.play-cover.hidden {
  display: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.34);
}

.play-icon::before {
  content: "";
  margin-left: 5px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #ffffff;
}

.detail-panel {
  padding: 24px;
}

.detail-panel h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.detail-panel h2,
.detail-panel h3 {
  margin: 28px 0 12px;
  color: #111827;
}

.detail-panel p {
  color: #4b5563;
  line-height: 1.9;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #f3f4f6;
}

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

.side-info {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
}

.side-info dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.side-info div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.side-info dt {
  color: var(--muted);
}

.side-info dd {
  margin: 0;
  color: #111827;
  font-weight: 900;
  text-align: right;
}

.site-footer {
  margin-top: 70px;
  padding: 34px 0;
  color: #6b7280;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: #ffffff;
}

.footer-inner p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

@media (max-width: 980px) {
  .grid.cards,
  .grid.categories,
  .grid.two,
  .watch-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content {
    padding: 50px 34px;
  }

  .hero-dots {
    left: 34px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

  .hero {
    width: calc(100% - 20px);
    margin-top: 14px;
  }

  .hero-stage {
    min-height: 650px;
    border-radius: 26px;
  }

  .hero-content {
    padding: 34px 24px;
    justify-content: flex-end;
  }

  .hero-arrow {
    display: none;
  }

  .grid.cards,
  .grid.categories,
  .grid.two,
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .movie-card.compact {
    grid-template-columns: 104px 1fr;
  }

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