:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(180, 83, 9, 0.18);
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #f59e0b;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 55%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 237, 213, 0.94));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, #92400e, #ea580c, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 15px;
  color: #78350f;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: #d97706;
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.2);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  color: #92400e;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 14px;
  font-size: 20px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.mobile-cats a {
  padding: 6px 10px;
  color: #92400e;
  background: rgba(251, 191, 36, 0.16);
  border-radius: 999px;
  font-size: 13px;
}

.hero-carousel {
  position: relative;
  height: 540px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(251, 191, 36, 0.2), transparent 28%), linear-gradient(90deg, rgba(69, 26, 3, 0.94), rgba(124, 45, 18, 0.74) 48%, rgba(17, 24, 39, 0.28));
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(69, 26, 3, 0.48));
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: white;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #fde68a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  width: min(760px, 100%);
  margin: 0 0 8px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: #fed7aa;
  font-size: clamp(24px, 3.5vw, 42px);
}

.hero-copy p {
  width: min(680px, 100%);
  margin: 0 0 28px;
  color: #ffedd5;
  font-size: 18px;
}

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

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.22s ease;
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28);
}

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

.btn.small {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 14px;
}

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

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

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

.hero-dots button.active {
  width: 56px;
  background: #fbbf24;
}

.quick-search {
  margin-top: -34px;
  position: relative;
  z-index: 10;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-bar {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #fff7ed;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 16px;
}

.search-bar input,
.filters input,
.filters select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: white;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 14px;
  outline: none;
}

.search-bar input {
  border: 0;
  background: transparent;
}

.search-bar button {
  min-width: 100px;
  color: white;
  background: #d97706;
  border: 0;
  font-weight: 900;
  cursor: pointer;
}

.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-links a {
  padding: 10px 13px;
  color: #92400e;
  background: rgba(251, 191, 36, 0.16);
  border-radius: 14px;
  font-weight: 800;
}

.section {
  padding: 54px 0;
}

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

.section-head h2 {
  margin: 0;
  color: #78350f;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

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

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

.category-tile {
  min-height: 160px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, white, #fff7ed);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
  transition: 0.22s ease;
}

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

.category-thumbs {
  height: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.category-thumbs img {
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.category-tile strong {
  display: block;
  margin-top: 12px;
  color: #78350f;
  font-size: 18px;
}

.category-tile span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(146, 64, 14, 0.08);
  transition: 0.22s ease;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: radial-gradient(circle at top left, #fde68a, #fb923c 52%, #7c2d12);
}

.poster img,
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.28s ease;
}

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

.poster-meta,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.poster-meta {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-style: normal;
}

.rank-badge {
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 12px;
  font-weight: 900;
  font-style: normal;
}

.card-body {
  padding: 16px;
}

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

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.card-tags span {
  padding: 4px 8px;
  color: #92400e;
  background: rgba(251, 191, 36, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.card-tags.wide span {
  margin-bottom: 2px;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #78716c;
  font-size: 13px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ranking-list.full {
  grid-template-columns: repeat(2, 1fr);
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 142px;
}

.movie-card.compact .poster {
  aspect-ratio: auto;
  min-height: 100%;
}

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

.page-hero {
  padding: 72px 0;
  color: white;
  background: radial-gradient(circle at 70% 30%, rgba(251, 191, 36, 0.28), transparent 30%), linear-gradient(135deg, #78350f, #c2410c 62%, #f59e0b);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.08;
}

.page-hero p {
  width: min(760px, 100%);
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 700;
}

.filter-panel,
.archive-panel {
  padding: 30px 0 60px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.filter-count {
  color: #92400e;
  font-weight: 800;
}

.overview-stack {
  display: grid;
  gap: 22px;
  padding: 34px 0 62px;
}

.overview-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
  transition: 0.22s ease;
}

.overview-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.overview-top h2 {
  margin: 0 0 8px;
  color: #78350f;
  font-size: 30px;
}

.overview-top p,
.overview-top span {
  margin: 0;
  color: #6b7280;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.archive-list li a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(146, 64, 14, 0.06);
}

.archive-list strong {
  color: #78350f;
}

.archive-list span {
  color: #78716c;
  font-size: 13px;
  text-align: right;
}

.detail-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #451a03, #9a3412);
}

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

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.95), rgba(124, 45, 18, 0.7), rgba(17, 24, 39, 0.22));
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 72px 0 42px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
}

.detail-title-row h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
}

.detail-title-row p {
  max-width: 780px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 34px 0 20px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050505;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.player-card video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: white;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.34));
  border: 0;
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 50%;
  box-shadow: 0 20px 48px rgba(234, 88, 12, 0.34);
  font-size: 34px;
}

.play-overlay strong {
  font-size: 18px;
}

.player-card.playing .play-overlay {
  display: none;
}

.content-card,
.side-card {
  margin-top: 22px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 12px;
  color: #78350f;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.85;
}

.poster-card {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  padding: 0;
  background: radial-gradient(circle at top left, #fde68a, #fb923c 52%, #7c2d12);
}

.meta-list {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px 12px;
  margin: 0 0 16px;
}

.meta-list dt {
  color: #92400e;
  font-weight: 900;
}

.meta-list dd {
  margin: 0;
  color: #374151;
}

.site-footer {
  margin-top: 50px;
  color: #ffedd5;
  background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

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

.footer-brand p {
  max-width: 520px;
  margin: 0;
  color: #fed7aa;
}

.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-links h3 {
  margin: 0 0 8px;
  color: #fde68a;
}

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

.footer-bottom {
  padding: 16px;
  text-align: center;
  color: #fdba74;
  border-top: 1px solid rgba(253, 186, 116, 0.18);
}

.hidden-by-filter {
  display: none !important;
}

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

  .ranking-list,
  .ranking-list.full,
  .archive-list {
    grid-template-columns: 1fr;
  }

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

  .detail-side {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
  }
}

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-carousel {
    height: 560px;
  }

  .hero-copy {
    justify-content: end;
    padding-bottom: 86px;
  }

  .quick-search,
  .section-head,
  .overview-top,
  .detail-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .search-bar,
  .quick-search,
  .quick-links {
    width: 100%;
  }

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

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

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

  .detail-side {
    grid-template-columns: 1fr;
  }

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

  .archive-list li a {
    flex-direction: column;
  }

  .archive-list span {
    text-align: left;
  }
}
