:root {
  --bg-soft: #fff7ed;
  --bg-pink: #fdf2f8;
  --bg-rose: #fff1f2;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --line: #e2e8f0;
  --brand: #f97316;
  --brand-deep: #ea580c;
  --pink: #ec4899;
  --rose: #f43f5e;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-pink), var(--bg-rose));
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #fb923c, #f472b6, #fb7185);
  box-shadow: 0 14px 30px rgba(244, 114, 182, 0.28);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: #ffffff;
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

main {
  overflow: hidden;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 58px;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.25), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(110deg, #f97316, #ec4899 54%, #f43f5e);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.22;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 46px;
}

.hero-badge,
.section-kicker,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-badge {
  margin-bottom: 18px;
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-highlight {
  display: inline-block;
  padding: 0 12px 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-lead {
  max-width: 680px;
  margin: 0 0 26px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--brand-deep);
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(255, 255, 255, 0.24);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn-warm {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--pink));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
}

.hero-search {
  display: flex;
  max-width: 560px;
  margin: 30px 0 0;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 16px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.hero-panel {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 34px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px) scale(0.98);
  background: rgba(15, 23, 42, 0.22);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.hero-slide-content {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.88));
  backdrop-filter: blur(12px);
}

.hero-slide-content h2 {
  margin: 10px 0 8px;
  font-size: 26px;
  line-height: 1.15;
}

.hero-slide-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
}

.hero-dots {
  position: absolute;
  right: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 26px;
  background: #ffffff;
}

.section {
  padding: 54px 0;
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-head p,
.page-lead {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 10px 0 0;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--brand-deep);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.poster-link.tall {
  aspect-ratio: 2 / 3;
}

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

.movie-card:hover .poster-link img,
.rank-row:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.card-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.92);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 17px;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h2 a,
.card-body h3 a {
  transition: color 0.2s ease;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
  color: var(--brand-deep);
}

.card-body p {
  margin: 0 0 13px;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

.card-meta span,
.tag-pill,
.meta-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8fafc;
}

.tag-pill {
  display: inline-flex;
  margin: 0 7px 8px 0;
  color: #c2410c;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(90deg, #ffedd5, #fce7f3);
}

.rank-panel,
.glass-panel,
.detail-card,
.sidebar-card,
.toolbar {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.rank-panel {
  padding: 20px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 112px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: #fff7ed;
}

.rank-index {
  color: #fb923c;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-row h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.rank-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
}

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

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

.category-tile {
  position: relative;
  min-height: 208px;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 208px;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.35s ease;
}

.category-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.92));
}

.category-info h2,
.category-info h3 {
  margin: 0 0 8px;
}

.category-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.55;
}

.cta-panel {
  margin: 32px 0 0;
  padding: 34px;
  border-radius: 32px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(90deg, #f97316, #ec4899, #f43f5e);
  box-shadow: 0 24px 55px rgba(236, 72, 153, 0.24);
}

.cta-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 40px);
}

.cta-panel p {
  margin: 0 auto 24px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

.page-hero {
  padding: 58px 0 42px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(236, 72, 153, 0.14), rgba(244, 63, 94, 0.12));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand-deep);
  font-weight: 700;
}

.toolbar {
  margin: 0 0 28px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(120px, 170px));
  gap: 12px;
}

.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text-main);
  background: #ffffff;
  padding: 0 14px;
  outline: 0;
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.filter-empty {
  display: none;
  padding: 28px;
  border-radius: 22px;
  color: var(--text-muted);
  text-align: center;
  background: #ffffff;
}

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

.detail-main {
  padding: 34px 0 62px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: #000000;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 32px;
  background: linear-gradient(90deg, var(--brand), var(--pink));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.35);
}

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

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--text-muted);
}

.detail-lead {
  margin: 0 0 24px;
  color: #475569;
  font-size: 18px;
  line-height: 1.85;
}

.text-section {
  margin-top: 24px;
}

.text-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.text-section p {
  margin: 0;
  color: #334155;
  line-height: 1.92;
  text-align: justify;
}

.review-box {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(90deg, #fff7ed, #fdf2f8);
}

.sidebar-card {
  padding: 18px;
  margin-bottom: 20px;
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.sidebar-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  background: #0f172a;
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.compact-card img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.compact-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.compact-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 28px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.footer-title {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(90deg, #fb923c, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: #cbd5e1;
}

.footer-grid p {
  margin: 0;
  line-height: 1.75;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: #fb923c;
  font-size: 15px;
}

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

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 480px;
  }

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

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

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

@media (max-width: 760px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
  }

  .hero {
    padding: 48px 0 42px;
  }

  .hero-panel {
    min-height: 430px;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
    gap: 8px;
  }

  .hero-search input {
    min-height: 42px;
  }

  .section {
    padding: 40px 0;
  }

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

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

  .rank-row {
    grid-template-columns: 36px minmax(0, 1fr) 92px;
  }

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

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

@media (max-width: 480px) {
  .logo {
    font-size: 19px;
  }

  .hero-actions,
  .card-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-slide-content {
    inset: auto 12px 12px 12px;
    padding: 16px;
  }

  .hero-slide-content h2 {
    font-size: 22px;
  }
}
