* {
  box-sizing: border-box;
}

:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #a855f7;
  --blue: #3b82f6;
  --yellow: #eab308;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 25px rgba(17, 24, 39, 0.08);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.12), transparent 28rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 26rem),
    linear-gradient(135deg, #fdf2f8 0%, #faf5ff 45%, #eff6ff 100%);
}

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

img,
video {
  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: linear-gradient(90deg, #f472b6, #c084fc, #93c5fd);
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.22);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--white);
  font-weight: 650;
}

.main-nav a,
.nav-dropdown > a {
  position: relative;
  padding: 26px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff7fb;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: 0;
  top: 72px;
  width: 190px;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #374151;
}

.dropdown-panel a:hover {
  color: var(--pink-dark);
  background: #fdf2f8;
}

.header-search {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.header-search input {
  width: 210px;
  border: 0;
  outline: none;
  padding: 10px 14px;
  color: var(--white);
  background: transparent;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.84);
}

.header-search button {
  border: 0;
  padding: 10px 16px;
  color: var(--pink-dark);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.hero {
  position: relative;
  height: min(620px, 80vh);
  min-height: 520px;
  overflow: hidden;
  color: var(--white);
}

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

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

.hero-image,
.hero-image img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image img {
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.64), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  padding: 64px 0;
}

.hero-badge,
.section-kicker,
.category-pill,
.duration-pill,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-badge {
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 16px;
  background: var(--pink);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 24px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.hero-tags,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  margin-bottom: 28px;
}

.hero-tags .tag {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.tag {
  padding: 5px 10px;
  color: var(--pink-dark);
  font-size: 12px;
  background: #fdf2f8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 38px rgba(168, 85, 247, 0.34);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

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

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dot.is-active {
  width: 56px;
  background: var(--white);
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(90deg, #fce7f3, #f3e8ff, #dbeafe);
}

.section-white {
  background: rgba(255, 255, 255, 0.72);
}

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

.section-head h2,
.page-hero h1,
.detail-main h2,
.sidebar-card h2 {
  margin: 0;
  color: #1f2937;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-head p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  flex: none;
  color: var(--pink-dark);
  font-weight: 800;
}

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

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

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

.video-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
}

.video-thumb img,
.large-cover img,
.compact-card img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.video-card:hover .video-thumb img,
.video-card:hover .large-cover img,
.compact-card:hover img {
  transform: scale(1.08);
}

.duration-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: var(--white);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.72);
}

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

.video-card-body h3 {
  margin: 10px 0 8px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.video-card:hover h3,
.compact-card:hover h3 {
  color: var(--pink-dark);
}

.video-card-body p,
.compact-card p,
.sidebar-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.video-card-body p {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 13px;
}

.video-card-horizontal {
  display: flex;
  gap: 16px;
  min-height: 170px;
}

.horizontal-thumb {
  width: 235px;
  aspect-ratio: auto;
  flex: none;
}

.horizontal-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-card-large {
  border-radius: 28px;
}

.large-cover {
  position: relative;
  height: 310px;
  overflow: hidden;
}

.large-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 58%);
}

.large-cover h3 {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  margin: 0;
  color: var(--white);
  font-size: 25px;
  line-height: 1.24;
}

.category-pill {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 6px 11px;
  color: var(--white);
  font-size: 12px;
  background: var(--pink);
}

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

.category-card {
  display: block;
  min-height: 170px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fce7f3, #f3e8ff);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: linear-gradient(135deg, #fbcfe8, #e9d5ff);
  box-shadow: var(--shadow);
}

.category-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--pink);
  font-size: 38px;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 21px;
}

.category-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
}

.page-hero {
  padding: 58px 0 34px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.filter-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 26px 0 32px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.filter-bar input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  padding: 0 18px;
  background: var(--white);
}

.filter-bar input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--pink-dark);
  font-weight: 700;
}

.detail-hero {
  padding: 28px 0 70px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.28);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at center, rgba(236, 72, 153, 0.24), transparent 18rem);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button-core {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 18px 45px rgba(236, 72, 153, 0.35);
  font-size: 18px;
  font-weight: 850;
}

.play-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.detail-title-block {
  margin-top: 28px;
}

.detail-title-block h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  color: #4b5563;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(229, 231, 235, 0.75);
}

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

.detail-main,
.sidebar-card {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.detail-main {
  padding: 30px;
}

.detail-main h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 25px;
}

.detail-main h2:first-child {
  margin-top: 0;
}

.detail-main p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-line;
}

.info-list {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px 16px;
  margin-top: 14px;
}

.info-list dt {
  color: #6b7280;
  font-weight: 750;
}

.info-list dd {
  margin: 0;
  color: #1f2937;
}

.sidebar-card {
  padding: 18px;
}

.sidebar-card h2 {
  margin: 6px 0 16px;
  font-size: 22px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  background: #f3f4f6;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: #f9fafb;
}

.compact-card img {
  height: 68px;
  border-radius: 12px;
}

.compact-card h3 {
  margin: 0 0 4px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.35;
}

.compact-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.compact-card span {
  display: block;
  margin-top: 5px;
  color: #9ca3af;
  font-size: 12px;
}

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

.empty-state {
  padding: 34px;
  border-radius: 24px;
  color: #6b7280;
  text-align: center;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
}

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

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

.footer-logo {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #f9a8d4;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  text-align: center;
  font-size: 13px;
}

[data-card].is-filter-hidden {
  display: none;
}

@media (max-width: 980px) {
  .nav-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 84px;
    display: none;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f472b6, #a855f7, #60a5fa);
    box-shadow: var(--shadow);
  }

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

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

  .main-nav {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
  }

  .main-nav a,
  .nav-dropdown > a {
    display: block;
    padding: 10px 0;
  }

  .dropdown-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .header-search input {
    width: 100%;
  }

  .hero {
    min-height: 570px;
  }

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

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

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

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

  .site-logo {
    font-size: 18px;
  }

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

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-copy {
    padding-top: 86px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

  .section-link {
    display: inline-block;
    margin-top: 12px;
  }

  .video-grid,
  .video-grid-three,
  .video-grid-two,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .video-card-horizontal {
    display: block;
  }

  .horizontal-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .large-cover {
    height: 260px;
  }

  .filter-bar {
    display: block;
  }

  .detail-main {
    padding: 22px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .play-button-core {
    padding: 13px 18px;
    font-size: 16px;
  }

  .play-icon {
    width: 40px;
    height: 40px;
  }
}
