:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --amber: #f59e0b;
  --card: #fffbeb;
  --shadow: 0 20px 45px rgba(124, 45, 18, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 45%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(124, 45, 18, 0.08);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.28);
}

.brand-name {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.search-form {
  flex: 1 1 340px;
  max-width: 430px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.search-form input,
.mobile-search input,
.page-filter input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.search-form input {
  padding: 11px 14px;
}

.search-form button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  background: var(--accent);
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 15px;
  white-space: nowrap;
}

.main-nav a {
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-dark);
}

.menu-button {
  display: none;
  border: 0;
  background: #ffedd5;
  border-radius: 12px;
  color: var(--accent-dark);
  font-size: 23px;
  padding: 8px 11px;
}

.mobile-panel {
  display: none;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--line);
}

.mobile-panel.open {
  display: block;
}

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

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #4b5563;
}

.mobile-search {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.mobile-search input {
  padding: 12px 14px;
}

.hero {
  position: relative;
  max-width: 1280px;
  min-height: 560px;
  margin: 28px auto 0;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(0.95);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58) 46%, rgba(17, 24, 39, 0.12)), linear-gradient(0deg, rgba(124, 45, 18, 0.46), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 90%);
  padding: 82px 70px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffedd5;
  padding: 8px 12px;
  border: 1px solid rgba(255, 237, 213, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.hero h1,
.hero h2 {
  margin: 22px 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 610px;
  margin: 0;
  color: #fffbeb;
  font-size: 18px;
  line-height: 1.8;
}

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

.primary-btn,
.ghost-btn,
.section-head a,
.quick-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  padding: 13px 22px;
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.35);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 20px;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-head a:hover,
.quick-panel a:hover {
  transform: translateY(-2px);
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

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

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

.hero-control {
  position: absolute;
  z-index: 4;
  left: 70px;
  bottom: 42px;
  display: flex;
  gap: 10px;
}

.hero-control button {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-control button.active {
  background: #ffffff;
}

.quick-panel {
  max-width: 1180px;
  margin: -35px auto 46px;
  position: relative;
  z-index: 8;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(124, 45, 18, 0.1);
  backdrop-filter: blur(16px);
}

.quick-panel span {
  display: block;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
}

.quick-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.quick-panel a {
  padding: 12px 16px;
  color: #9a3412;
  background: #ffedd5;
}

.section-block {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 24px;
}

.warm-block {
  padding-top: 34px;
  padding-bottom: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.7), rgba(254, 243, 199, 0.55));
}

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

.section-head p,
.page-hero p,
.detail-kicker {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-weight: 800;
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
}

.section-head a {
  color: #ffffff;
  background: var(--accent);
  padding: 11px 16px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(124, 45, 18, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(124, 45, 18, 0.14);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

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

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(124, 45, 18, 0.2);
}

.movie-info {
  padding: 14px;
}

.movie-title {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.movie-title:hover {
  color: var(--accent-dark);
}

.movie-info p {
  min-height: 44px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #78716c;
  font-size: 13px;
  margin-bottom: 10px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  padding-left: 6px;
  color: #fdba74;
}

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

.category-tile,
.category-overview-card a {
  display: block;
  height: 100%;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid #fed7aa;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(124, 45, 18, 0.14);
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  margin: 0 0 10px;
  color: #9a3412;
  font-size: 22px;
}

.category-tile span,
.category-overview-card p,
.category-overview-card span {
  color: var(--muted);
  line-height: 1.65;
}

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

.page-hero {
  margin-bottom: 34px;
  padding: 42px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffedd5, #fef3c7 55%, #ffffff);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.page-hero span {
  display: block;
  max-width: 780px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.page-filter {
  max-width: 560px;
  margin-top: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: #78716c;
  font-size: 14px;
  margin: 8px 0 18px;
}

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

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

.player-card,
.detail-info,
.detail-content article,
.detail-content aside {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-card {
  padding: 16px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(17, 24, 39, 0.34));
  cursor: pointer;
}

.video-cover span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  font-size: 30px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.25);
}

.video-shell.is-playing .video-cover {
  display: none;
}

.detail-info {
  padding: 22px;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 18px;
}

.detail-poster {
  width: 136px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.detail-info h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
}

.detail-one-line {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 15px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 26px;
  margin-top: 28px;
}

.detail-content article,
.detail-content aside {
  padding: 26px;
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-content p {
  color: #4b5563;
  line-height: 1.9;
  margin: 0 0 24px;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.related-card img {
  width: 70px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.related-card span {
  font-weight: 750;
  line-height: 1.45;
}

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

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 30px;
}

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

.site-footer p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

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

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

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

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

.empty-state {
  grid-column: 1 / -1;
  padding: 40px;
  border-radius: 22px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--muted);
}

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

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

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

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

@media (max-width: 860px) {
  .nav-wrap {
    padding: 0 16px;
  }

  .search-form {
    display: none;
  }

  .hero {
    min-height: 580px;
    margin: 16px 14px 0;
    border-radius: 24px;
  }

  .hero-content {
    padding: 54px 28px;
    width: 100%;
  }

  .hero-control {
    left: 28px;
    bottom: 28px;
  }

  .quick-panel {
    margin: 18px 14px 34px;
    grid-template-columns: 1fr;
  }

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

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

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

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

  .page-hero {
    padding: 28px;
    border-radius: 24px;
  }

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

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

  .detail-poster {
    width: 110px;
  }

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

@media (max-width: 520px) {
  .brand-name {
    font-size: 17px;
  }

  .hero h1,
  .hero h2 {
    font-size: 34px;
  }

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

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

  .detail-info {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: 160px;
  }
}
