:root {
  --bg: #fff8f2;
  --panel: rgba(255, 255, 255, 0.88);
  --ink: #2b1f1a;
  --muted: #7a6258;
  --line: rgba(245, 130, 54, 0.22);
  --orange: #f97316;
  --pink: #ec4899;
  --yellow: #facc15;
  --red: #ef4444;
  --shadow: 0 24px 60px rgba(161, 84, 28, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 169, 77, 0.28), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(236, 72, 153, 0.22), transparent 30rem),
    linear-gradient(135deg, #fff7ed 0%, #fff1f7 48%, #fef9c3 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(245, 130, 54, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 0 22px;
}

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

.brand-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.24);
}

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

.brand-text strong {
  font-size: 22px;
  background: linear-gradient(135deg, #ea580c, #db2777, #ca8a04);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 14px;
  color: #5f463a;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #c2410c;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 20px rgba(245, 130, 54, 0.14);
  transform: translateY(-1px);
}

.site-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search-form input,
.local-search input,
.filter-select {
  width: 100%;
  border: 2px solid rgba(251, 146, 60, 0.25);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form input:focus,
.local-search input:focus,
.filter-select:focus {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.1);
}

.site-search-form button,
.primary-btn,
.ghost-btn,
.play-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.28);
}

.header-search {
  width: 310px;
}

.menu-toggle {
  display: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 24px;
  color: #c2410c;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(245, 130, 54, 0.14);
}

.mobile-nav {
  display: none;
  padding: 0 22px 18px;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 22px 60px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(251, 146, 60, 0.34), rgba(236, 72, 153, 0.26)),
    linear-gradient(120deg, #fff7ed, #fff1f7 60%, #fef3c7);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(3px);
  opacity: 0.62;
}

.hero::before {
  width: 360px;
  height: 360px;
  right: -120px;
  top: -120px;
  background: rgba(236, 72, 153, 0.25);
}

.hero::after {
  width: 300px;
  height: 300px;
  left: -110px;
  bottom: -120px;
  background: rgba(250, 204, 21, 0.28);
}

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

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 36px;
  padding: 58px;
}

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

.hero-kicker,
.section-kicker,
.breadcrumb {
  color: #db2777;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 16px;
  max-width: 720px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.05;
}

.hero p {
  color: #65483d;
  font-size: 18px;
  line-height: 1.86;
}

.hero-meta,
.detail-meta,
.movie-meta,
.category-meta {
  color: var(--muted);
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.ghost-btn {
  color: #c2410c;
  background: rgba(255, 255, 255, 0.82);
}

.hero-art {
  position: relative;
}

.hero-art img,
.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 32px 70px rgba(112, 52, 23, 0.28);
}

.hero-art-card {
  position: absolute;
  right: -16px;
  bottom: 20px;
  max-width: 250px;
  padding: 16px;
  border-radius: 22px;
  color: #4b352d;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(112, 52, 23, 0.16);
  backdrop-filter: blur(14px);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 58px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(194, 65, 12, 0.25);
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

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

.section-head,
.page-headline {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h1,
.section-head h2,
.page-headline h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
}

.section-head p,
.page-headline p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(112, 52, 23, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(112, 52, 23, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(236, 72, 153, 0.14));
}

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

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

.play-mark,
.rank-badge {
  position: absolute;
  display: grid;
  place-items: center;
}

.play-mark {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.84);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  left: 14px;
  top: 14px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.22);
}

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

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: #db2777;
}

.movie-line {
  color: #5f463a;
  line-height: 1.65;
}

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

.tag-row span,
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #a83d10;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 237, 213, 0.86);
}

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

.category-card {
  padding: 24px;
  min-height: 170px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 237, 213, 0.68));
  box-shadow: 0 18px 40px rgba(112, 52, 23, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(112, 52, 23, 0.18);
}

.category-card h2 {
  margin: 0 0 10px;
}

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

.local-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(112, 52, 23, 0.08);
}

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

.detail-poster {
  position: sticky;
  top: 104px;
}

.detail-panel,
.player-panel,
.content-panel {
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.detail-panel {
  padding: 32px;
}

.detail-panel h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
}

.detail-panel p {
  line-height: 1.86;
}

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

.detail-info div {
  padding: 13px 15px;
  border-radius: 18px;
  color: #5f463a;
  background: rgba(255, 237, 213, 0.72);
}

.player-panel {
  overflow: hidden;
  margin-top: 30px;
}

.video-shell {
  position: relative;
  background: #150d0a;
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #150d0a;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(23, 11, 7, 0.72), rgba(83, 21, 61, 0.56));
}

.play-button {
  min-width: 160px;
  min-height: 54px;
  font-size: 18px;
}

.player-title {
  padding: 20px 24px;
}

.player-title h2 {
  margin: 0 0 8px;
}

.content-panel {
  margin-top: 30px;
  padding: 28px;
}

.content-panel h2 {
  margin: 0 0 14px;
}

.content-panel p {
  color: #5f463a;
  line-height: 1.9;
}

.breadcrumb {
  margin-bottom: 16px;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #c2410c;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 247, 237, 0.76);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 42px 22px;
}

.footer-inner p {
  color: var(--muted);
  line-height: 1.8;
}

.footer-inner h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.8);
}

.empty-hint {
  display: none;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
}

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

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

  .header-search {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 34px 24px 86px;
  }

  .hero-dots {
    left: 24px;
  }

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

  .local-search {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    position: static;
    max-width: 360px;
  }

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

@media (max-width: 560px) {
  .header-inner,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero {
    min-height: auto;
    border-radius: 24px;
  }

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

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

  .section-head,
  .page-headline {
    display: block;
  }
}
