:root {
  color-scheme: light;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --soft: #fff7ed;
  --paper: #ffffff;
  --amber: #f59e0b;
  --orange: #f97316;
  --deep: #9a3412;
  --shadow: 0 18px 50px rgba(154, 52, 18, 0.16);
  --shadow-soft: 0 10px 30px rgba(154, 52, 18, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 237, 213, 0.95), rgba(255, 251, 235, 0.95));
  box-shadow: 0 8px 30px rgba(154, 52, 18, 0.10);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

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

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

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

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong,
.footer-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  font-size: 12px;
  color: var(--muted);
}

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

.nav-link {
  position: relative;
  padding: 6px 0;
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--deep);
  background: #ffedd5;
}

.hero {
  padding: 48px 0 24px;
}

.hero-shell {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px;
  background: radial-gradient(circle at 15% 10%, rgba(251, 191, 36, 0.32), transparent 30%), linear-gradient(135deg, #fff7ed 0%, #fed7aa 45%, #fff 100%);
  box-shadow: var(--shadow);
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.85fr);
  gap: 32px;
  align-items: center;
  min-height: 520px;
  padding: 44px;
}

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

.hero-copy {
  display: grid;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--deep);
  background: linear-gradient(90deg, #ffedd5, #fef3c7);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero h1 span,
.gradient-title {
  background: linear-gradient(90deg, #d97706, #ea580c, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
}

.hero p,
.page-hero p,
.section-head p,
.detail-lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.25);
}

.btn-secondary {
  color: var(--deep);
  background: #ffffff;
  box-shadow: inset 0 0 0 2px #fed7aa;
}

.btn-ghost {
  color: var(--deep);
  background: #ffedd5;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.20);
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #fed7aa;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-poster-card {
  position: relative;
  overflow: hidden;
  height: 420px;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

.hero-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-slide:hover .hero-poster-card img {
  transform: scale(1.06);
}

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

.hero-poster-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #ffffff;
}

.hero-poster-info strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.hero-poster-info span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-float-card {
  position: absolute;
  right: -10px;
  bottom: 30px;
  z-index: 3;
  width: min(260px, 70%);
  padding: 18px;
  border-radius: 22px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-float-card strong {
  display: block;
  margin-bottom: 6px;
}

.hero-float-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-controls {
  position: absolute;
  left: 44px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 26px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.24);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.78);
}

.search-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 20px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.search-strip input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
}

.section {
  padding: 54px 0;
}

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

.section-head h2,
.page-section h2,
.detail-section h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.category-card {
  min-height: 170px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(254, 215, 170, 0.7);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.movie-card:hover,
.info-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  color: #9a3412;
}

.category-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(254, 215, 170, 0.55);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.movie-card-compact .poster-frame {
  aspect-ratio: 16 / 10;
}

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

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

.poster-badge,
.poster-year {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.92);
}

.poster-badge {
  left: 12px;
}

.poster-year {
  right: 12px;
  background: rgba(17, 24, 39, 0.82);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-card-body strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card-body em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #ffedd5;
  color: var(--muted);
  font-size: 12px;
}

.movie-meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 82px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(254, 215, 170, 0.55);
  transition: transform 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
}

.ranking-num {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.ranking-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: #111827;
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ranking-copy strong {
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-meta {
  color: var(--orange);
  font-weight: 800;
}

.info-panel,
.filter-panel,
.content-box {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(254, 215, 170, 0.55);
}

.info-panel {
  padding: 28px;
}

.info-panel h2 {
  margin: 0 0 14px;
  color: #111827;
}

.info-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.page-hero {
  padding: 64px 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--orange));
}

.page-hero .container {
  display: grid;
  gap: 14px;
  text-align: center;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.90);
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin: 34px 0 26px;
  padding: 18px;
}

.filter-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.filter-input-wrap span {
  color: var(--orange);
  font-size: 22px;
}

.filter-input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #7c2d12;
  background: #ffffff;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transform: translateY(-1px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--orange);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 36px;
  padding: 30px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: #111827;
  box-shadow: 0 26px 58px rgba(17, 24, 39, 0.22);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy {
  display: grid;
  gap: 16px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 12px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 800;
}

.player-section {
  padding: 20px 0 40px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
}

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

.play-mark {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 34px;
  transition: transform 0.2s ease;
}

.player-cover:hover .play-mark {
  transform: scale(1.08);
}

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

.detail-section {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(254, 215, 170, 0.55);
}

.detail-section p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

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

.side-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(254, 215, 170, 0.55);
}

.side-card img {
  width: 86px;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
}

.side-card strong {
  display: block;
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.site-footer {
  margin-top: 64px;
  color: #4b5563;
  background: linear-gradient(180deg, #ffffff, #fff7ed);
  border-top: 1px solid #fed7aa;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding: 40px 0;
}

.footer-grid p {
  max-width: 440px;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #111827;
}

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

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid #ffedd5;
}

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

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

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

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

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 12px;
  }

  .hero {
    padding-top: 24px;
  }

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

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

  .hero-visual,
  .hero-poster-card {
    min-height: auto;
    height: 360px;
  }

  .hero-controls {
    left: 28px;
    bottom: 18px;
  }

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

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .brand-text strong {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .hero-slide {
    padding: 22px;
  }

  .hero h1,
  .page-hero h1,
  .detail-title {
    font-size: 34px;
  }

  .hero-visual,
  .hero-poster-card {
    height: 300px;
  }

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

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

  .ranking-item {
    grid-template-columns: 42px 70px 1fr;
  }

  .ranking-meta {
    display: none;
  }

  .detail-hero,
  .detail-section {
    padding: 20px;
    border-radius: 22px;
  }
}
