html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #3b220b;
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 45%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(120, 53, 15, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #d97706, #c2410c);
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.28);
}

.brand-text strong,
.footer-brand {
  display: block;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #92400e;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #b45309;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

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

.nav-link:hover,
.nav-link.active {
  color: #9a3412;
  background: rgba(251, 191, 36, 0.22);
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  width: min(280px, 24vw);
}

.header-search input {
  width: 100%;
  border: 1px solid rgba(180, 83, 9, 0.25);
  border-radius: 999px;
  padding: 11px 16px;
  color: #78350f;
  background: #fffaf0;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, 90vw);
  max-height: 520px;
  overflow: auto;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(120, 53, 15, 0.18);
  border: 1px solid rgba(217, 119, 6, 0.14);
}

.search-results.open {
  display: block;
}

.result-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
}

.result-item:hover {
  background: #fff7ed;
}

.result-item img {
  width: 52px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
}

.result-item strong,
.result-item small {
  display: block;
}

.result-item strong {
  color: #7c2d12;
}

.result-item small,
.empty-result {
  color: #a16207;
  font-size: 13px;
}

.empty-result {
  padding: 14px;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: #78350f;
  background: rgba(251, 191, 36, 0.24);
  font-size: 24px;
  line-height: 1;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

.mobile-panel a {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  color: #78350f;
  font-weight: 700;
}

.mobile-panel a:hover {
  background: #ffedd5;
}

.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.hero-stage {
  position: relative;
  height: 620px;
  overflow: hidden;
  border-radius: 34px;
  background: #451a03;
  box-shadow: 0 34px 90px rgba(120, 53, 15, 0.25);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero-slide.active .hero-image {
  transform: scale(1);
}

.hero-shade,
.page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(40, 14, 4, 0.92) 0%, rgba(67, 20, 7, 0.62) 46%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 45%);
}

.hero-content {
  position: absolute;
  left: clamp(28px, 6vw, 88px);
  bottom: clamp(34px, 8vw, 90px);
  max-width: 720px;
  color: #fff7ed;
}

.hero-eyebrow,
.section-kicker,
.page-hero-content span,
.quick-card span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  color: #fff7ed;
  background: linear-gradient(135deg, #d97706, #ea580c);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-content h1,
.hero-content h2,
.watch-copy h1,
.page-hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-shadow: 0 20px 54px rgba(0, 0, 0, 0.45);
}

.hero-content p,
.watch-copy p,
.page-hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #ffedd5;
  font-size: clamp(16px, 2.2vw, 20px);
}

.hero-tags,
.tag-row,
.pill-cloud,
.inline-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.pill-cloud a,
.inline-cloud span,
.inline-cloud a {
  border-radius: 999px;
  padding: 7px 12px;
  color: #7c2d12;
  background: rgba(255, 247, 237, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.hero-content .hero-tags span,
.watch-copy .hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  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: #fff;
  background: linear-gradient(135deg, #d97706, #c2410c);
  box-shadow: 0 16px 34px rgba(194, 65, 12, 0.32);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  font-size: 34px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

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

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

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

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

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

.hero-strip,
.horizontal-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 18px 0 4px;
  scrollbar-width: thin;
}

.horizontal-card a {
  min-height: 150px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 15px;
  padding: 13px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: 0 16px 40px rgba(120, 53, 15, 0.09);
}

.horizontal-card img {
  width: 112px;
  height: 130px;
  border-radius: 18px;
  object-fit: cover;
}

.horizontal-card span,
.card-meta,
.rank-row small {
  color: #a16207;
  font-size: 13px;
  font-weight: 700;
}

.horizontal-card h3,
.movie-card h3 {
  margin: 6px 0 6px;
  color: #7c2d12;
  line-height: 1.28;
}

.horizontal-card p,
.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #854d0e;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.quick-zone,
.content-section,
.detail-layout,
.related-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.quick-zone {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.quick-card {
  min-height: 230px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(217, 119, 6, 0.14);
  box-shadow: 0 22px 54px rgba(120, 53, 15, 0.09);
}

.quick-card.highlight {
  color: #fff7ed;
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.5), transparent 36%), linear-gradient(135deg, #92400e, #c2410c 58%, #7c2d12);
}

.quick-card.highlight p {
  color: #ffedd5;
}

.quick-card h2 {
  margin: 16px 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.quick-card p {
  color: #854d0e;
}

.quick-card:not(.highlight) .quick-card span,
.section-kicker {
  color: #fff7ed;
}

.pill-cloud a {
  background: #ffedd5;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pill-cloud a:hover {
  color: #fff;
  background: #d97706;
  transform: translateY(-1px);
}

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

.section-heading h1,
.section-heading h2 {
  margin: 12px 0 0;
  color: #7c2d12;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.text-link {
  color: #b45309;
  font-weight: 900;
}

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

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

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: 0 18px 48px rgba(120, 53, 15, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-frame {
  position: relative;
  height: 0;
  margin: 0;
  padding-top: 138%;
  background: #fed7aa;
  overflow: hidden;
}

.poster-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card a:hover .poster-frame img {
  transform: scale(1.04);
}

.poster-frame figcaption {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff7ed;
  background: rgba(124, 45, 18, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 17px;
}

.card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.55em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
  padding: 5px 9px;
  font-size: 12px;
}

.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin: 22px auto 0;
  max-width: 1400px;
  border-radius: 34px;
  background: #451a03;
  box-shadow: 0 30px 80px rgba(120, 53, 15, 0.22);
}

.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  color: #fff7ed;
}

.page-listing {
  padding-top: 40px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 34px 0 10px;
}

.pagination a {
  min-width: 42px;
  border-radius: 12px;
  padding: 9px 13px;
  color: #78350f;
  background: #ffedd5;
  text-align: center;
  font-weight: 800;
}

.pagination a.active,
.pagination a:hover {
  color: #fff;
  background: #d97706;
}

.rank-section {
  max-width: 1080px;
}

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

.rank-row a {
  display: grid;
  grid-template-columns: 64px 86px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: 0 14px 42px rgba(120, 53, 15, 0.08);
}

.rank-num {
  color: #d97706;
  font-size: 28px;
  font-weight: 950;
  text-align: center;
}

.rank-row img {
  width: 86px;
  height: 112px;
  border-radius: 18px;
  object-fit: cover;
}

.rank-row h2 {
  margin: 0 0 6px;
  color: #7c2d12;
  font-size: 22px;
}

.rank-row p {
  margin: 0 0 8px;
  color: #854d0e;
}

.detail-main {
  padding-bottom: 56px;
}

.watch-hero {
  max-width: 1400px;
  margin: 22px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 30px 90px rgba(120, 53, 15, 0.24);
}

.movie-player {
  width: 100%;
  height: 100%;
  min-height: 540px;
  display: block;
  object-fit: cover;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #fff7ed;
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.35), rgba(0, 0, 0, 0.55));
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  box-shadow: 0 18px 54px rgba(194, 65, 12, 0.36);
  font-size: 36px;
}

.player-overlay strong {
  font-size: 22px;
}

.watch-copy {
  padding: 34px;
  border-radius: 32px;
  color: #fff7ed;
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.36), transparent 38%), linear-gradient(145deg, #7c2d12, #431407);
  box-shadow: 0 30px 80px rgba(120, 53, 15, 0.18);
}

.watch-copy h1 {
  font-size: clamp(34px, 4.8vw, 58px);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}

.detail-article,
.info-panel {
  border-radius: 28px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: 0 18px 54px rgba(120, 53, 15, 0.08);
}

.detail-article h2,
.info-panel h2 {
  margin: 0 0 16px;
  color: #7c2d12;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 26px;
  color: #63330c;
  font-size: 17px;
}

.info-panel dl {
  margin: 0;
}

.info-panel dt {
  margin-top: 14px;
  color: #a16207;
  font-size: 13px;
  font-weight: 900;
}

.info-panel dd {
  margin: 4px 0 0;
  color: #63330c;
  font-weight: 800;
}

.inline-cloud {
  margin-top: 22px;
}

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

.movie-card.compact .card-body p,
.movie-card.compact .tag-row {
  display: none;
}

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

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

.footer-brand {
  color: #fff7ed;
}

.footer-inner p {
  margin: 10px 0 0;
  color: #fed7aa;
}

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

.footer-links a {
  border-radius: 999px;
  padding: 8px 13px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
}

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

  .header-search {
    margin-left: auto;
    width: min(360px, 42vw);
  }

  .menu-toggle {
    display: block;
  }

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

  .quick-zone,
  .watch-hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 70px;
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .brand-text small {
    display: none;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .hero,
  .watch-hero,
  .quick-zone,
  .content-section,
  .detail-layout,
  .related-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-stage {
    height: 560px;
    border-radius: 24px;
  }

  .hero-shade,
  .page-hero-shade {
    background: linear-gradient(0deg, rgba(40, 14, 4, 0.94) 0%, rgba(40, 14, 4, 0.46) 62%, rgba(0, 0, 0, 0.12) 100%);
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 58px;
  }

  .hero-content h1,
  .hero-content h2,
  .page-hero-content h1 {
    font-size: 40px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-zone {
    gap: 14px;
  }

  .card-grid,
  .listing-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    margin-left: 16px;
    margin-right: 16px;
    min-height: 300px;
    border-radius: 24px;
  }

  .page-hero-content {
    padding: 28px;
  }

  .player-shell,
  .movie-player {
    min-height: 320px;
  }

  .rank-row a {
    grid-template-columns: 48px 72px 1fr;
    gap: 12px;
  }

  .rank-row img {
    width: 72px;
    height: 96px;
  }

  .rank-row h2 {
    font-size: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .card-grid,
  .listing-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    height: 520px;
  }

  .horizontal-card a {
    grid-template-columns: 92px 1fr;
  }

  .horizontal-card img {
    width: 92px;
    height: 118px;
  }
}
