:root {
  --page: #fff7ed;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1e6;
  --line: #fed7aa;
  --orange: #f97316;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(194, 65, 12, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.22), transparent 36rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 42%, #fff7ed 100%);
  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%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(251, 146, 60, 0.28);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose), var(--amber));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.brand-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(251, 146, 60, 0.22);
  filter: blur(18px);
}

.brand-name {
  font-size: 22px;
  background: linear-gradient(90deg, var(--orange), var(--rose), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.nav-link {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 14px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.22);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #9a3412;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316 0%, #f43f5e 52%, #f59e0b 100%);
}

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

.hero::before {
  top: 8%;
  right: 9%;
  width: 220px;
  height: 220px;
  background: #ffffff;
}

.hero::after {
  left: 6%;
  bottom: 12%;
  width: 260px;
  height: 260px;
  background: #fde68a;
}

.hero-slide {
  display: none;
  position: relative;
  z-index: 2;
  min-height: 650px;
  align-items: center;
  grid-template-columns: 1fr 410px;
  gap: 48px;
  padding: 74px 0 92px;
}

.hero-slide.active {
  display: grid;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 8px 14px;
  color: #fff7ed;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.91);
  font-size: 18px;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.hero-meta span,
.detail-meta span,
.tag-list span,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  padding: 7px 12px;
  color: #ffffff;
  font-size: 13px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
}

.primary-btn {
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 18px 40px rgba(124, 45, 18, 0.22);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.section-more {
  color: #ea580c;
  background: #fff7ed;
}

.hero-poster-wrap {
  position: relative;
}

.hero-poster-wrap::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.35);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 70px rgba(124, 45, 18, 0.3);
}

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

.hero-poster-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.72);
  padding: 14px;
  backdrop-filter: blur(14px);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  right: calc((100% - min(1240px, calc(100% - 32px))) / 2);
  bottom: 32px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

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

.section {
  padding: 54px 0;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ea580c;
  font-weight: 900;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange), var(--rose));
}

.section-title {
  margin: 8px 0 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
}

.category-strip,
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-strip a,
.quick-filters a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 10px 16px;
  color: #9a3412;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.08);
}

.category-strip a:hover,
.quick-filters a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.32);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: var(--shadow);
}

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

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.58));
  opacity: 0.72;
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  padding: 4px 8px;
  color: #ffffff;
  font-size: 12px;
}

.play-mark {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--rose);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body {
  padding: 14px;
}

.movie-card h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

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

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mini-tags span {
  background: #fff7ed;
  padding: 3px 8px;
  color: #c2410c;
  font-size: 12px;
}

.hot-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff 0%, #fff7ed 56%, #ffe4e6 100%);
  padding: 28px;
  box-shadow: var(--shadow);
}

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

.hot-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 12px 14px;
  color: #111827;
  font-weight: 800;
}

.hot-links a:hover {
  color: #ea580c;
  transform: translateY(-2px);
}

.page-main {
  min-height: 72vh;
  padding: 38px 0 56px;
}

.page-hero {
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #f97316 0%, #f43f5e 52%, #f59e0b 100%);
  padding: 38px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-input {
  width: min(480px, 100%);
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: #ffffff;
  padding: 0 18px;
  color: #111827;
  font: inherit;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.08);
}

.empty-state {
  display: none;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: #ffffff;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

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

.category-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.08);
}

.category-card img {
  width: 100%;
  height: 250px;
  border-radius: 18px;
  object-fit: cover;
}

.category-card h2 {
  margin: 4px 0 8px;
  color: #111827;
}

.category-card p {
  color: var(--muted);
}

.category-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.category-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #ffedd5;
  padding: 8px 0;
  color: #374151;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 64px 1fr 150px 70px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 10px 14px;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.08);
}

.rank-row:hover {
  transform: translateY(-2px);
  color: #ea580c;
}

.rank-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-weight: 900;
}

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

.rank-main strong,
.rank-main em {
  display: block;
}

.rank-main em {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info {
  color: var(--muted);
  font-size: 13px;
}

.rank-score {
  color: #ea580c;
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff 0%, #fff7ed 55%, #ffe4e6 100%);
  padding: 24px;
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 20px 38px rgba(124, 45, 18, 0.16);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-lead {
  color: #374151;
  font-size: 18px;
}

.detail-meta span,
.tag-list span {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 7px 12px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.detail-actions .primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
}

.detail-actions .ghost-btn {
  color: #ea580c;
  border: 1px solid var(--line);
  background: #ffffff;
}

.player-card {
  margin-top: 30px;
  overflow: hidden;
  border-radius: 28px;
  background: #0b0f19;
  box-shadow: 0 22px 58px rgba(17, 24, 39, 0.22);
}

.player-shell {
  position: relative;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.26);
  cursor: pointer;
}

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

.player-cover span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.9);
  font-size: 30px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.player-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  color: #d1d5db;
}

.player-caption strong {
  color: #ffffff;
}

.article-box {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.08);
}

.article-box p {
  margin: 0 0 16px;
  color: #374151;
  font-size: 17px;
}

.pager-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.pager-links a {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 14px 16px;
  color: #9a3412;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  padding: 42px 0;
}

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

.footer-grid p {
  max-width: 520px;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

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

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
}

.back-top.show {
  display: block;
}

@media (max-width: 1100px) {
  .hero-slide,
  .hot-panel,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster-wrap {
    max-width: 360px;
  }

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 64px;
  }

  .menu-btn {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    padding: 12px;
    box-shadow: var(--shadow);
  }

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

  .hero,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 54px 0 84px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
  }

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

  .section-head,
  .player-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .hot-links,
  .category-grid,
  .pager-links {
    grid-template-columns: 1fr;
  }

  .category-card,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .category-card img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .rank-score {
    text-align: left;
  }

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