:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --amber: #f59e0b;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(248, 113, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #fff1f2 42%, #f9fafb 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(254, 215, 170, 0.8);
  background: rgba(255, 247, 237, 0.94);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #991b1b;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #7c2d12;
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #991b1b;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 38px;
  color: #ffffff;
  background: radial-gradient(circle at 16% 10%, rgba(253, 186, 116, 0.55), transparent 30%), linear-gradient(135deg, #7f1d1d 0%, #ea580c 46%, #db2777 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.18));
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.hero-pills,
.tag-row,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.28);
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.3);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.hero-pills {
  margin-top: 22px;
}

.pill-link,
.tag-row span,
.meta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

.hero-pills .pill-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-slider {
  position: relative;
  min-height: 540px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.36);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.86));
}

.slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px;
}

.slide-content h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
}

.slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.slider-dots {
  position: absolute;
  left: 34px;
  top: 28px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.slider-dot.active {
  width: 30px;
  background: #ffffff;
}

.section {
  padding: 54px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: #ea580c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #7c2d12;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-desc,
.page-title p,
.detail-intro {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 35px rgba(249, 115, 22, 0.11);
  transition: 0.22s ease;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #fed7aa;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.36));
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.movie-info {
  padding: 15px;
}

.movie-title {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-meta,
.movie-line {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.movie-line {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 12px;
  gap: 8px;
}

.tag-row span {
  min-height: 25px;
  padding: 0 9px;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 26px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444 52%, #ec4899);
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.category-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffffff;
  font-weight: 900;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 14px;
  margin: 26px 0 28px;
  padding: 16px;
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 0 16px;
  color: #7c2d12;
  background: #ffffff;
  font-size: 15px;
  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.13);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 84px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.09);
}

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

.rank-item img {
  width: 84px;
  height: 112px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.page-hero {
  padding: 58px 0 36px;
  color: #ffffff;
  background: linear-gradient(135deg, #9a3412 0%, #f97316 50%, #db2777 100%);
}

.page-title h1,
.page-title p {
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 28px;
  align-items: start;
}

.detail-panel,
.side-panel {
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-panel {
  overflow: hidden;
}

.video-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.74));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ef4444;
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.player-cover strong {
  font-size: 20px;
}

.detail-body {
  padding: 28px;
}

.detail-title h1 {
  margin-bottom: 12px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: #7c2d12;
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.92;
}

.side-panel {
  padding: 20px;
}

.mini-grid {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 18px;
  background: #fff7ed;
  transition: 0.2s ease;
}

.mini-card:hover {
  background: #ffedd5;
  transform: translateX(3px);
}

.mini-card img {
  width: 66px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
}

.mini-card span {
  overflow: hidden;
  color: #111827;
  font-weight: 850;
  line-height: 1.45;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-footer {
  margin-top: 46px;
  padding: 42px 0;
  color: #7c2d12;
  background: #ffedd5;
  border-top: 1px solid #fed7aa;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 32px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-inner p {
  max-width: 520px;
  margin: 0;
  color: #9a3412;
  line-height: 1.8;
}

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

.empty-state {
  display: none;
  padding: 34px;
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 24px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.empty-state.show {
  display: block;
}

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

  .hero-shell,
  .detail-wrap,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .nav-shell {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid #fed7aa;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    text-align: center;
  }

  .hero {
    padding-top: 38px;
  }

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

  .slide-content {
    padding: 24px;
  }

  .slide-content h2 {
    font-size: 26px;
  }

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

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

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

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

  .rank-item img {
    display: none;
  }
}

@media (max-width: 470px) {
  .container,
  .nav-shell,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .movie-grid,
  .category-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .detail-body {
    padding: 20px;
  }
}
