:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.82);
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --brand: #d97706;
  --brand-strong: #ea580c;
  --brand-dark: #9a3412;
  --green: #0f766e;
  --blue: #2563eb;
  --shadow: 0 24px 70px rgba(124, 45, 18, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #b45309, #f97316, #d97706);
  box-shadow: 0 14px 36px rgba(180, 83, 9, 0.28);
}

.nav-wrap {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #b45309;
  background: #ffffff;
  box-shadow: inset 0 -3px 0 rgba(251, 146, 60, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.hero-search input,
.toolbar input {
  width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  outline: none;
  border-radius: 999px;
  padding: 12px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.top-search input::placeholder,
.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.top-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #b45309;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.hero-search button:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(124, 45, 18, 0.18);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  gap: 12px;
  flex-wrap: wrap;
}

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

.hero-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

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

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

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

.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.12);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.64), rgba(17, 24, 39, 0.34)),
    radial-gradient(circle at 20% 28%, rgba(251, 146, 60, 0.55), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 650px;
  margin: 0 auto;
  padding: 80px 24px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 24px 0 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.14;
  font-weight: 900;
}

.hero-copy p {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.85;
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster span,
.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #f97316;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.content-section,
.category-preview {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.tinted-section,
.green-section {
  max-width: 1232px;
  margin-top: 72px;
  padding: 42px;
  border-radius: 34px;
}

.tinted-section {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.green-section {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #16a34a);
}

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

.section-heading span:first-child {
  display: inline-block;
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.section-heading h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.8;
}

.green-section .section-heading p {
  color: rgba(255, 255, 255, 0.84);
}

.section-more,
.preview-head a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--brand-dark);
  background: #ffedd5;
  font-weight: 900;
}

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

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

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

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

.movie-card,
.rank-card,
.ranking-row {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link,
.wide-poster,
.rank-poster,
.ranking-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.movie-card:hover .poster-link img,
.movie-card-wide:hover img,
.rank-card:hover img,
.ranking-row:hover img {
  transform: scale(1.06);
}

.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.poster-link .play-mark,
.wide-poster .play-mark {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-mark,
.movie-card-wide:hover .play-mark {
  opacity: 1;
}

.card-body,
.wide-content,
.rank-card > div,
.ranking-row > div {
  padding: 18px;
}

.card-category {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #b45309;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3,
.rank-card h3,
.ranking-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover,
.ranking-row h3 a:hover {
  color: var(--brand-strong);
}

.movie-card p,
.rank-card p,
.ranking-row p,
.article-block p,
.detail-copy p {
  color: var(--muted);
  line-height: 1.78;
}

.movie-card p,
.rank-card p,
.ranking-row p {
  margin: 10px 0 0;
  font-size: 14px;
}

.tag-row,
.card-meta,
.chip-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span,
.chip-row span,
.chip-row button,
.detail-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: #7c2d12;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 800;
}

.card-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.wide-poster img,
.rank-poster img {
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

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

.category-tile {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  border-radius: 28px;
  padding: 24px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(180, 83, 9, 0.92), rgba(249, 115, 22, 0.86)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 12rem);
  box-shadow: 0 18px 40px rgba(180, 83, 9, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(180, 83, 9, 0.26);
}

.category-tile strong {
  font-size: 23px;
  font-weight: 950;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.page-main {
  max-width: 100%;
}

.page-hero {
  max-width: 1280px;
  margin: 38px auto 0;
  padding: 56px 24px;
  border-radius: 36px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(146, 64, 14, 0.96), rgba(249, 115, 22, 0.86)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 30rem);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.85;
  font-size: 18px;
}

.hero-search {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-search input {
  width: min(520px, 100%);
}

.toolbar {
  margin-bottom: 28px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.06);
}

.toolbar-sticky {
  position: sticky;
  top: 86px;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.toolbar input {
  color: var(--text);
  background: #ffffff;
  border-color: #fed7aa;
  width: min(520px, 100%);
}

.chip-row button {
  cursor: pointer;
}

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

.preview-head h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 950;
}

.preview-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.ranking-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  list-style: none;
}

.ranking-row {
  display: grid;
  grid-template-columns: 58px 108px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
}

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

.ranking-poster img {
  height: 142px;
  border-radius: 16px;
  object-fit: cover;
}

.breadcrumb {
  max-width: 1280px;
  margin: 32px auto 18px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--brand-strong);
}

.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 38px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy .eyebrow {
  color: #9a3412;
  border-color: #fed7aa;
  background: #fff7ed;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.lead-text {
  font-size: 19px;
}

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

.detail-tags {
  margin-bottom: 28px;
}

.player-section {
  max-width: 1280px;
  margin: 42px auto 0;
  padding: 0 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #000000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #f97316;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.play-cover span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 36px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

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

.detail-content {
  max-width: 1280px;
  margin: 42px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.article-block {
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.article-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 950;
}

.related-section {
  padding-bottom: 76px;
}

.site-footer {
  margin-top: 76px;
  color: #fffbeb;
  background: #111827;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-inner p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: flex-start;
}

.footer-inner nav a {
  color: rgba(255, 255, 255, 0.82);
}

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

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

  .hero-slider,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 62px 20px 90px;
  }

  .hero-poster {
    max-width: 300px;
    transform: none;
  }

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

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

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

  .toolbar,
  .footer-inner,
  .section-heading,
  .preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-row {
    grid-template-columns: 44px 86px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    height: 66px;
    padding: 0 16px;
  }

  .site-logo {
    font-size: 22px;
  }

  .hero-copy p,
  .page-hero p,
  .lead-text {
    font-size: 16px;
  }

  .content-section,
  .category-preview,
  .player-section,
  .detail-content,
  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero {
    margin: 22px 16px 0;
    padding: 38px 22px;
  }

  .tinted-section,
  .green-section,
  .detail-hero {
    margin-left: 16px;
    margin-right: 16px;
    padding: 22px;
  }

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

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 38px 72px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-poster img {
    height: 104px;
  }
}
