:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 24px 60px rgba(217, 119, 6, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.24), transparent 32rem),
    radial-gradient(circle at 80% 8%, rgba(249, 115, 22, 0.18), transparent 28rem),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 50%, #fefce8 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500), var(--amber-600));
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.25);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-600);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.25);
}

.brand-name {
  font-size: 1.5rem;
}

.desktop-nav,
.footer-links,
.hero-actions,
.hero-dots,
.meta-line,
.tag-row,
.filter-bar,
.breadcrumbs,
.detail-actions,
.category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.desktop-nav {
  gap: 10px;
}

.nav-link,
.mobile-link {
  border-radius: 999px;
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
}

.mobile-nav {
  display: none;
  padding: 8px 18px 16px;
  background: rgba(217, 119, 6, 0.98);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.hero-carousel {
  position: relative;
  max-width: 1280px;
  min-height: 640px;
  margin: 28px auto 0;
  border-radius: 32px;
  overflow: hidden;
  color: var(--white);
  background: #111827;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-backdrop,
.hero-backdrop::after {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.08);
}

.hero-backdrop::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.7) 43%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.18) 48%, rgba(15, 23, 42, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  padding: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 54px;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(253, 230, 138, 0.28);
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 5vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: #fde68a;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.16;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  gap: 14px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.section-link,
.category-tabs a,
.pagination a,
.play-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.34);
}

.ghost-button {
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.category-tabs a:hover,
.play-pill:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
  transform: rotate(1.5deg);
}

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

.hero-poster span,
.play-dot,
.play-button-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.9);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-size: 1.7rem;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 72px;
  right: 72px;
  bottom: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.8rem;
}

.hero-dots {
  gap: 8px;
}

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

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

.hero-category-strip {
  position: absolute;
  z-index: 4;
  left: 32px;
  right: 32px;
  bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-category-strip span {
  color: #fde68a;
  font-weight: 900;
}

.hero-category-strip a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

main,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 72px;
}

.section-block {
  margin-top: 48px;
}

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

.section-heading h2,
.page-title h1,
.detail-info h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-title p {
  margin: 8px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.section-link,
.category-tabs a,
.pagination a {
  min-height: 40px;
  padding: 0 16px;
  color: var(--amber-600);
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

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

.movie-card,
.compact-card,
.category-tile,
.info-panel,
.detail-panel,
.search-panel,
.watch-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(254, 215, 170, 0.72);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: #fbbf24;
}

.poster-link,
.compact-poster,
.detail-cover,
.watch-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), transparent);
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.38);
}

.card-body {
  padding: 16px 16px 18px;
}

.meta-line {
  gap: 7px;
  color: var(--gray-600);
  font-size: 0.85rem;
}

.meta-line span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #a16207;
  font-weight: 800;
}

.movie-card h3,
.compact-card h3,
.category-tile h2 {
  margin: 10px 0 8px;
  color: var(--gray-900);
  line-height: 1.32;
}

.movie-card h3 {
  font-size: 1.05rem;
}

.movie-card p,
.compact-card p,
.category-tile p,
.detail-info p,
.info-panel p,
.detail-panel p {
  color: var(--gray-600);
  line-height: 1.72;
}

.movie-card p {
  min-height: 3.4em;
  margin: 0 0 12px;
  font-size: 0.93rem;
}

.tag-row {
  gap: 7px;
}

.tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 10px;
  color: #b45309;
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.category-tile {
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile .tile-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  font-weight: 900;
}

.category-tile h2 {
  font-size: 1.18rem;
}

.category-tile p {
  margin: 0 0 16px;
  font-size: 0.95rem;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.compact-poster {
  border-radius: 18px;
}

.compact-poster img {
  width: 96px;
  height: 132px;
  object-fit: cover;
}

.rank-number {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, #ef4444, var(--orange-500));
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.28);
}

.compact-card h3 {
  margin-top: 4px;
  font-size: 1.05rem;
}

.compact-card p {
  margin: 7px 0 0;
  font-size: 0.93rem;
}

.page-title {
  margin: 18px 0 26px;
  padding: 34px;
  border-radius: 28px;
  color: var(--gray-900);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 251, 235, 0.95)),
    radial-gradient(circle at right, rgba(245, 158, 11, 0.2), transparent 24rem);
  border: 1px solid rgba(254, 215, 170, 0.85);
  box-shadow: var(--shadow-card);
}

.category-tabs {
  gap: 10px;
  margin-top: 20px;
}

.filter-bar,
.search-panel {
  gap: 12px;
}

.search-panel {
  padding: 18px;
  margin: 18px 0 28px;
}

.search-input,
.search-select {
  min-height: 46px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-800);
  outline: none;
}

.search-input {
  flex: 1 1 320px;
  padding: 0 18px;
}

.search-select {
  min-width: 150px;
  padding: 0 14px;
}

.empty-state {
  display: none;
  padding: 32px;
  text-align: center;
  color: var(--gray-600);
}

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

.breadcrumbs {
  gap: 8px;
  margin: 10px 0 18px;
  color: var(--gray-600);
  font-size: 0.94rem;
}

.breadcrumbs a {
  color: var(--amber-600);
  font-weight: 800;
}

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

.detail-cover {
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4.25;
  object-fit: cover;
}

.detail-info,
.info-panel,
.detail-panel,
.watch-card {
  padding: 28px;
}

.detail-info {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(254, 215, 170, 0.78);
  box-shadow: var(--shadow-card);
}

.detail-info h1 {
  margin-bottom: 16px;
}

.detail-tags {
  margin: 18px 0 24px;
}

.detail-actions {
  gap: 12px;
  margin-top: 26px;
}

.watch-card {
  margin-top: 32px;
  overflow: hidden;
}

.watch-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.3);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.2)),
    rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: opacity 0.24s ease;
}

.watch-shell.is-playing .play-layer {
  opacity: 0;
  pointer-events: none;
}

.play-button-symbol {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
  font-size: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.info-panel h2,
.detail-panel h2,
.watch-card h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 1.5rem;
}

.info-panel p,
.detail-panel p {
  margin: 0;
}

.detail-actions .ghost-button {
  color: var(--amber-600);
  background: #fff7ed;
  border-color: #fed7aa;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
}

.footer-brand {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 1.35rem;
}

.footer-inner p {
  margin: 0;
  max-width: 520px;
  color: #cbd5e1;
  line-height: 1.75;
}

.footer-links {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
}

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

.footer-category-links {
  max-height: 150px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  font-size: 0.92rem;
}

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 52px;
  }

  .detail-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

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

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

  .hero-carousel {
    min-height: 720px;
    margin-left: 14px;
    margin-right: 14px;
    border-radius: 26px;
  }

  .hero-content {
    min-height: 720px;
    grid-template-columns: 1fr;
    padding: 36px 26px 164px;
    align-content: start;
  }

  .hero-poster {
    width: min(240px, 62vw);
    transform: none;
  }

  .hero-controls {
    left: 24px;
    right: 24px;
    bottom: 104px;
  }

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

  .compact-list,
  .detail-layout,
  .info-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 1.22rem;
  }

  main,
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

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

  .compact-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .compact-poster img {
    width: 84px;
    height: 116px;
  }

  .card-body {
    padding: 13px;
  }

  .movie-card p {
    min-height: 0;
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

  .hero-category-strip {
    left: 16px;
    right: 16px;
    bottom: 18px;
    max-height: 78px;
    overflow: auto;
  }

  .play-button-symbol {
    width: 68px;
    height: 68px;
  }
}
