:root {
  --pink: #f472b6;
  --pink-strong: #ec4899;
  --blue: #60a5fa;
  --blue-strong: #3b82f6;
  --purple: #a78bfa;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --card: rgba(255, 255, 255, 0.9);
  --line: rgba(226, 232, 240, 0.9);
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 34%, #eff6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(244, 114, 182, 0.12);
  box-shadow: 0 12px 35px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner,
.channel-inner,
.footer-inner,
.content-section,
.search-panel,
.ranking-band,
.page-hero,
.filter-section,
.ranking-list,
.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 12px 24px rgba(244, 114, 182, 0.28);
}

.brand-text,
.footer-brand span:last-child {
  font-size: 24px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--pink-strong), var(--blue-strong));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pink-strong);
  background: rgba(244, 114, 182, 0.12);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--pink-strong);
  background: rgba(244, 114, 182, 0.12);
  border-radius: 12px;
  padding: 8px 12px;
}

.channel-strip {
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  background: rgba(255, 255, 255, 0.62);
}

.channel-inner {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 0;
  color: #64748b;
  font-size: 14px;
  white-space: nowrap;
}

.channel-inner a:hover {
  color: var(--pink-strong);
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(120deg, #f9a8d4, #93c5fd);
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 560px;
}

.hero-slide.active {
  display: block;
}

.hero-backdrop,
.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-backdrop::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.25), transparent 28%), rgba(15, 23, 42, 0.12);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 48px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.6vw, 24px);
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-meta span,
.detail-cats a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span,
.detail-cats a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.secondary-button,
.search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button,
.search-box button {
  color: var(--pink-strong);
  background: #ffffff;
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
}

.primary-button:hover,
.secondary-button:hover,
.search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(31, 41, 55, 0.22);
}

.hero-cover {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.28);
  transform: rotate(2deg);
}

.hero-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.hero-cover span,
.play-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-strong), var(--blue-strong));
  box-shadow: 0 14px 26px rgba(31, 41, 55, 0.22);
}

.hero-cover span {
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  font-size: 28px;
  transform: translate(-50%, -50%);
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 28px;
  align-items: center;
  margin-top: -38px;
  position: relative;
  z-index: 5;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel p,
.section-heading p {
  margin: 0 0 4px;
  color: var(--pink-strong);
  font-weight: 800;
}

.search-panel h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input,
.filter-box input,
.filter-box select {
  width: 100%;
  border: 1px solid rgba(244, 114, 182, 0.18);
  outline: none;
  border-radius: 18px;
  padding: 13px 14px;
  color: var(--text);
  background: #ffffff;
}

.content-section {
  padding: 70px 0 0;
}

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

.section-heading a {
  color: var(--pink-strong);
  font-weight: 800;
}

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

.category-tile,
.category-card-large {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.94), rgba(219, 234, 254, 0.94));
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(31, 41, 55, 0.16);
}

.category-tile span,
.category-card-large span {
  color: var(--pink-strong);
  font-weight: 800;
}

.category-tile strong,
.category-card-large h2 {
  display: block;
  margin: 8px 0;
  font-size: 21px;
  line-height: 1.25;
}

.category-tile em,
.category-card-large p {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-link {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

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

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

.play-badge {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-region {
  position: absolute;
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 4px 8px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.86);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  min-height: 44px;
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.movie-meta {
  margin: 6px 0 0;
  color: var(--pink-strong);
  font-size: 13px;
  font-weight: 800;
}

.movie-desc {
  min-height: 42px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  color: #64748b;
  background: #f8fafc;
}

.ranking-band {
  margin-top: 70px;
  padding: 46px;
  border-radius: 34px;
  background: linear-gradient(135deg, #a78bfa, #f472b6 52%, #60a5fa);
  box-shadow: 0 30px 80px rgba(236, 72, 153, 0.2);
}

.light-heading,
.light-heading p,
.light-heading a {
  color: #ffffff;
}

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

.rank-item a {
  display: grid;
  grid-template-columns: 54px 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(31, 41, 55, 0.1);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink-strong), var(--blue-strong));
  font-weight: 900;
}

.rank-item img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

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

.rank-body strong {
  font-size: 16px;
}

.rank-body em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  position: relative;
  margin-top: 32px;
  padding: 70px 36px;
  overflow: hidden;
  color: #ffffff;
  border-radius: 36px;
  background: linear-gradient(135deg, #f472b6, #a78bfa 52%, #60a5fa);
  box-shadow: 0 26px 70px rgba(244, 114, 182, 0.22);
}

.page-hero h1 {
  max-width: 800px;
}

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

.filter-section {
  display: flex;
  gap: 14px;
  align-items: end;
  padding-top: 32px;
}

.sticky-filter {
  position: sticky;
  top: 118px;
  z-index: 8;
  padding-bottom: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.82));
  backdrop-filter: blur(16px);
}

.filter-box {
  display: grid;
  gap: 8px;
  min-width: 220px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wide-filter {
  flex: 1;
}

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

.category-card-large .mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-card-large .mini-links a {
  padding: 6px 10px;
  color: var(--pink-strong);
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.detail-layout {
  width: 100%;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: #ffffff;
}

.detail-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 76px rgba(15, 23, 42, 0.3);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.detail-one-line {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

.detail-meta {
  margin-top: 18px;
}

.detail-meta span {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.18);
}

.detail-cats {
  margin-top: 16px;
}

.player-section,
.detail-body,
.related-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.player-section {
  margin-top: -60px;
  position: relative;
  z-index: 4;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  cursor: pointer;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-strong), var(--blue-strong));
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.34);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.player-start span {
  font-size: 24px;
}

.player-shell.is-playing .player-start {
  display: none;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.story-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: #475569;
  font-size: 16px;
}

.site-footer {
  margin-top: 76px;
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 46px 0;
}

.footer-about p,
.site-footer li {
  color: var(--muted);
  font-size: 14px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

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

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #64748b;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.empty-state {
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

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

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

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

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero-content,
  .detail-content,
  .search-panel,
  .detail-body,
  .footer-inner,
  .category-list-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 70px 0 96px;
  }

  .hero-cover {
    width: min(280px, 80vw);
    margin: 0 auto;
  }

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

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

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

  .detail-content {
    padding: 58px 0 110px;
  }

  .detail-cover {
    width: min(260px, 72vw);
  }

  .filter-section {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-box {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .brand-text,
  .footer-brand span:last-child {
    font-size: 20px;
  }

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

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

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

  .search-box {
    flex-direction: column;
  }

  .ranking-band {
    padding: 26px;
  }

  .movie-info h3 {
    font-size: 15px;
  }

  .movie-desc {
    display: none;
  }
}
