:root {
  color-scheme: light;
  --page: #fff7fb;
  --surface: #ffffff;
  --surface-strong: #fff;
  --text: #172033;
  --muted: #667085;
  --line: rgba(226, 232, 240, 0.92);
  --pink: #ec4899;
  --pink-dark: #db2777;
  --sky: #38bdf8;
  --emerald: #34d399;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(236, 72, 153, 0.16);
  --soft-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% -12%, rgba(236, 72, 153, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 2%, rgba(56, 189, 248, 0.14), transparent 26rem),
    linear-gradient(180deg, #fff7fb 0%, #f8fbff 44%, #ffffff 100%);
  color: var(--text);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(226, 232, 240, 0.76);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--sky) 58%, var(--emerald));
  box-shadow: 0 14px 26px rgba(236, 72, 153, 0.25);
  font-size: 15px;
}

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

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

.nav-link,
.mobile-link {
  color: #475467;
  font-weight: 700;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-link {
  padding: 9px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--pink-dark);
  background: rgba(236, 72, 153, 0.09);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: #f1f5f9;
}

.header-search input,
.mobile-search input,
.search-box input,
.filter-input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

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

.header-search button,
.mobile-search button,
.search-box button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 9px 16px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--sky));
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--sky));
}

.mobile-panel {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 18px;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 20px;
  background: #f1f5f9;
}

.mobile-search input {
  flex: 1;
  padding: 10px 12px;
}

.mobile-nav {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.mobile-link {
  padding: 12px 14px;
}

.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 22px 68px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  border-radius: 36px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(111, 14, 76, 0.86) 48%, rgba(13, 117, 153, 0.82)),
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.46), transparent 26rem);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -35% -10% auto auto;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 60%);
}

.hero-stage {
  position: relative;
  z-index: 1;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 48px;
  min-height: 580px;
  padding: 58px;
}

.hero-slide.is-active {
  display: grid;
  animation: heroFade .45s ease both;
}

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

.eyebrow,
.section-kicker,
.card-meta,
.detail-kicker {
  margin: 0;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f9a8d4;
}

.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -0.07em;
  max-width: 760px;
}

.hero-text {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags {
  margin: 26px 0 30px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 12px;
  color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.2);
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  box-shadow: 0 16px 36px rgba(236,72,153,.32);
}

.secondary-button,
.ghost-button {
  color: var(--text);
  background: rgba(255,255,255,.92);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  isolation: isolate;
  border-radius: 32px;
  overflow: hidden;
  min-height: 430px;
  box-shadow: 0 32px 80px rgba(0,0,0,.34);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(236,72,153,.22), rgba(56,189,248,.22));
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0,0,0,.55));
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 58px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot,
.hero-arrow {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  transition: background .2s ease, transform .2s ease;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  padding: 0;
}

.hero-dot.is-active,
.hero-dot:hover,
.hero-arrow:hover {
  background: #fff;
  color: var(--pink);
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 18px;
}

.quick-search {
  margin-top: 22px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.search-box {
  display: flex;
  gap: 10px;
  padding: 7px;
  border-radius: 999px;
  background: #fff;
}

.search-box input {
  flex: 1;
  padding: 13px 18px;
  font-size: 16px;
}

.search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.search-hints a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(236,72,153,.09);
  color: var(--pink-dark);
  font-weight: 800;
}

.section {
  margin-top: 56px;
}

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

.section-heading h2,
.page-title h1,
.category-hero h1,
.detail-title h1 {
  margin: 4px 0 0;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

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

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff, #fff7fb);
  border: 1px solid rgba(236,72,153,.12);
  box-shadow: var(--soft-shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(236,72,153,.18), rgba(56,189,248,.14));
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid rgba(226,232,240,.82);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(236,72,153,.26);
  box-shadow: 0 24px 62px rgba(236,72,153,.17);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236,72,153,.16), rgba(56,189,248,.16));
}

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

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

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

.score-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.score-pill {
  right: 12px;
  background: rgba(0,0,0,.62);
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--amber), var(--pink));
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pink);
  background: rgba(255,255,255,.9);
  transform: translate(-50%, -50%) scale(.72);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}

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

.card-body {
  padding: 17px;
}

.card-title {
  margin: 6px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

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

.card-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 13px;
  color: var(--muted);
  line-height: 1.65;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row span,
.detail-tags span {
  padding: 5px 9px;
  color: var(--pink-dark);
  background: rgba(236,72,153,.09);
  font-size: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(226,232,240,.86);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15,23,42,.05);
}

.rank-no {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--sky));
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 900;
}

.rank-info p,
.rank-hot {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.page-title,
.category-hero {
  padding: 44px;
  border-radius: 34px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
}

.page-title h1,
.category-hero h1 {
  font-size: clamp(34px, 4vw, 56px);
}

.page-title p,
.category-hero p {
  max-width: 860px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0 20px;
  padding: 12px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(226,232,240,.86);
}

.filter-input {
  min-width: 280px;
  flex: 1;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
}

.filter-chip {
  border: 0;
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  background: #f8fafc;
}

.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--sky));
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 34px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(17,24,39,.94), rgba(112,26,117,.86)),
    radial-gradient(circle at 92% 12%, rgba(56,189,248,.42), transparent 22rem);
  color: #fff;
  box-shadow: var(--shadow);
}

.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 520px;
  box-shadow: 0 26px 64px rgba(0,0,0,.32);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(236,72,153,.2), rgba(56,189,248,.2));
}

.detail-title h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.detail-title p {
  color: rgba(255,255,255,.82);
  font-size: 19px;
  line-height: 1.8;
}

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

.meta-box {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}

.meta-box span {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

.meta-box strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.player-section {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}

.player-card,
.detail-panel,
.related-panel {
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(226,232,240,.86);
  box-shadow: var(--soft-shadow);
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2,6,23,.08), rgba(2,6,23,.6));
  pointer-events: auto;
  transition: opacity .22s ease, visibility .22s ease;
}

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

.big-play {
  border: 0;
  cursor: pointer;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 32px;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  box-shadow: 0 20px 60px rgba(236,72,153,.38);
}

.player-caption {
  padding: 22px;
}

.player-caption h2,
.detail-panel h2,
.related-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.player-caption p,
.detail-panel p {
  color: var(--muted);
  line-height: 1.85;
}

.detail-panel {
  padding: 24px;
}

.related-panel {
  padding: 20px;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 18px;
  transition: background .2s ease, transform .2s ease;
}

.mini-card:hover {
  background: rgba(236,72,153,.08);
  transform: translateX(2px);
}

.mini-card img {
  width: 82px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  background: #f1f5f9;
}

.mini-card span {
  font-weight: 900;
  line-height: 1.35;
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

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

.search-results {
  margin-top: 24px;
}

.empty-note {
  display: none;
  padding: 34px;
  border-radius: 28px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid rgba(226,232,240,.86);
}

.site-footer {
  margin-top: 50px;
  background: #111827;
  color: rgba(255,255,255,.84);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 22px;
}

.footer-inner strong {
  color: #fff;
  font-size: 22px;
}

.footer-inner p {
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.copyright {
  margin: 0;
}

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

  .player-section {
    grid-template-columns: 1fr;
  }
}

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

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-slide,
  .detail-hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero,
  .hero-slide {
    min-height: auto;
  }

  .hero-poster,
  .hero-poster img,
  .detail-cover,
  .detail-cover img {
    min-height: 320px;
  }

  .hero-controls {
    left: 28px;
    bottom: 22px;
  }

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

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

@media (max-width: 560px) {
  .page-main {
    padding: 22px 14px 46px;
  }

  .header-inner {
    padding: 0 14px;
  }

  .brand-name {
    font-size: 19px;
  }

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

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

  .rank-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

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

  .page-title,
  .category-hero,
  .detail-hero {
    padding: 24px;
    border-radius: 26px;
  }
}
