:root {
  --honey-50: #fff8e7;
  --honey-100: #ffedb8;
  --honey-500: #f5b21b;
  --honey-600: #d8910c;
  --flame-50: #fff1eb;
  --flame-100: #ffd7c5;
  --flame-500: #f36b21;
  --flame-600: #df4f16;
  --phoenix-500: #d9343f;
  --phoenix-700: #9e1d2b;
  --ink: #1d1720;
  --muted: #6b6270;
  --line: #efe1d8;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(88, 40, 20, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--honey-50), #ffffff 42%, var(--flame-50));
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(216, 145, 12, 0.95), rgba(243, 107, 33, 0.95), rgba(158, 29, 43, 0.95));
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(95, 32, 16, 0.18);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  padding: 8px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-search {
  position: relative;
  margin-left: auto;
  width: 280px;
}

.nav-search input,
.big-search input,
.local-search input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.menu-button {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

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

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

.mobile-nav a {
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(520px, 88vw);
  max-height: 440px;
  overflow: auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 8px;
  color: var(--ink);
  z-index: 80;
}

.search-results.open {
  display: grid;
  gap: 6px;
}

.search-results.wide {
  left: 0;
  right: auto;
  width: 100%;
}

.result-item {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.18s ease;
}

.result-item:hover {
  background: var(--honey-50);
}

.result-item strong {
  font-size: 15px;
}

.result-item span {
  color: var(--muted);
  font-size: 13px;
}

.hero {
  position: relative;
  height: clamp(520px, 72vh, 680px);
  overflow: hidden;
  background: #140c0a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 7, 6, 0.88), rgba(20, 10, 8, 0.56) 48%, rgba(20, 10, 8, 0.16));
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
}

.hero-content > * {
  max-width: 680px;
}

.hero-labels,
.detail-labels {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-labels span,
.detail-labels span {
  color: #ffffff;
  background: linear-gradient(90deg, var(--honey-500), var(--flame-500));
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 900;
  font-size: 14px;
}

.hero-labels strong,
.detail-labels strong {
  color: #ffd76a;
  font-size: 18px;
}

.hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 18px;
}

.hero-meta span:not(:last-child)::after {
  content: "•";
  padding-left: 12px;
  color: rgba(255, 255, 255, 0.36);
}

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

.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, var(--flame-500), var(--phoenix-500));
  box-shadow: 0 16px 36px rgba(217, 52, 63, 0.32);
}

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

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  font-size: 34px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.64);
}

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

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.search-panel,
.category-strip,
.content-section,
.local-toolbar,
.category-grid-section,
.detail-content,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.search-panel {
  margin-top: -38px;
  position: relative;
  z-index: 5;
  background: linear-gradient(135deg, #ffffff, var(--honey-50));
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
}

.search-panel h2,
.section-head h2,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  color: var(--ink);
}

.search-panel p,
.section-head p,
.page-hero p {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.7;
}

.big-search {
  position: relative;
}

.big-search input,
.local-search input {
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.big-search input::placeholder,
.local-search input::placeholder {
  color: #9b909d;
}

.category-strip {
  padding: 54px 0 0;
}

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

.section-head.slim {
  margin-bottom: 20px;
}

.section-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--honey-500), var(--flame-500));
  color: #ffffff;
  font-weight: 900;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.chip-row,
.filter-row,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-row a,
.filter-btn,
.detail-tags span,
.tag-row span {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #6b3d20;
  padding: 10px 16px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(102, 56, 24, 0.08);
}

.chip-row a:hover,
.filter-btn:hover,
.filter-btn.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
}

.content-section {
  padding: 66px 0;
}

.soft-band {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, var(--honey-100), #fff7e8, var(--flame-100));
}

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

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

.movie-card {
  min-width: 0;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 42px rgba(102, 56, 24, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(102, 56, 24, 0.18);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--honey-100), var(--flame-100));
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  padding: 42px 14px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-pill {
  display: inline-flex;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
  color: #ffffff;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 13px;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: linear-gradient(135deg, var(--honey-500), var(--phoenix-500));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta strong {
  color: var(--flame-600);
}

.movie-card h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 10px 0 8px;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  margin-top: 12px;
  gap: 6px;
}

.tag-row span {
  font-size: 12px;
  padding: 5px 8px;
  box-shadow: none;
  background: var(--honey-50);
}

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

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

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

.cta-band,
.page-hero {
  background: linear-gradient(90deg, var(--honey-600), var(--flame-500), var(--phoenix-700));
  color: #ffffff;
  text-align: center;
  padding: 72px 20px;
}

.cta-band h2,
.cta-band p,
.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.cta-band p,
.page-hero p {
  max-width: 740px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.86);
}

.light {
  margin-top: 24px;
  color: var(--phoenix-700);
  background: #ffffff;
}

.page-hero {
  padding-top: 92px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.category-grid-section {
  padding: 64px 0;
}

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

.category-card {
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 64px rgba(102, 56, 24, 0.18);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 168px;
  background: var(--honey-100);
}

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

.category-card-body {
  padding: 24px;
}

.category-card-body h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.category-card-body p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.category-card-body span {
  color: var(--flame-600);
  font-weight: 900;
}

.local-toolbar {
  padding: 34px 0 0;
  display: grid;
  gap: 18px;
}

.local-search {
  max-width: 540px;
}

.filter-btn {
  cursor: pointer;
}

.detail-hero {
  color: #ffffff;
  background: radial-gradient(circle at 78% 10%, rgba(255, 207, 98, 0.28), transparent 28%), linear-gradient(130deg, #24100b, var(--flame-600), var(--phoenix-700));
  padding: 42px 0 66px;
}

.detail-hero .breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  justify-content: flex-start;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 38px;
  align-items: center;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  background: var(--honey-100);
}

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

.detail-intro h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.detail-intro p {
  margin: 18px 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.detail-stats div {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(10px);
}

.detail-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.detail-stats strong {
  display: block;
  color: #ffffff;
  margin-top: 4px;
}

.player-section {
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

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

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  display: block;
}

.player-start {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 190px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.player-start span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
}

.player-card.playing .player-start {
  display: none;
}

.detail-content {
  padding: 44px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.story-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 14px 42px rgba(102, 56, 24, 0.1);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

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

.meta-story {
  grid-column: 1 / -1;
}

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

.info-list p {
  background: var(--honey-50);
  border-radius: 16px;
  padding: 14px;
}

.related-section {
  padding-top: 44px;
}

.site-footer {
  margin-top: 70px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(130deg, #1d0f0b, #3a160f 55%, #45121b);
  padding: 46px 0 22px;
}

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

.footer-logo {
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer h3 {
  color: #ffffff;
  margin: 0 0 14px;
}

.site-footer p {
  line-height: 1.8;
  margin: 0;
}

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

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

[data-card].hidden {
  display: none;
}

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

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

  .nav-search {
    width: 230px;
  }
}

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

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-stats,
  .info-list,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .hero {
    height: 560px;
  }

  .hero p {
    font-size: 16px;
  }

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

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

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

  .detail-stats,
  .info-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-thumbs {
    height: 130px;
  }
}
