* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: #f9fafb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #eef2f7;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #facc15, #f472b6, #22c55e);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.25);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(4deg);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #ca8a04, #db2777, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #db2777;
}

.menu-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: none;
  color: #374151;
  background: #f3f4f6;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-weight: 700;
  color: #4b5563;
}

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

.page-main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 54px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 18% 20%, rgba(250, 204, 21, 0.42), transparent 35%),
    radial-gradient(circle at 80% 18%, rgba(236, 72, 153, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.34));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fef3c7, #fce7f3, #dcfce7);
  font-size: 13px;
  font-weight: 800;
}

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

.hero p {
  max-width: 640px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.20);
}

.btn.primary {
  color: #ffffff;
  background: #db2777;
}

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

.hero-card {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
}

.hero-card-info {
  padding: 16px 8px 4px;
}

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

.hero-card-info span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: background 0.2s ease, width 0.2s ease;
}

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

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: #6b7280;
}

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

.category-card {
  position: relative;
  min-height: 170px;
  padding: 24px;
  border: 1px solid #f3f4f6;
  border-radius: 26px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.6), rgba(244, 114, 182, 0.45), rgba(34, 197, 94, 0.45));
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.14);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 14px;
}

.category-card span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  color: #db2777;
  font-weight: 800;
}

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

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

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

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.15);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fce7f3, #dcfce7);
}

.poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.score {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #111827;
  background: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-tags span,
.meta-chip,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #db2777;
  background: #fdf2f8;
  font-size: 12px;
  font-weight: 800;
}

.card-title {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.32;
}

.card-title:hover {
  color: #db2777;
}

.card-meta,
.card-text {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.card-text {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-link {
  display: inline-flex;
  margin-top: 12px;
  color: #db2777;
  font-size: 13px;
  font-weight: 900;
}

.compact .card-body {
  padding: 12px;
}

.compact .card-title {
  font-size: 15px;
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(120px, 0.4fr));
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filters input,
.filters select {
  width: 100%;
  height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0 16px;
  color: #111827;
  background: #f9fafb;
  outline: none;
}

.filters input:focus,
.filters select:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.14);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #f3f4f6;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-index {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #facc15, #db2777, #22c55e);
  font-weight: 900;
}

.rank-thumb img {
  width: 74px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.rank-title {
  display: block;
  font-weight: 900;
}

.rank-title:hover {
  color: #db2777;
}

.rank-item p {
  margin: 3px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.rank-score {
  color: #ca8a04;
  font-weight: 900;
}

.page-hero {
  padding: 72px 24px 40px;
  color: #111827;
  background: radial-gradient(circle at 20% 10%, rgba(250, 204, 21, 0.34), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(244, 114, 182, 0.28), transparent 34%),
    linear-gradient(180deg, #ffffff, #f9fafb);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 14px;
}

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

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #6b7280;
  font-size: 17px;
}

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

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(219, 39, 119, 0.92);
  box-shadow: 0 18px 40px rgba(219, 39, 119, 0.36);
  font-size: 34px;
}

.play-overlay.is-hidden {
  display: none;
}

.detail-card,
.content-card {
  border-radius: 28px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.detail-cover {
  overflow: hidden;
  border-radius: 22px;
  margin-bottom: 18px;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.content-card {
  margin-top: 24px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

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

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

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 24px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
}

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

.site-footer {
  margin-top: 80px;
  padding: 54px 24px 24px;
  background: #ffffff;
  border-top: 1px solid #eef2f7;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-brand p {
  max-width: 460px;
  color: #6b7280;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.footer-links h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.footer-links a {
  display: block;
  margin: 8px 0;
  color: #6b7280;
  font-size: 14px;
}

.footer-links a:hover {
  color: #db2777;
}

.footer-bottom {
  max-width: 1280px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid #eef2f7;
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

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

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

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 52px;
  }

  .hero-card {
    max-width: 340px;
  }

  .section-header {
    display: block;
  }

  .category-grid,
  .movie-grid,
  .movie-grid.compact-grid,
  .rank-list,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand-text {
    font-size: 17px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-slide {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 54px 16px 0;
  }

  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .rank-item {
    grid-template-columns: 42px 62px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }
}
