:root {
  --bg-soft: #fff7ed;
  --bg-warm: #fffbeb;
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #f97316;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(180, 83, 9, 0.16);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-warm), var(--bg-soft));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #78350f, #c2410c 52%, #92400e);
  color: #fff;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.26);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.logo-title {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.logo-subtitle {
  display: block;
  font-size: 12px;
  color: #fde68a;
  font-weight: 500;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a,
.mobile-menu a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff7ed;
  font-weight: 650;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 24px;
}

.mobile-menu {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.55), transparent 25%), linear-gradient(135deg, #7c2d12, #f97316 54%, #eab308);
}

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

.hero::before {
  width: 280px;
  height: 280px;
  top: -90px;
  left: -80px;
}

.hero::after {
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -140px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 64px 0;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.86fr);
  gap: 42px;
  align-items: center;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fef3c7;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: #fef3c7;
}

.hero-summary {
  max-width: 760px;
  color: #fff7ed;
  font-size: clamp(17px, 2vw, 21px);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #7c2d12;
  background: #fffbeb;
  font-size: 13px;
  font-weight: 750;
}

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

.button-primary,
.button-ghost,
.button-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button-primary {
  color: #9a3412;
  background: #fff;
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.22);
}

.button-ghost {
  color: white;
  background: rgba(146, 64, 14, 0.64);
}

.button-soft {
  color: #9a3412;
  background: #ffedd5;
}

.button-primary:hover,
.button-ghost:hover,
.button-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(120, 53, 15, 0.22);
}

.hero-art {
  position: relative;
}

.hero-poster {
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(69, 26, 3, 0.38);
  transform: rotate(1.5deg);
}

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

.hero-card-float {
  position: absolute;
  left: -26px;
  bottom: 28px;
  width: min(310px, 88%);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  color: #7c2d12;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

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

.slider-dot.active {
  width: 34px;
  background: #fff;
}

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

.section {
  padding: 56px 0;
}

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

.section-eyebrow {
  display: inline-flex;
  width: fit-content;
  color: #c2410c;
  background: #ffedd5;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 10px;
}

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

.section p,
.page-title p {
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(146, 64, 14, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  overflow: hidden;
  background: #fed7aa;
}

.card-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.64);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 10px;
}

.card-desc {
  color: #6b7280;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
  padding: 24px;
  color: white;
  background: linear-gradient(135deg, #f97316, #d97706);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

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

.category-card p {
  color: #fff7ed;
  margin: 0;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 82px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(146, 64, 14, 0.08);
}

.rank-number {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #f97316, #facc15);
  font-weight: 900;
}

.rank-cover {
  width: 82px;
  height: 110px;
  object-fit: cover;
  border-radius: 16px;
}

.search-panel,
.filter-panel,
.info-panel {
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 14px 42px rgba(146, 64, 14, 0.1);
}

.search-box,
.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-box input,
.filter-row input,
.filter-row select {
  flex: 1 1 240px;
  min-height: 48px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 16px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.search-result-card img {
  width: 72px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

.page-hero {
  background: linear-gradient(135deg, #78350f, #f97316 58%, #facc15);
  color: white;
  padding: 60px 0;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #ffedd5;
  margin-bottom: 16px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: white;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.85fr);
  gap: 30px;
  align-items: start;
  padding: 48px 0;
}

.detail-title {
  margin-bottom: 22px;
}

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

.player-shell {
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 24px 64px rgba(31, 41, 55, 0.25);
}

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

.player-frame video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-overlay-inner {
  display: grid;
  place-items: center;
  gap: 14px;
}

.play-circle {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f97316, #facc15);
  font-size: 34px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.player-frame.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-card {
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 12px 38px rgba(146, 64, 14, 0.1);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 18px;
}

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

.prose-block {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.prose-card {
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(249, 115, 22, 0.14);
}

.prose-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

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

.next-prev {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.site-footer {
  margin-top: 54px;
  color: #ffedd5;
  background: linear-gradient(135deg, #78350f, #9a3412, #78350f);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-inner h3,
.footer-inner h4 {
  color: white;
  margin: 0 0 12px;
}

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

.footer-links {
  display: grid;
  gap: 8px;
}

.copyline {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(254, 215, 170, 0.22);
  color: #fde68a;
  text-align: center;
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

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

  .menu-button {
    display: block;
  }

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

  .hero-inner {
    min-height: auto;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 64px;
  }

  .logo-subtitle {
    display: none;
  }

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

  .hero-poster {
    transform: none;
  }

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

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

  .rank-item .button-soft {
    grid-column: 1 / -1;
  }

  .footer-inner,
  .section-header,
  .next-prev {
    display: block;
  }
}
