:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --light: #fef3c7;
  --line: #fed7aa;
  --orange: #f97316;
  --orange-dark: #c2410c;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 34rem),
    linear-gradient(180deg, var(--bg-soft), #ffffff 28rem);
}

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: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid rgba(253, 186, 116, 0.38);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 25px rgba(124, 45, 18, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.28);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-dark);
  background: #ffedd5;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(330px, 30vw);
}

.top-search input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  color: #374151;
  border-radius: 999px;
  background: #ffffff;
  padding: 11px 16px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.top-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.top-search button,
.primary-button,
.secondary-button,
.hero-button,
.play-button {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.top-search button {
  flex: 0 0 auto;
  padding: 10px 16px;
}

.primary-button,
.secondary-button,
.hero-button,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
}

.secondary-button {
  color: var(--orange-dark);
  background: #fff7ed;
  border: 1px solid var(--line);
  box-shadow: none;
}

.top-search button:hover,
.primary-button:hover,
.hero-button:hover,
.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(249, 115, 22, 0.32);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 8px;
}

.mobile-menu-button span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: #7c2d12;
  border-radius: 999px;
}

.hero {
  position: relative;
  padding: 56px 0 38px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.4;
}

.hero::before {
  top: 40px;
  left: -120px;
  background: #fdba74;
}

.hero::after {
  right: -120px;
  bottom: 20px;
  background: #facc15;
}

.hero-shell {
  position: relative;
  z-index: 1;
  min-height: 560px;
  border: 1px solid rgba(253, 186, 116, 0.45);
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12 54%, #f97316);
  box-shadow: var(--shadow);
}

.hero-slide {
  display: none;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.06fr) minmax(310px, 0.74fr);
  align-items: stretch;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 60px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: #fef3c7;
  border: 1px solid rgba(254, 243, 199, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -1.5px;
}

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

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

.hero-tags span,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: #9a3412;
  border-radius: 999px;
  background: #ffedd5;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-art {
  position: relative;
  min-height: 560px;
}

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

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.06));
}

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

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

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

.section {
  padding: 42px 0;
}

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

.section-title h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.section-title p,
.page-title p {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

.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 10px 24px rgba(146, 64, 14, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 45px rgba(146, 64, 14, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fb923c);
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(194, 65, 12, 0.86);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
}

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

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

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

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

.category-card {
  min-height: 170px;
  border: 1px solid rgba(253, 186, 116, 0.55);
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff, #fff7ed);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

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

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

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(254, 215, 170, 0.85);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(146, 64, 14, 0.12);
}

.rank-no {
  color: #9a3412;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 72px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #fde68a, #fb923c);
}

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

.rank-text strong {
  color: #111827;
  font-size: 17px;
}

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

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

.page-title {
  border: 1px solid rgba(254, 215, 170, 0.7);
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  padding: 38px;
  box-shadow: var(--shadow);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin: 24px 0 28px;
}

.detail-hero {
  padding: 38px 0 24px;
}

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

.breadcrumb a:hover {
  color: var(--orange-dark);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-info,
.related-card {
  border: 1px solid rgba(254, 215, 170, 0.85);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.45), rgba(124, 45, 18, 0.38));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  font-size: 18px;
}

.detail-title,
.detail-copy {
  padding: 24px;
}

.detail-title {
  border-bottom: 1px solid #ffedd5;
}

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

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

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #fde68a, #fb923c);
}

.info-list {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #ffedd5;
  padding-bottom: 10px;
}

.info-list span:first-child {
  color: var(--muted);
}

.info-list span:last-child {
  color: #111827;
  font-weight: 800;
  text-align: right;
}

.content-block {
  margin-top: 24px;
  border: 1px solid rgba(254, 215, 170, 0.85);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  padding: 28px;
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.content-block h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 26px;
}

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

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

.site-footer {
  margin-top: 56px;
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 32px;
  padding: 44px 0;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 12px;
}

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

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

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

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

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  color: #9ca3af;
  text-align: center;
}

.no-result {
  display: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .nav-wrap {
    flex-wrap: wrap;
  }

  .mobile-menu-button {
    display: block;
  }

  .nav-menu,
  .top-search {
    display: none;
    width: 100%;
  }

  .nav-menu.open,
  .top-search.open {
    display: flex;
  }

  .nav-menu.open {
    flex-direction: column;
    align-items: stretch;
    order: 3;
  }

  .top-search.open {
    order: 4;
  }

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

  .hero-art {
    min-height: 340px;
    order: -1;
  }

  .hero-copy {
    padding: 36px;
  }

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

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

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

  .hero {
    padding-top: 26px;
  }

  .hero-shell,
  .page-title,
  .player-card,
  .detail-info,
  .content-block {
    border-radius: 22px;
  }

  .hero-copy {
    padding: 26px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

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

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

  .rank-item img {
    width: 62px;
    height: 82px;
  }
}
