:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --paper-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --orange: #f97316;
  --amber: #f59e0b;
  --gold: #facc15;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 14px 24px rgba(249, 115, 22, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(4deg);
}

.brand-name {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 9px 13px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
}

.nav-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #92400e;
  background: #ffedd5;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 15%, rgba(251, 146, 60, 0.25), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(245, 158, 11, 0.22), transparent 32%),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 54%, #f8fafc 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.38;
}

.hero::before {
  width: 220px;
  height: 220px;
  left: 7%;
  top: 70px;
  background: #fb923c;
}

.hero::after {
  width: 280px;
  height: 280px;
  right: 6%;
  bottom: 40px;
  background: #facc15;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 42px;
  padding: 56px 0;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.85);
  border: 1px solid rgba(251, 146, 60, 0.28);
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--dark);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 590px;
  margin: 22px 0 0;
  color: #4b5563;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
  color: #374151;
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: var(--soft-shadow);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-categories a,
.tag-row span,
.meta-pill,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid rgba(251, 146, 60, 0.22);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-stage {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hero-poster {
  min-height: 410px;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(145deg, #fed7aa, #fde68a);
  box-shadow: var(--shadow);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
}

.hero-card {
  align-self: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card h2 {
  margin: 12px 0 10px;
  color: #111827;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.hero-card p {
  margin: 0 0 20px;
  color: #4b5563;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-controls {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.26);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

main {
  min-height: 60vh;
}

.section {
  padding: 68px 0;
}

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

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

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
}

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

.split-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

.split-heading p {
  margin: 0;
  color: var(--muted);
}

.more-link {
  color: var(--orange);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.movie-card:hover .poster-link img,
.category-preview:hover img,
.rank-media:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(17, 24, 39, 0.66));
  opacity: 0.8;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  font-size: 0.8rem;
  font-weight: 800;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.54);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: all 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--orange);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 0.88rem;
}

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

.tag-row span {
  padding: 4px 8px;
  font-size: 0.78rem;
}

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

.category-tile {
  min-height: 180px;
  padding: 24px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  box-shadow: var(--soft-shadow);
  transition: all 0.24s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.category-tile:nth-child(4n) {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.category-tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.category-icon {
  display: block;
  margin-bottom: 16px;
  font-size: 2.4rem;
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.93rem;
}

.page-hero {
  padding: 58px 0;
  background: radial-gradient(circle at 18% 20%, rgba(251, 146, 60, 0.22), transparent 34%), linear-gradient(135deg, #fff7ed, #fffbeb);
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #4b5563;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--text);
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.no-results {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border-radius: 24px;
}

.no-results.is-visible {
  display: block;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 76px 148px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: all 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-number {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-size: 1.25rem;
  font-weight: 900;
}

.rank-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #fed7aa, #fde68a);
}

.rank-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
}

.rank-score {
  min-width: 92px;
  color: #b45309;
  font-size: 1.35rem;
  font-weight: 900;
  text-align: right;
}

.detail-hero {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 58%, #f8fafc 100%);
  padding: 34px 0 54px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
  box-shadow: var(--shadow);
}

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

.detail-title h1 {
  font-size: clamp(2.3rem, 5vw, 4.7rem);
}

.detail-title p {
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 1.08rem;
}

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

.player-section {
  padding: 52px 0 38px;
  background: #111827;
}

.player-section .section-heading h2,
.player-section .section-heading p {
  color: #ffffff;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

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

.video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.2), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-cover span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 22px 42px rgba(249, 115, 22, 0.34);
  font-size: 2rem;
  transform: translateX(3px);
}

.video-shell.is-playing .video-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.article-section {
  padding: 56px 0;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.content-card,
.side-card {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 1.55rem;
}

.content-card p {
  margin: 0 0 18px;
  color: #374151;
}

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

.side-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  color: #374151;
  background: #f9fafb;
  font-weight: 700;
  transition: all 0.18s ease;
}

.side-list a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

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

.site-footer {
  color: #e5e7eb;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.25rem;
}

.footer-brand p {
  max-width: 580px;
  margin: 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  color: #d1d5db;
  font-weight: 700;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1020px) {
  .hero-inner,
  .detail-layout,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 460px;
  }

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 250px;
  }

  .hero-poster img {
    min-height: 250px;
  }

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

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

  .rank-item {
    grid-template-columns: 52px 110px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 2 / -1;
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-wrap,
  .container,
  .footer-inner,
  .footer-bottom,
  .hero-inner {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 34px 0;
  }

  .hero-stage {
    min-height: 520px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .rank-media {
    display: none;
  }

  .rank-score {
    grid-column: 2;
  }
}
