:root {
  --orange: #f97316;
  --pink: #ec4899;
  --rose: #f43f5e;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--rose));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.24);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-name {
  font-size: 24px;
}

.nav-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 4px 0;
  border-radius: 99px;
}

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

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

.nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-link.is-active {
  background: var(--white);
  color: var(--orange);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--rose));
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle at 20px 20px, #fff 2px, transparent 2px);
  background-size: 42px 42px;
}

.hero-slider {
  position: relative;
  max-width: 1180px;
  min-height: 590px;
  margin: 0 auto;
  padding: 74px 20px 92px;
}

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

.hero-slide.is-active {
  display: grid;
  animation: heroFade 0.58s ease both;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(16px);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}

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

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.12;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
}

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

.btn-primary,
.btn-ghost,
.section-more,
.search-panel button,
.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  min-height: 48px;
  padding: 0 24px;
  color: var(--orange);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.btn-primary:hover,
.search-panel button:hover,
.player-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(15, 23, 42, 0.72));
}

.hero-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-card strong {
  display: block;
  font-size: 22px;
}

.hero-card em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.86);
}

.hero-dots {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 36px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 4;
}

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

.hero-dot.is-active {
  background: var(--white);
}

.search-panel {
  display: flex;
  gap: 12px;
  max-width: 660px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.search-panel input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--slate-900);
  background: var(--white);
  min-height: 46px;
}

.search-panel button {
  border-radius: 999px;
  padding: 0 22px;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 20px;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--rose));
}

.page-hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  z-index: 2;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
}

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

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 20px;
}

.content-section.soft {
  max-width: none;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8, #fff1f2);
}

.content-section.soft > .section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--slate-500);
  line-height: 1.65;
}

.section-more {
  color: var(--orange);
  white-space: nowrap;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-link {
  display: block;
}

.poster-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
  box-shadow: var(--soft-shadow);
}

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15, 23, 42, 0.72));
  transition: opacity 0.28s ease;
}

.movie-card:hover .poster-frame img,
.compact-card:hover img {
  transform: scale(1.08);
}

.movie-card:hover .poster-frame::after {
  opacity: 1;
}

.poster-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.92);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.play-icon {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  margin-top: 14px;
}

.movie-info h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover h3,
.compact-card:hover strong,
.ranking-item:hover h3 {
  color: var(--orange);
}

.movie-info p {
  margin: 8px 0 0;
  color: var(--slate-500);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--slate-500);
  font-size: 13px;
}

.meta-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--slate-100);
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  color: var(--rose);
  background: #fff1f2;
}

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

.category-card {
  display: block;
  padding: 24px;
  min-height: 170px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.category-card p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.65;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 1fr 112px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, background 0.18s ease;
}

.ranking-item:hover {
  transform: translateY(-2px);
  background: #fff7ed;
}

.rank-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--orange);
  text-align: center;
}

.ranking-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  transition: color 0.2s ease;
}

.ranking-item p {
  margin: 0;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-item img {
  height: 74px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.search-tools {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.search-tools input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 0 16px;
  outline: 0;
}

.search-tools input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  border-radius: 24px;
  color: var(--slate-500);
  background: var(--white);
}

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

.detail-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 14px;
  margin-bottom: 24px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.72));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-button {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  color: var(--white);
  font-size: 34px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 22px 50px rgba(236, 72, 153, 0.35);
}

.detail-main {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--soft-shadow);
}

.detail-main h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.detail-main .intro {
  margin: 0 0 22px;
  font-size: 18px;
  color: var(--slate-700);
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 700;
  font-size: 13px;
}

.article-block {
  margin-top: 30px;
}

.article-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.article-block p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.9;
}

.side-card {
  border-radius: 30px;
  background: var(--white);
  padding: 20px;
  box-shadow: var(--soft-shadow);
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.compact-stack {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.18s ease;
}

.compact-card:hover {
  background: var(--slate-50);
}

.compact-card img {
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
  transition: transform 0.28s ease;
}

.compact-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.compact-card em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  color: var(--slate-500);
  font-size: 12px;
  line-height: 1.4;
}

.cta-band {
  padding: 48px 28px;
  border-radius: 32px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--rose));
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}

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

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-brand strong {
  display: inline-block;
  font-size: 22px;
  background: linear-gradient(90deg, #fb923c, #f472b6);
  -webkit-background-clip: text;
  color: transparent;
}

.footer-brand p,
.footer-copy {
  color: #cbd5e1;
  line-height: 1.7;
}

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

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--white);
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

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

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

  .nav-link {
    text-align: center;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-slider {
    min-height: auto;
    padding: 54px 20px 76px;
  }

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

  .hero-media {
    margin-top: 30px;
  }

  .search-panel,
  .search-tools,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .search-panel {
    border-radius: 24px;
  }

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

  .ranking-item {
    grid-template-columns: 44px 1fr 86px;
    gap: 10px;
  }

  .ranking-item img {
    height: 58px;
  }

  .detail-main,
  .side-card {
    padding: 20px;
    border-radius: 22px;
  }

  .player-button {
    width: 74px;
    height: 74px;
    font-size: 28px;
  }
}
