:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --yellow: #fde68a;
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --border: rgba(251, 146, 60, 0.22);
  --shadow: 0 22px 60px rgba(154, 52, 18, 0.14);
  --shadow-soft: 0 14px 36px rgba(120, 53, 15, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 146, 60, 0.16), transparent 28rem),
    linear-gradient(180deg, #fffbeb 0%, #fff7ed 42%, #ffffff 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(180, 83, 9, 0.1);
}

.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: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  color: transparent;
  background: linear-gradient(90deg, var(--orange-dark), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #374151;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transition: width 0.25s ease;
}

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

.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--orange-dark);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 8px;
  color: #374151;
  font-weight: 700;
  border-top: 1px solid rgba(251, 146, 60, 0.15);
}

.mobile-nav.is-open {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: linear-gradient(135deg, #fb923c 0%, #f59e0b 48%, #fde047 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(2px);
  z-index: -1;
}

.hero::before {
  width: 360px;
  height: 360px;
  top: -90px;
  right: 5%;
}

.hero::after {
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: -180px;
}

.float-shape {
  position: absolute;
  color: rgba(255, 255, 255, 0.34);
  font-weight: 900;
  animation: floatShape 7s ease-in-out infinite;
  user-select: none;
}

.float-shape:nth-child(1) {
  top: 12%;
  left: 8%;
  font-size: 44px;
}

.float-shape:nth-child(2) {
  top: 22%;
  right: 16%;
  font-size: 66px;
  animation-delay: 1.5s;
}

.float-shape:nth-child(3) {
  bottom: 16%;
  left: 22%;
  font-size: 54px;
  animation-delay: 2.4s;
}

.float-shape:nth-child(4) {
  right: 6%;
  bottom: 24%;
  font-size: 42px;
  animation-delay: 0.8s;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-18px) rotate(5deg);
  }
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 96px;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 46px;
  align-items: center;
}

.hero-copy {
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(120, 53, 15, 0.18);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(17px, 2vw, 23px);
  color: rgba(255, 255, 255, 0.94);
}

.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: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--orange-dark);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(120, 53, 15, 0.18);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(30px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.hero-card {
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 70px rgba(120, 53, 15, 0.28);
}

.hero-card img {
  width: 100%;
  height: 285px;
  object-fit: cover;
}

.hero-card-body {
  padding: 24px;
}

.hero-card-body h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.22;
  color: #1f2937;
}

.hero-card-body p {
  min-height: 58px;
  margin: 12px 0 18px;
  color: #4b5563;
}

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

.hero-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

.hero-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.hero-controls {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

.hero-controls button,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-controls button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.25);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 30px;
  background: var(--orange);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 70px;
  background: linear-gradient(0deg, var(--bg) 15%, rgba(255, 247, 237, 0));
}

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

.section {
  padding: 72px 0;
}

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

.section-title h2,
.section-title h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  color: #1f2937;
}

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

.title-line {
  flex: 1;
  height: 5px;
  min-width: 120px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), rgba(245, 158, 11, 0.45), transparent);
}

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

.movie-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(251, 146, 60, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent 65%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

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

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

.card-category,
.card-duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.card-category {
  left: 10px;
  top: 10px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.card-duration {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.rank-badge {
  right: 10px;
  top: 10px;
  background: rgba(17, 24, 39, 0.78);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0;
  min-height: 52px;
  font-size: 18px;
  line-height: 1.45;
}

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

.card-body p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
  min-height: 46px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  margin-top: 10px;
}

.card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

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

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 74px 1fr 132px;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.24), transparent 12rem),
    linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.9);
}

.category-copy h3 {
  margin: 0;
  font-size: 24px;
}

.category-copy p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
}

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

.category-thumbs img {
  width: 42px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(120, 53, 15, 0.22);
}

.rank-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 74px 1fr 58px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.12);
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-row:hover {
  transform: translateX(5px);
  border-color: rgba(249, 115, 22, 0.38);
}

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

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

.rank-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rank-heat {
  color: var(--orange-dark);
  font-weight: 900;
  text-align: right;
}

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin-bottom: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(251, 146, 60, 0.16);
  box-shadow: 0 12px 36px rgba(120, 53, 15, 0.08);
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.search-box span {
  color: var(--orange-dark);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.sort-select {
  min-height: 46px;
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  color: #7c2d12;
  font-weight: 800;
  outline: 0;
}

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

.breadcrumb a {
  color: #9a3412;
  font-weight: 700;
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2));
  cursor: pointer;
  transition: opacity 0.24s ease;
}

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

.play-overlay span {
  display: inline-flex;
}

.play-icon {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.34);
  font-size: 28px;
  padding-left: 5px;
}

.detail-info {
  border-radius: 30px;
  padding: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.detail-one {
  margin: 16px 0;
  color: #4b5563;
  font-size: 17px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
  font-size: 13px;
}

.detail-cover {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 10;
}

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

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

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.content-card p + p {
  margin-top: 18px;
}

.carousel-strip {
  position: relative;
  overflow: hidden;
  padding: 2px;
}

.carousel-track {
  display: flex;
  gap: 18px;
  transition: transform 0.35s ease;
}

.carousel-track .movie-card {
  width: 276px;
  flex: 0 0 276px;
}

.strip-controls {
  display: flex;
  gap: 8px;
}

.strip-controls button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
}

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

.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
}

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

.footer-inner p,
.footer-inner a {
  color: #cbd5e1;
}

.footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #94a3b8;
  font-size: 14px;
}

.empty-message {
  display: none;
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty-message.is-visible {
  display: block;
}

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

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

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

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

@media (max-width: 760px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0 86px;
  }

  .hero-actions,
  .hero-stats {
    align-items: stretch;
  }

  .btn,
  .hero-stats span {
    width: 100%;
  }

  .movie-grid,
  .rank-panel,
  .category-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 56px 1fr;
  }

  .category-thumbs {
    display: none;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-select {
    width: 100%;
  }

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

  .title-line {
    width: 100%;
  }

  .rank-row {
    grid-template-columns: 36px 62px 1fr 48px;
    gap: 10px;
  }

  .rank-row img {
    width: 62px;
    height: 46px;
  }

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

  .detail-shell {
    margin-bottom: 42px;
  }

  .content-card,
  .detail-info {
    padding: 22px;
  }
}
