* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 36%, #f9fafb 100%);
}

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

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

button,
input {
  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.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
  font-size: 15px;
}

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

.desktop-nav a,
.mobile-nav a {
  font-size: 15px;
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #f43f5e;
}

.menu-button {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff1f2;
  color: #be123c;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 18px 24px 24px;
  border-top: 1px solid #ffe4e6;
}

.mobile-nav.open {
  display: flex;
}

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.9s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(660px, 92vw);
  color: #ffffff;
  animation: fadeIn 0.6s ease both;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fb7185;
}

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

.hero-copy p {
  margin: 0 0 24px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.7;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.detail-tags span,
.tag-row span {
  color: #9f1239;
  background: #ffe4e6;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 18px 32px rgba(244, 63, 94, 0.28);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 38px rgba(244, 63, 94, 0.35);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  padding: 54px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #111827;
}

.section-heading a {
  color: #e11d48;
  font-weight: 800;
}

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

.category-card,
.overview-card a {
  display: block;
  min-height: 152px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover,
.overview-card a:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
}

.category-card span,
.overview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #f472b6);
  font-weight: 900;
}

.category-card strong,
.overview-card h2 {
  display: block;
  margin: 0 0 8px;
  font-size: 20px;
  color: #111827;
}

.category-card p,
.overview-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.search-panel {
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: #9f1239;
  font-weight: 800;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  height: 52px;
  padding: 0 52px 0 18px;
  border: 2px solid #ffe4e6;
  border-radius: 18px;
  outline: none;
  background: #fffafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

.search-box span {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #e11d48;
  font-size: 26px;
}

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

.category-movie-grid {
  margin-top: 28px;
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #ffe4e6;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.72) 100%);
}

.type-badge,
.year-badge {
  position: absolute;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.type-badge {
  left: 12px;
  background: rgba(244, 63, 94, 0.86);
}

.year-badge {
  right: 12px;
  background: rgba(17, 24, 39, 0.62);
}

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #9ca3af;
  font-size: 12px;
}

.movie-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-body p {
  margin: 0 0 12px;
  color: #6b7280;
  line-height: 1.65;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.genre-line {
  margin-top: auto;
  padding-top: 12px;
  color: #6b7280;
  font-size: 12px;
}

.soft-panel {
  padding: 42px;
  border-radius: 32px;
  background: linear-gradient(180deg, #ffffff, #fff1f2);
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.08);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 48px 66px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
}

.rank-no,
.ranking-number {
  font-weight: 900;
  color: #f43f5e;
}

.rank-card img {
  width: 66px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  margin-bottom: 8px;
  color: #111827;
  font-size: 16px;
}

.rank-info em {
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  padding: 64px 0;
}

.gradient-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: inherit;
  opacity: 0.86;
}

.detail-hero {
  background: radial-gradient(circle at top left, #ffe4e6, #ffffff 42%, #f9fafb 100%);
}

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

.detail-copy h1 {
  margin: 18px 0;
  color: #111827;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.lead-text {
  max-width: 820px;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #4b5563;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.watch-panel,
.content-card,
.info-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.watch-panel {
  padding: 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #0f172a;
}

.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.76));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: #f43f5e;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  font-size: 28px;
}

.player-overlay strong {
  font-size: 22px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 330px;
  gap: 22px;
  align-items: start;
}

.content-card,
.info-card {
  padding: 28px;
}

.content-card h2,
.info-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 24px;
}

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

.info-card dl {
  margin: 0;
}

.info-card dt {
  padding-top: 12px;
  color: #9f1239;
  font-weight: 900;
}

.info-card dd {
  margin: 6px 0 10px;
  color: #4b5563;
  line-height: 1.65;
}

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

.ranking-row a {
  display: grid;
  grid-template-columns: 64px 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-row a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.11);
}

.ranking-row img {
  width: 96px;
  height: 128px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-number {
  text-align: center;
  font-size: 28px;
}

.ranking-text strong,
.ranking-text em,
.ranking-text p {
  display: block;
}

.ranking-text strong {
  margin-bottom: 8px;
  color: #111827;
  font-size: 20px;
}

.ranking-text em {
  margin-bottom: 8px;
  color: #e11d48;
  font-style: normal;
  font-weight: 800;
}

.ranking-text p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
}

.overview-card strong {
  display: inline-flex;
  margin-top: 18px;
  color: #e11d48;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 0 26px;
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
  border-top: 1px solid #ffe4e6;
}

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

.footer-grid p {
  max-width: 380px;
  color: #6b7280;
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 16px;
  color: #111827;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 10px;
}

.footer-grid a {
  color: #6b7280;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
}

.back-top {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #f43f5e;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.24);
}

.hidden-card {
  display: none !important;
}

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

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

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

  .detail-content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-card {
    grid-column: 1 / -1;
  }
}

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

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

  .hero {
    height: 620px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 86px;
  }

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

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

  .detail-poster {
    max-width: 320px;
  }

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

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

  .header-inner {
    height: 66px;
  }

  .brand {
    font-size: 20px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .section {
    padding: 38px 0;
  }

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

  .category-grid,
  .overview-grid,
  .rank-grid,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .soft-panel {
    padding: 24px;
  }

  .ranking-row a {
    grid-template-columns: 46px 78px 1fr;
    gap: 12px;
  }

  .ranking-row img {
    width: 78px;
    height: 104px;
  }

  .ranking-text p {
    display: none;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
