:root {
  --peach: #fb923c;
  --peach-deep: #ea580c;
  --pink: #f472b6;
  --coral: #fb7185;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.18);
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 45px rgba(251, 113, 133, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
}

.navbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--peach), var(--pink));
  box-shadow: 0 12px 28px rgba(244, 114, 182, 0.28);
}

.gradient-text {
  background: linear-gradient(135deg, var(--peach-deep), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 650;
  color: #4b5563;
}

.nav-links a:hover {
  color: var(--peach-deep);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 230px;
  border: 1px solid rgba(251, 146, 60, 0.26);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
  outline: none;
  color: #374151;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

.search-box input:focus {
  width: 280px;
  border-color: var(--peach);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.12);
}

.search-box button {
  position: absolute;
  right: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--peach), var(--pink));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--peach), var(--pink));
}

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

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

.mobile-panel a {
  display: block;
  padding: 12px 4px;
  color: #4b5563;
  font-weight: 650;
  border-top: 1px solid rgba(251, 146, 60, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background:
    radial-gradient(circle at 15% 15%, rgba(251, 146, 60, 0.36), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(244, 114, 182, 0.34), transparent 32%),
    linear-gradient(135deg, #fff7ed 0%, #fdf2f8 52%, #fff1f2 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 42%, rgba(255, 255, 255, 0.2) 100%),
    radial-gradient(circle at 48% 82%, rgba(251, 113, 133, 0.18), transparent 32%);
  pointer-events: none;
}

.hero-track {
  position: relative;
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

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

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(251, 146, 60, 0.22);
  color: var(--peach-deep);
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(251, 146, 60, 0.12);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.9;
  color: #4b5563;
  max-width: 620px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.86);
  border: 1px solid rgba(251, 146, 60, 0.18);
  font-size: 14px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--peach), var(--pink));
  box-shadow: 0 16px 32px rgba(244, 114, 182, 0.24);
}

.btn-ghost {
  color: #9a3412;
  background: rgba(255, 255, 255, 0.74);
}

.hero-visual {
  position: relative;
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 80px rgba(236, 72, 153, 0.28);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.28), rgba(244, 114, 182, 0.28));
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(31, 41, 55, 0.74));
}

.hero-card {
  position: absolute;
  left: -34px;
  bottom: 32px;
  width: min(320px, 78%);
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background: rgba(31, 41, 55, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 38px rgba(31, 41, 55, 0.28);
}

.hero-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.hero-card span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.28);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 64px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.section-desc {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(251, 146, 60, 0.15);
  box-shadow: 0 12px 32px rgba(251, 113, 133, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.26), rgba(244, 114, 182, 0.26));
}

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

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

.movie-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--peach), var(--pink));
  box-shadow: 0 10px 24px rgba(244, 114, 182, 0.26);
}

.movie-score {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(31, 41, 55, 0.78);
  backdrop-filter: blur(10px);
}

.movie-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.movie-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-title a:hover {
  color: var(--peach-deep);
}

.movie-line {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.movie-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.78);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--peach), var(--pink));
  box-shadow: 0 16px 34px rgba(244, 114, 182, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(244, 114, 182, 0.28);
}

.category-card h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
}

.category-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 76px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(251, 146, 60, 0.14);
  box-shadow: 0 12px 30px rgba(251, 113, 133, 0.1);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--peach), var(--pink));
}

.rank-cover {
  width: 76px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.26), rgba(244, 114, 182, 0.26));
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  padding: 72px 0;
  color: #fff;
  background:
    radial-gradient(circle at 16% 30%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, var(--peach), var(--pink) 58%, var(--coral));
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(251, 146, 60, 0.15);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--peach);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.12);
}

.detail-hero {
  padding: 54px 0 40px;
  background:
    radial-gradient(circle at 18% 24%, rgba(251, 146, 60, 0.34), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(244, 114, 182, 0.28), transparent 30%);
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.26), rgba(244, 114, 182, 0.26));
  box-shadow: 0 26px 60px rgba(244, 114, 182, 0.24);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  margin-bottom: 14px;
  color: #9a3412;
  font-weight: 750;
}

.detail-title {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.detail-desc {
  margin-top: 18px;
  max-width: 820px;
  color: #4b5563;
  line-height: 1.9;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.player-section {
  padding: 36px 0 20px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.64));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--peach), var(--pink));
  box-shadow: 0 20px 44px rgba(244, 114, 182, 0.34);
}

.content-card {
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(251, 146, 60, 0.15);
  box-shadow: 0 14px 34px rgba(251, 113, 133, 0.1);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 900;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.95;
}

.content-card p + p {
  margin-top: 14px;
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 22px;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 60px;
  padding: 36px 0;
  border-top: 1px solid rgba(251, 146, 60, 0.16);
  color: #6b7280;
  background: rgba(255, 255, 255, 0.58);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .nav-links,
  .nav-actions .search-box {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero-visual {
    max-width: 520px;
  }

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

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

@media (max-width: 720px) {
  .navbar {
    height: 66px;
  }

  .logo {
    font-size: 20px;
  }

  .hero,
  .hero-track,
  .hero-inner {
    min-height: 760px;
  }

  .hero-inner {
    padding: 34px 0 88px;
    gap: 24px;
  }

  .hero-card {
    left: 16px;
    bottom: 16px;
  }

  .section {
    padding: 46px 0;
  }

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

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

  .rank-item {
    grid-template-columns: 42px 62px 1fr;
  }

  .rank-action {
    grid-column: 3;
    justify-self: start;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 460px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .hero h1,
  .detail-title,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }
}
