:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --orange: #f97316;
  --amber: #f59e0b;
  --emerald: #10b981;
  --cyan: #06b6d4;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(148, 163, 184, 0.25);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 60px rgba(244, 63, 94, 0.16);
  --shadow-soft: 0 14px 35px rgba(31, 41, 55, 0.12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 48%, #fff1f2 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.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.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.3);
}

.brand-mark.small {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 12px;
}

.brand-text {
  font-size: 1.55rem;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-weight: 700;
  color: #374151;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
  transform: translateY(-1px);
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-panel input,
.search-box input,
.filter-input {
  width: 260px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  outline: none;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.top-search input:focus,
.mobile-panel input:focus,
.search-box input:focus,
.filter-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.16);
}

.top-search button,
.mobile-panel button,
.search-box button,
.btn,
.watch-button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.top-search button:hover,
.mobile-panel button:hover,
.search-box button:hover,
.btn:hover,
.watch-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  color: var(--rose);
  font-size: 22px;
  cursor: pointer;
}

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

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 700;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 72% 18%,
      rgba(249, 115, 22, 0.28),
      transparent 24%
    ),
    linear-gradient(
      90deg,
      rgba(17, 24, 39, 0.9),
      rgba(244, 63, 94, 0.65) 48%,
      rgba(249, 115, 22, 0.32)
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  align-items: center;
  padding: 72px 0 120px;
}

.hero-copy {
  max-width: 690px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.active {
  background: #fff;
}

.hero-bottom {
  position: relative;
  z-index: 5;
  margin-top: -92px;
  margin-bottom: 76px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 230px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.feature-card:hover,
.movie-card:hover,
.category-card:hover,
.list-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 60px rgba(244, 63, 94, 0.22);
}

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

.feature-card:hover img,
.movie-card:hover img,
.list-card:hover img {
  transform: scale(1.08);
}

.feature-card::after,
.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(17, 24, 39, 0.84));
}

.feature-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  z-index: 2;
}

.feature-card span,
.duration,
.rank-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--rose);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-card h2,
.feature-card h3 {
  margin: 12px 0 6px;
  font-size: 1.18rem;
}

.feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.content-section {
  margin: 76px 0;
}

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

.section-head div:first-child {
  display: grid;
  gap: 6px;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  color: #fff;
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.22);
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  color: var(--rose);
  font-weight: 800;
}

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

.movie-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fb7185, #fdba74);
}

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

.duration {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.76);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  min-width: 34px;
  justify-content: center;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: block;
  font-weight: 900;
  font-size: 1.06rem;
  line-height: 1.35;
  color: #111827;
  transition: color 0.2s ease;
}

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

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

.movie-meta,
.tag-row,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.movie-meta span,
.tag-row span,
.meta-pills span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff1f2;
  color: var(--rose-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.tag-row span {
  background: #f8fafc;
  color: #64748b;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #10b981, #14b8a6);
}

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

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

.category-card span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-weight: 900;
  opacity: 0.78;
}

.rank-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

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

.list-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.list-thumb {
  width: 96px;
  height: 72px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #fb7185, #fdba74);
}

.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.rank-number.soft {
  background: #fff1f2;
  color: var(--rose);
}

.list-info a {
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
  color: #111827;
}

.list-info p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.list-info div {
  display: flex;
  gap: 12px;
  color: #64748b;
  font-size: 0.88rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: #fff;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(255, 255, 255, 0.24),
      transparent 22%
    ),
    linear-gradient(135deg, var(--rose), var(--orange));
}

.page-hero.dark {
  background: linear-gradient(135deg, #111827, #374151);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

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

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}

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

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.filter-input {
  width: min(420px, 100%);
}

.sidebar-card,
.detail-card,
.search-panel {
  border-radius: 24px;
  padding: 24px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.sidebar-card + .sidebar-card {
  margin-top: 18px;
}

.sidebar-card h2,
.detail-card h2,
.search-panel h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.sidebar-links {
  display: grid;
  gap: 10px;
}

.sidebar-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.player-shell {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 30px 72px rgba(15, 23, 42, 0.35);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.2),
    rgba(2, 6, 23, 0.78)
  );
  cursor: pointer;
  z-index: 2;
}

.player-cover.hidden {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.64);
}

.watch-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  padding: 15px 24px;
}

.detail-card {
  margin-top: 22px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

.detail-card p {
  color: #4b5563;
  line-height: 1.9;
}

.prose-block h2 {
  margin: 28px 0 10px;
  font-size: 1.35rem;
}

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

.search-box {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.search-box input {
  width: min(560px, 100%);
}

.empty-note {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 24px;
}

.site-footer {
  margin-top: 84px;
  padding: 56px 0 24px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

@media (max-width: 980px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .feature-strip,
  .movie-grid,
  .category-grid,
  .footer-grid,
  .rank-layout,
  .detail-layout {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout,
  .rank-layout {
    display: block;
  }

  .sidebar {
    margin-top: 28px;
  }
}

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

  .brand-text {
    font-size: 1.25rem;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 54px 0 112px;
  }

  .hero-bottom {
    margin-top: -70px;
  }

  .feature-strip,
  .movie-grid,
  .category-grid,
  .footer-grid,
  .related-grid,
  .rank-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .section-head,
  .toolbar,
  .search-box {
    align-items: stretch;
    flex-direction: column;
  }

  .list-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .rank-number {
    position: absolute;
    left: 18px;
    top: 18px;
    width: 36px;
    height: 36px;
  }

  .list-thumb {
    width: 86px;
    height: 98px;
  }

  .list-info div {
    flex-wrap: wrap;
  }
}
