:root {
  --brand: #f97316;
  --brand-deep: #ea580c;
  --gold: #f59e0b;
  --red: #f43f5e;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #fff7ed;
  --dark: #111827;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f59e0b, #fb923c, #f59e0b);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
}

.nav-shell {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

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

.brand {
  color: #ffffff;
  font-size: clamp(20px, 2.2vw, 28px);
  text-shadow: 0 6px 18px rgba(124, 45, 18, 0.25);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(124, 45, 18, 0.20);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: scale(1.08);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  color: #ffffff;
  font-weight: 700;
  padding: 26px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(260px, 26vw);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.18);
}

.top-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 11px 42px 11px 16px;
  color: var(--ink);
  background: transparent;
}

.top-search button {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
}

.search-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, 86vw);
  padding: 8px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(249, 115, 22, 0.18);
}

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

.search-hit {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
}

.search-hit:hover {
  background: var(--soft);
}

.search-hit strong {
  font-size: 14px;
}

.search-hit span {
  color: var(--muted);
  font-size: 12px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b 0%, #fb923c 48%, #f43f5e 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 30%, #ffffff 0 2px, transparent 3px), radial-gradient(circle at 80% 40%, #ffffff 0 2px, transparent 3px);
  background-size: 64px 64px, 96px 96px;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.70), rgba(17, 24, 39, 0.34), rgba(17, 24, 39, 0.78)), var(--slide-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.72fr;
  gap: 44px;
  align-items: center;
  padding: 72px 0;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: var(--brand-deep);
  background: #fff7ed;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-kicker {
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.30);
}

.hero-copy p {
  margin: 0 0 28px;
  max-width: 660px;
  font-size: clamp(17px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: var(--brand-deep);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(124, 45, 18, 0.25);
}

.btn-dark {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.25);
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.60);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  width: min(360px, 100%);
  justify-self: end;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(17, 24, 39, 0.45);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.54));
}

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

.hero-chip-row {
  margin-bottom: 18px;
}

.hero-chip-row span,
.tag-row span,
.detail-tags span,
.chip-cloud a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-chip-row span {
  padding: 6px 11px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.section {
  padding: 54px 0;
}

.section.alt {
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

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

.eyebrow {
  padding: 5px 12px;
  margin-bottom: 10px;
  font-size: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
}

.section-more {
  color: var(--brand-deep);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

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

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

.type-badge,
.play-badge {
  position: absolute;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 12px 24px rgba(124, 45, 18, 0.22);
}

.type-badge {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 7px;
  min-height: 46px;
  font-size: 16px;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3 {
  color: var(--brand-deep);
}

.movie-meta,
.card-desc {
  color: var(--muted);
  font-size: 13px;
}

.movie-meta {
  margin: 0 0 8px;
}

.card-desc {
  margin: 0 0 12px;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span,
.detail-tags span {
  padding: 4px 9px;
  color: var(--brand-deep);
  background: var(--soft);
}

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

.category-card {
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.20);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #fb923c, #f43f5e);
}

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.category-card span {
  color: rgba(255, 255, 255, 0.86);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.rank-item:hover {
  background: var(--soft);
}

.rank-number {
  color: var(--brand-deep);
  font-size: 24px;
  font-weight: 900;
}

.rank-item img {
  width: 64px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #fed7aa;
}

.rank-text {
  display: grid;
  gap: 4px;
}

.rank-text strong {
  font-size: 16px;
}

.rank-text em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.sub-hero {
  padding: 56px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #fb923c 55%, #f43f5e);
  box-shadow: inset 0 -60px 120px rgba(124, 45, 18, 0.16);
}

.sub-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
}

.sub-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
}

.filter-panel,
.content-card {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.filter-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

.chip-cloud a {
  padding: 8px 13px;
  color: var(--ink);
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.chip-cloud a:hover {
  color: #ffffff;
  background: var(--brand);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-link,
.page-gap {
  min-width: 42px;
  min-height: 42px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.page-link:hover,
.page-link.current {
  color: #ffffff;
  border-color: var(--brand);
  background: var(--brand);
}

.page-link.disabled {
  pointer-events: none;
  opacity: 0.42;
}

.detail-hero {
  position: relative;
  padding: 54px 0;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.64)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero .container {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
  background: #fed7aa;
}

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

.detail-copy h1 {
  margin: 12px 0;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.06;
}

.detail-copy p {
  margin: 0 0 18px;
  max-width: 860px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.player-section {
  padding: 42px 0 28px;
  background: #111827;
}

.video-card {
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.video-shell {
  position: relative;
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.48));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-cover button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.94);
  font-size: 32px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

.video-caption {
  padding: 18px 22px;
  color: #ffffff;
  background: linear-gradient(90deg, #111827, #1f2937);
}

.video-caption h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.video-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding: 42px 0 56px;
}

.article-block {
  display: grid;
  gap: 22px;
}

.content-card h2,
.content-card h3 {
  margin: 0 0 12px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  white-space: pre-line;
}

.side-card {
  position: sticky;
  top: 96px;
  align-self: start;
}

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

.related-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
}

.related-item:hover {
  background: #ffedd5;
}

.related-item img {
  width: 58px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
  background: #fed7aa;
}

.related-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

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

.search-page-panel {
  display: grid;
  gap: 18px;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-page-form input {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}

.search-page-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.search-result-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.search-result-card:hover {
  border-color: #fed7aa;
  background: var(--soft);
}

.search-result-card img {
  width: 76px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #fed7aa;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding: 46px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.footer-copy {
  max-width: 360px;
  color: #9ca3af;
}

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

.site-footer a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: #9ca3af;
  font-size: 14px;
}

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

  .hero-inner {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 860px) {
  .nav-shell {
    grid-template-columns: auto auto;
    gap: 12px;
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: start;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
  }

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

  .nav-link {
    padding: 12px 0;
  }

  .nav-link::after {
    bottom: 8px;
  }

  .top-search {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 12px;
  }

  .hero-slider {
    min-height: 660px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 52px 0 76px;
  }

  .hero-poster {
    width: min(230px, 60vw);
    justify-self: start;
  }

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

  .category-strip,
  .footer-grid,
  .detail-layout,
  .detail-hero .container {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 70vw);
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .card-body {
    padding: 12px;
  }

  .card-desc {
    display: none;
  }

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

  .rank-item {
    grid-template-columns: 44px 54px 1fr;
  }

  .rank-item img {
    width: 54px;
  }

  .footer-bottom-inner,
  .search-page-form {
    grid-template-columns: 1fr;
    display: grid;
  }
}
