:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #9333ea;
  --blue: #2563eb;
  --cyan: #38bdf8;
  --gold: #f59e0b;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fdf2f8;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 5%, rgba(244, 114, 182, 0.26), transparent 26rem),
    radial-gradient(circle at 88% 2%, rgba(147, 51, 234, 0.16), transparent 30rem),
    linear-gradient(180deg, #fff7fb 0%, #f9fafb 40%, #f3f4f6 100%);
  line-height: 1.6;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.ribbon-decoration {
  position: relative;
  height: 4px;
  overflow: hidden;
  background: linear-gradient(90deg, #f472b6, #a855f7, #3b82f6);
}

.ribbon-decoration::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: ribbon-shine 3s infinite;
}

@keyframes ribbon-shine {
  0% { left: -100%; }
  52%, 100% { left: 100%; }
}

.header-inner,
.mobile-nav,
.footer-inner,
.footer-bottom,
.page-shell,
.hero-content {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.32);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.05);
}

.brand-name {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  background: linear-gradient(90deg, var(--pink), var(--purple));
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: translateY(0);
}

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

.header-search input,
.mobile-search input,
.local-search,
.select-control {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 210px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.primary-button,
.watch-link {
  border: 0;
  cursor: pointer;
  color: white;
  font-weight: 750;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 10px 16px;
}

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

.primary-button:hover,
.watch-link:hover,
.header-search button:hover,
.mobile-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(147, 51, 234, 0.32);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--pink-dark);
  background: white;
  font-size: 1.65rem;
  cursor: pointer;
}

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

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

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62) 42%, rgba(17, 24, 39, 0.28)),
    var(--cover),
    linear-gradient(135deg, #f472b6, #9333ea);
  background-size: cover;
  background-position: center;
  transition: opacity 0.75s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(236, 72, 153, 0.35), transparent 24rem),
    linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.82));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  align-items: center;
  gap: 48px;
  padding: 80px 0 86px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fecdd3;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f9a8d4, #c4b5fd);
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0 0 20px;
  color: white;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.hero-tags .badge {
  color: white;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
}

.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 22px;
}

.ghost-button {
  color: white;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.hero-feature-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.hero-feature-poster {
  min-height: 380px;
  border-radius: 24px;
  background-image:
    linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.55)),
    var(--cover),
    linear-gradient(135deg, #f9a8d4, #a78bfa);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -80px 120px rgba(0, 0, 0, 0.22);
}

.hero-feature-card h2 {
  margin: 10px 0 8px;
  font-size: 1.6rem;
}

.hero-feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-mini-card {
  display: flex;
  min-height: 92px;
  align-items: flex-end;
  padding: 10px;
  border-radius: 16px;
  overflow: hidden;
  color: white;
  background-image:
    linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.8)),
    var(--cover),
    linear-gradient(135deg, #f9a8d4, #a78bfa);
  background-size: cover;
  background-position: center;
  font-size: 0.82rem;
  font-weight: 750;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 2rem;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: white;
}

.page-shell {
  padding: 48px 0 72px;
}

.content-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

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

.section-heading h2,
.page-heading h1,
.detail-info h1,
.article-block h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

.section-heading p,
.page-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.search-panel,
.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 15px 36px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(10px);
}

.local-search,
.select-control {
  width: 100%;
  padding: 13px 16px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.32);
  box-shadow: var(--shadow);
}

.movie-card.is-hidden {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  min-height: 260px;
  background-image:
    linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.6)),
    var(--cover),
    linear-gradient(135deg, #fce7f3, #ddd6fe);
  background-size: cover;
  background-position: center;
}

.movie-card:hover .poster-link {
  filter: saturate(1.08);
}

.poster-type,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 26px;
  padding: 0 10px;
  color: white;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(6px);
}

.poster-type {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25);
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.card-body h3 {
  margin: 8px 0;
  font-size: 1.02rem;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--pink-dark);
}

.card-body p {
  display: -webkit-box;
  min-height: 3.15em;
  margin: 0 0 12px;
  overflow: hidden;
  color: #4b5563;
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 999px;
  color: var(--pink-dark);
  background: #fdf2f8;
  font-size: 0.78rem;
  font-weight: 650;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.watch-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  font-size: 0.86rem;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 24px;
  border-radius: 24px;
  color: white;
  background:
    radial-gradient(circle at 90% 18%, rgba(255, 255, 255, 0.28), transparent 7rem),
    linear-gradient(135deg, var(--pink), var(--purple) 58%, var(--blue));
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 120px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: white;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.rank-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-thumb {
  min-height: 74px;
  border-radius: 16px;
  background-image:
    linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.42)),
    var(--cover),
    linear-gradient(135deg, #fce7f3, #ddd6fe);
  background-size: cover;
  background-position: center;
}

.rank-title {
  margin: 0 0 5px;
  font-size: 1.1rem;
}

.rank-title a:hover {
  color: var(--pink-dark);
}

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

.detail-panel,
.article-block,
.side-panel {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.detail-panel {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background:
    radial-gradient(circle at 15% 15%, rgba(236, 72, 153, 0.28), transparent 20rem),
    #111827;
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  background: #111827;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: white;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.76)),
    var(--cover),
    linear-gradient(135deg, #f472b6, #9333ea);
  background-size: cover;
  background-position: center;
}

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

.play-overlay span {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 22px 46px rgba(236, 72, 153, 0.38);
}

.play-overlay span::before {
  content: "";
  display: block;
  margin-left: 6px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid white;
}

.detail-info {
  padding: 26px;
}

.detail-info h1 {
  margin-bottom: 12px;
}

.detail-info p {
  color: #4b5563;
  font-size: 1.03rem;
}

.article-block {
  margin-top: 24px;
  padding: 26px;
}

.article-block p {
  color: #374151;
  white-space: pre-line;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.side-panel h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.side-panel .movie-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  min-height: 132px;
}

.side-panel .poster-link {
  min-height: 132px;
}

.side-panel .card-body {
  padding: 12px;
}

.side-panel .badge-row,
.side-panel .card-actions,
.side-panel .card-meta {
  display: none;
}

.side-panel .card-body p {
  -webkit-line-clamp: 2;
  min-height: auto;
  margin-bottom: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a:hover {
  color: var(--pink-dark);
}

.empty-state {
  display: none;
  padding: 42px;
  border: 1px dashed rgba(236, 72, 153, 0.32);
  border-radius: 24px;
  color: var(--muted);
  background: white;
  text-align: center;
}

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

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, #f9fafb, #fff7fb);
}

.footer-ribbon {
  height: 4px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.2rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-inner h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

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

.footer-links a {
  color: #4b5563;
}

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

.footer-bottom {
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

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

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

  .hero-feature-card,
  .side-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-carousel,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding: 52px 0 80px;
  }

  .hero-feature-poster {
    min-height: 260px;
  }

  .hero-arrow {
    display: none;
  }

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

  .rank-item {
    grid-template-columns: 46px 88px 1fr;
  }

  .rank-action {
    grid-column: 3;
  }

  .filter-panel,
  .search-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .mobile-nav,
  .footer-inner,
  .footer-bottom,
  .page-shell,
  .hero-content,
  .content-section {
    width: min(100% - 22px, 1200px);
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

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

  .movie-grid {
    gap: 12px;
  }

  .poster-link {
    min-height: 210px;
  }

  .card-body {
    padding: 13px;
  }

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

  .rank-item {
    grid-template-columns: 42px 1fr;
  }

  .rank-thumb {
    display: none;
  }

  .rank-action {
    grid-column: 2;
  }

  .player-shell,
  .player-shell video {
    min-height: 240px;
  }
}
