:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #16a34a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.14);
  --radius-lg: 18px;
  --radius-xl: 28px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 36%, #eff6ff 100%);
  min-height: 100vh;
}

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);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: #ffffff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.32);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  color: var(--gray-700);
  font-weight: 650;
  flex: 1;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

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

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.inline-search input,
.filter-box input {
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  background: #ffffff;
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 16px;
}

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

.header-search button,
.mobile-search button,
.inline-search button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--gray-800);
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 16px;
  background: #ffffff;
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--gray-100);
  font-weight: 700;
  color: var(--gray-700);
}

.mobile-search input {
  width: 100%;
  padding: 11px 16px;
}

.main-gradient {
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 52%, #eff6ff 100%);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, var(--rose) 0%, var(--pink) 50%, var(--purple) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.24), transparent 30%), radial-gradient(circle at 88% 24%, rgba(255, 255, 255, 0.18), transparent 32%), rgba(0, 0, 0, 0.08);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 40px;
  align-items: center;
  min-height: 560px;
  padding: 76px 0;
}

.hero-copy h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-copy p {
  margin: 0 0 28px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

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

.hero-btn,
.primary-link,
.secondary-link {
  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;
}

.hero-btn:hover,
.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-btn-light {
  color: var(--rose);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.hero-btn-outline {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-cats a {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}

.hero-cats a:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hero-carousel {
  position: relative;
  min-height: 430px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.3);
  background: rgba(15, 23, 42, 0.36);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-slide-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.1), transparent);
}

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

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

.pill,
.cover-label,
.rank-badge,
.meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.pill {
  padding: 8px 14px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  font-size: 14px;
}

.hero-dots {
  position: absolute;
  left: 30px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

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

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

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 40px 0;
}

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

.section-kicker {
  display: inline-flex;
  color: var(--rose);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-head h2,
.page-hero h1,
.category-head h1,
.detail-title h1,
.search-panel h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--gray-900);
}

.section-head h2 {
  font-size: clamp(28px, 3.8vw, 42px);
}

.section-head p,
.page-hero p,
.category-head p,
.search-panel p {
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.view-more {
  color: var(--rose);
  font-weight: 800;
}

.feature-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 32px;
  margin-top: -52px;
  padding: 34px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.feature-text h2 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.feature-text p {
  margin: 0 0 14px;
  color: var(--gray-600);
  line-height: 1.75;
}

.muted-line {
  color: var(--gray-500) !important;
  font-size: 15px;
}

.primary-link {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.24);
}

.secondary-link {
  color: var(--gray-800);
  background: var(--gray-100);
}

.feature-image {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.feature-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  height: 250px;
  background: var(--gray-200);
}

.movie-card-small .movie-cover {
  height: 190px;
}

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

.movie-card:hover .movie-cover img,
.category-tile:hover img,
.feature-image:hover img {
  transform: scale(1.08);
}

.cover-label {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 11px;
  color: #ffffff;
  font-size: 13px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.3);
}

.rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.movie-card-body {
  padding: 18px;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--rose);
}

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

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

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.movie-card-horizontal .movie-cover {
  height: 100%;
  min-height: 150px;
}

.blue-band {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.blue-band .section-head h2,
.blue-band .section-head p,
.blue-band .view-more,
.blue-band .section-kicker {
  color: #ffffff;
}

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

.category-tile a {
  position: relative;
  display: block;
  min-height: 240px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
  display: block;
  margin-left: 22px;
  margin-right: 22px;
}

.category-tile span {
  padding-top: 128px;
  font-size: 26px;
  font-weight: 900;
}

.category-tile p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.page-hero,
.category-head,
.search-panel {
  padding: 70px 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

.page-hero h1,
.category-head h1,
.search-panel h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p,
.category-head p,
.search-panel p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

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

.filter-box {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.filter-box input {
  width: 100%;
  padding: 13px 18px;
}

.category-empty {
  display: none;
  padding: 40px;
  border-radius: 20px;
  color: var(--gray-600);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.ranking-list {
  display: grid;
  gap: 18px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 80px 170px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.rank-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--rose);
}

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

.ranking-row h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-row p {
  margin: 0 0 12px;
  color: var(--gray-600);
  line-height: 1.6;
}

.detail-wrap {
  padding: 34px 0 70px;
  background: var(--gray-50);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 0.92fr);
  gap: 30px;
  align-items: start;
}

.detail-main,
.detail-side,
.detail-related {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #000000;
}

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

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24));
}

.player-layer.is-hidden {
  display: none;
}

.player-box {
  text-align: center;
}

.player-play {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.94);
  font-size: 30px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
}

.player-box strong {
  display: block;
  margin-top: 14px;
  font-size: 18px;
}

.player-message {
  min-height: 22px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
}

.detail-content {
  padding: 30px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.meta-pill {
  padding: 8px 14px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 14px;
}

.meta-pill.hot {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

.detail-title h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.16;
  margin-bottom: 18px;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
}

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

.article-text p {
  color: var(--gray-700);
  line-height: 1.9;
  margin: 0 0 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 14px;
}

.detail-side {
  padding: 24px;
}

.detail-side img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 20px;
}

.info-list {
  display: grid;
  gap: 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
}

.info-row span:first-child {
  color: var(--gray-600);
}

.info-row span:last-child {
  text-align: right;
  font-weight: 800;
}

.detail-related {
  margin-top: 34px;
  padding: 28px;
}

.detail-related h2 {
  margin: 0 0 24px;
  font-size: 30px;
}

.inline-search {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-top: 24px;
}

.inline-search input {
  flex: 1;
  padding: 14px 18px;
}

.search-results {
  min-height: 260px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
  padding: 48px 0 34px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  color: #9ca3af;
  line-height: 1.7;
}

.site-footer h2 {
  color: #ffffff;
  margin: 0 0 16px;
  font-size: 18px;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0 28px;
}

.footer-bottom p {
  margin: 0;
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-carousel {
    min-height: 380px;
  }

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

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

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

  .header-search {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 52px 0;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-carousel {
    min-height: 320px;
    border-radius: 24px;
  }

  .hero-slide-content {
    padding: 24px;
  }

  .section {
    padding: 44px 0;
  }

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

  .feature-card {
    padding: 22px;
    margin-top: -30px;
  }

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

  .movie-cover {
    height: 210px;
  }

  .movie-card-small .movie-cover {
    height: 170px;
  }

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

  .ranking-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .ranking-row img,
  .ranking-row .primary-link {
    display: none;
  }

  .detail-content,
  .detail-related,
  .detail-side {
    padding: 20px;
  }

  .detail-side img {
    height: 320px;
  }

  .inline-search,
  .filter-box {
    flex-direction: column;
    align-items: stretch;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 19px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

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

  .movie-cover,
  .movie-card-small .movie-cover {
    height: 260px;
  }
}
