:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 24px 60px rgba(17, 24, 39, 0.16);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 34%, #f9fafb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 8px 32px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(14px);
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--gray-900);
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), var(--rose-600));
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.34);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--gray-700);
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--rose-500);
  border-radius: 999px;
  content: "";
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--rose-600);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-search {
  position: relative;
  width: min(280px, 28vw);
}

.header-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 2px solid var(--gray-200);
  outline: none;
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-800);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 11px 48px 11px 18px;
}

.header-search button {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 38px;
  height: 38px;
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.header-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
  color: var(--rose-600);
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.24), transparent 36%), radial-gradient(circle at 80% 20%, rgba(251, 113, 133, 0.24), transparent 34%), linear-gradient(135deg, #fff1f2 0%, #ffffff 52%, #fff7ed 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.45;
  content: "";
  animation: blobMove 9s ease-in-out infinite;
}

.hero::before {
  top: 90px;
  left: -110px;
  background: #f9a8d4;
}

.hero::after {
  right: -120px;
  bottom: 30px;
  background: #fb7185;
  animation-delay: 2s;
}

@keyframes blobMove {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(34px, -22px) scale(1.08);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 46px;
  padding: 82px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 9px 15px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  margin: 0 0 22px;
  color: var(--gray-900);
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500), #fb923c);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-summary {
  max-width: 650px;
  margin: 0 0 28px;
  color: var(--gray-700);
  font-size: 18px;
}

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

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), var(--rose-600));
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.32);
}

.btn-light {
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(244, 63, 94, 0.18);
}

.btn:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.16);
}

.hero-search {
  display: flex;
  width: min(620px, 100%);
  margin-top: 26px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 18px;
  background: transparent;
  color: var(--gray-800);
}

.hero-search button {
  border: 0;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  display: none;
  min-height: 570px;
  background: var(--gray-900);
}

.hero-slide.active {
  display: block;
  animation: fadeScale 0.5s ease both;
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(1.03);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.hero-slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 130px 28px 28px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.92));
}

.hero-slide-content h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-dots {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  border-radius: 999px;
  background: var(--white);
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: linear-gradient(180deg, #ffffff 0%, #fff7f8 100%);
}

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

.section-title {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-lead {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--gray-500);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(244, 63, 94, 0.22));
  border-radius: 50%;
  content: "";
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 22px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: var(--gray-500);
  font-size: 14px;
}

.category-card span {
  position: relative;
  z-index: 1;
  color: var(--rose-600);
  font-weight: 900;
}

.category-card:hover,
.movie-card:hover,
.rank-item:hover,
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(244, 63, 94, 0.36);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--rose-50), var(--gray-100));
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 10px;
  color: var(--rose-600);
  background: var(--rose-50);
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-wrap .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--white);
  background: rgba(225, 29, 72, 0.92);
  border: 0;
}

.card-body {
  padding: 16px;
}

.movie-title {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.36;
  font-weight: 900;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), var(--rose-600));
  border-radius: 16px;
  font-weight: 900;
}

.rank-item img {
  width: 88px;
  height: 116px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-item h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
}

.page-hero {
  padding: 72px 0 44px;
  background: radial-gradient(circle at 20% 0%, rgba(236, 72, 153, 0.18), transparent 32%), linear-gradient(135deg, #fff1f2, #ffffff 58%, #fff7ed);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gray-500);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--rose-600);
}

.page-hero h1,
.detail-title {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--gray-700);
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.filter-input,
.filter-select {
  height: 48px;
  padding: 0 16px;
}

.empty-state {
  display: none;
  padding: 48px 24px;
  color: var(--gray-500);
  text-align: center;
  background: var(--white);
  border: 1px dashed rgba(244, 63, 94, 0.24);
  border-radius: var(--radius-xl);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-panel,
.sidebar-panel {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.movie-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.player-video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.68));
  cursor: pointer;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-600));
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.42);
  font-size: 34px;
}

.player-error {
  display: none;
  padding: 14px 18px;
  color: var(--rose-600);
  background: var(--rose-50);
  font-weight: 800;
}

.player-error.show {
  display: block;
}

.detail-panel {
  padding: 28px;
}

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

.detail-panel h2,
.sidebar-panel h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 24px;
}

.detail-panel p {
  margin: 0 0 18px;
  color: var(--gray-700);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.sidebar-panel {
  padding: 18px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card img {
  width: 78px;
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
}

.related-card h3 {
  margin: 0 0 6px;
  color: var(--gray-900);
  font-size: 15px;
  line-height: 1.3;
}

.related-card p {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.site-footer {
  padding: 54px 0 30px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer p,
.site-footer a {
  color: #d1d5db;
}

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

.footer-links {
  display: grid;
  gap: 9px;
}

.copyright {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

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

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

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

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

@media (max-width: 860px) {
  .nav-links,
  .header-search {
    display: none;
  }

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

  .mobile-panel.open {
    display: grid;
    gap: 14px;
  }

  .mobile-panel .nav-links,
  .mobile-panel .header-search {
    display: flex;
    width: 100%;
  }

  .mobile-panel .nav-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 54px 0;
  }

  .hero-slide,
  .hero-slide img {
    min-height: 460px;
    height: 460px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .hero-search input {
    height: 44px;
  }

  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .rank-item {
    grid-template-columns: 44px 78px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-no {
    width: 40px;
    height: 40px;
  }

  .rank-item img {
    width: 78px;
    height: 104px;
  }

  .detail-panel {
    padding: 20px;
  }
}
