:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --rose-500: #f43f5e;
  --slate-900: #0f172a;
  --text: #27272a;
  --muted: #71717a;
  --line: rgba(217, 119, 6, 0.18);
  --shadow: 0 24px 70px rgba(120, 53, 15, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--amber-50) 0%, #fff7ed 42%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

.header-inner {
  max-width: 1240px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--amber-700);
}

.brand {
  font-size: 25px;
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-700), var(--orange-500));
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.26);
}

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

.desktop-nav a,
.mobile-panel a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #57534e;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover {
  color: var(--amber-700);
  background: rgba(251, 191, 36, 0.16);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.06);
}

.top-search input,
.mobile-search input {
  width: 230px;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  color: var(--text);
  background: transparent;
}

.top-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--amber-700);
  font-size: 30px;
  cursor: pointer;
}

.mobile-panel {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

main {
  min-height: 58vh;
}

.hero-carousel,
.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.28), transparent 26%), linear-gradient(120deg, var(--amber-700), var(--orange-500) 55%, var(--amber-600));
}

.hero-carousel {
  min-height: 630px;
  padding: 84px 24px 72px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(8px);
  pointer-events: none;
}

.hero-glow.one {
  top: 60px;
  left: 8%;
  width: 220px;
  height: 220px;
}

.hero-glow.two {
  right: 9%;
  bottom: 60px;
  width: 320px;
  height: 320px;
}

.hero-track {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 56px;
  align-items: center;
  min-height: 470px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--amber-700);
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 22px 0 10px;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.05;
}

.hero-summary,
.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--amber-800, #92400e);
  background: var(--amber-100);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.text-btn,
.more-link {
  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-btn {
  color: var(--amber-700);
  background: #ffffff;
  padding: 13px 26px;
  box-shadow: 0 18px 38px rgba(120, 53, 15, 0.18);
}

.ghost-btn {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  padding: 11px 22px;
}

.primary-btn:hover,
.ghost-btn:hover,
.text-btn:hover,
.more-link:hover {
  transform: translateY(-2px);
}

.hero-media {
  position: relative;
  display: block;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 80px rgba(120, 53, 15, 0.34);
  backdrop-filter: blur(12px);
}

.hero-media img {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.18);
}

.hero-media span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--amber-700);
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 18px 46px rgba(120, 53, 15, 0.32);
}

.hero-control {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-prev,
.hero-next,
.back-top {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  color: var(--amber-700);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.18);
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  font-size: 30px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

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

.stats-strip,
.section-block,
.cta-panel,
.detail-main,
.footer-grid {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-top: 42px;
}

.stat-box {
  min-height: 136px;
  border-radius: 26px;
  padding: 28px;
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.stat-box:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
}

.stat-box strong {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
}

.stat-box span {
  color: rgba(255, 255, 255, 0.88);
}

.stat-box.amber {
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.stat-box.orange {
  background: linear-gradient(135deg, var(--orange-500), #ef4444);
}

.stat-box.rose {
  background: linear-gradient(135deg, #ef4444, var(--rose-500));
}

.section-block {
  padding-top: 58px;
}

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

.section-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.more-link,
.text-btn {
  color: var(--amber-700);
  background: var(--amber-100);
  padding: 10px 18px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 28px 68px rgba(120, 53, 15, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(249, 115, 22, 0.2));
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-play,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.poster-play {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  color: var(--amber-700);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 900;
}

.card-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--amber-100);
}

.movie-card h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
}

.movie-card h2 a:hover {
  color: var(--amber-700);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.compact-card p {
  min-height: 69px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 26px;
  padding: 20px;
  color: #ffffff;
  background: var(--amber-700);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

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

.category-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  font-size: 23px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.cta-panel {
  margin-top: 70px;
  margin-bottom: 10px;
  padding-top: 58px;
  padding-bottom: 58px;
  border-radius: 34px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
}

.cta-panel p {
  max-width: 760px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.page-hero {
  padding: 76px 24px;
}

.compact-hero {
  text-align: center;
}

.compact-hero p {
  margin: 18px auto 0;
}

.small-actions {
  justify-content: center;
}

.catalog-panel {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.08);
}

.catalog-tools {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, 1fr);
  gap: 14px;
}

.catalog-tools label {
  display: grid;
  gap: 7px;
  color: #57534e;
  font-size: 13px;
  font-weight: 900;
}

.catalog-tools input,
.catalog-tools select {
  width: 100%;
  border: 1px solid var(--amber-200);
  border-radius: 14px;
  outline: 0;
  padding: 12px 13px;
  color: var(--text);
  background: #ffffff;
}

.catalog-tools input:focus,
.catalog-tools select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.catalog-result {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.no-results {
  margin-top: 20px;
  border-radius: 20px;
  padding: 24px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-weight: 900;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.09);
  transition: transform 0.2s ease;
}

.category-cover {
  overflow: hidden;
  border-radius: 22px;
}

.category-cover img {
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-overview-card h2 {
  margin: 4px 0 10px;
  font-size: 27px;
}

.category-overview-card p,
.category-overview-card li {
  color: var(--muted);
  line-height: 1.7;
}

.category-overview-card ul {
  margin: 12px 0 18px;
  padding-left: 20px;
}

.detail-main {
  padding-top: 26px;
}

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

.breadcrumb a {
  color: var(--amber-700);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.detail-cover img {
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  object-fit: cover;
  background: rgba(251, 191, 36, 0.18);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 22px;
  color: #57534e;
  font-size: 20px;
  line-height: 1.8;
}

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

.meta-list div {
  border-radius: 18px;
  padding: 14px;
  background: var(--amber-100);
}

.meta-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.meta-list dd {
  margin: 5px 0 0;
  color: var(--amber-900);
  font-weight: 900;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section,
.detail-text {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.08);
}

.player-section h2,
.detail-text h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.76));
}

.video-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--amber-700);
  background: #ffffff;
  font-size: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.video-overlay strong {
  font-size: 24px;
}

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

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-weight: 900;
}

.detail-text p {
  margin: 0;
  color: #52525b;
  font-size: 18px;
  line-height: 1.95;
}

.related-block {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 80px;
  color: #fffbeb;
  background: linear-gradient(135deg, var(--amber-900), #9a3412);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding-top: 46px;
  padding-bottom: 42px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(255, 251, 235, 0.78);
  line-height: 1.75;
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 24px;
  text-align: center;
  color: rgba(255, 251, 235, 0.72);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 48px;
  height: 48px;
  display: none;
  font-size: 24px;
  font-weight: 900;
}

.back-top.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .top-search {
    display: none;
  }

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

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

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

  .hero-slide,
  .detail-hero,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-media {
    max-width: 420px;
    margin: 0 auto;
  }

  .stats-strip,
  .movie-grid,
  .catalog-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-tools {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .brand {
    font-size: 20px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

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

  .hero-summary,
  .page-hero p,
  .detail-one-line {
    font-size: 17px;
  }

  .stats-strip,
  .section-block,
  .cta-panel,
  .detail-main,
  .footer-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stats-strip,
  .movie-grid,
  .catalog-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .catalog-tools,
  .meta-list {
    grid-template-columns: 1fr;
  }

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

  .detail-hero,
  .player-section,
  .detail-text,
  .catalog-panel {
    border-radius: 24px;
    padding: 18px;
  }

  .player-shell {
    border-radius: 18px;
  }
}
