:root {
  --rose: #f43f5e;
  --orange: #f97316;
  --pink-soft: #fff1f2;
  --orange-soft: #fff7ed;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f1d4d8;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(244, 63, 94, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 48%, #fdf2f8 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(244, 63, 94, 0.14);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
  font-size: 15px;
}

.brand-text,
.footer-brand {
  background: linear-gradient(90deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
  transform: translateY(-1px);
}

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

.top-search input,
.mobile-search input,
.search-hero input {
  border: 1px solid #f4bdc5;
  outline: none;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.top-search input {
  width: 220px;
  padding: 11px 16px;
}

.top-search button,
.mobile-search button,
.search-hero button,
.primary-btn,
.secondary-btn,
.filter-btn,
.category-card .enter,
.player-start,
.page-btn {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.top-search button,
.mobile-search button,
.search-hero button,
.primary-btn,
.player-start {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.25);
}

.top-search button {
  padding: 11px 18px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
}

.secondary-btn {
  color: var(--rose);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.top-search button:hover,
.mobile-search button:hover,
.search-hero button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.player-start:hover,
.category-card:hover .enter,
.page-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.3);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--rose);
  background: #fff1f2;
  font-size: 22px;
}

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

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

.mobile-search {
  margin: 12px 0;
}

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

.mobile-search button {
  padding: 12px 18px;
}

.mobile-link {
  display: block;
  padding: 13px 14px;
  border-radius: 16px;
  font-weight: 800;
  color: #4b5563;
}

.mobile-link:hover {
  color: var(--rose);
  background: #fff1f2;
}

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

.hero-track {
  position: relative;
  height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.7s ease;
  background-position: center;
  background-size: cover;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58) 45%, rgba(17, 24, 39, 0.2)), linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.04));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  color: #fff;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.25);
}

.hero h1 {
  max-width: 850px;
  margin: 22px 0 18px;
  font-size: clamp(36px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags span,
.card-tags span,
.inline-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: #9f1239;
  background: rgba(255, 241, 242, 0.94);
  border: 1px solid rgba(244, 63, 94, 0.14);
  font-size: 13px;
  font-weight: 800;
}

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

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

.hero-dot.active {
  width: 38px;
  background: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
}

.section {
  margin-bottom: 54px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-title p,
.page-title p,
.detail-title p,
.category-card p,
.empty-state p {
  color: var(--muted);
  line-height: 1.75;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  border: 1px solid rgba(244, 63, 94, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -45px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(249, 115, 22, 0.2));
}

.category-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 70px rgba(244, 63, 94, 0.2);
}

.category-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p,
.category-card .enter {
  position: relative;
  z-index: 2;
}

.category-card .enter {
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 16px;
  color: var(--rose);
  background: #fff1f2;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(244, 63, 94, 0.38);
  box-shadow: 0 28px 58px rgba(244, 63, 94, 0.22);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.6), rgba(17, 24, 39, 0.02) 55%);
  opacity: 0.78;
}

.corner-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  display: block;
  padding: 14px 14px 16px;
}

.card-body strong {
  display: block;
  margin-bottom: 7px;
  overflow: hidden;
  color: #111827;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
  color: var(--rose);
}

.card-desc {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: block;
  margin-top: 10px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 58px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(244, 63, 94, 0.4);
}

.rank-num {
  color: var(--rose);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
}

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

.rank-info strong {
  margin-bottom: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-score {
  color: #f59e0b;
  font-weight: 900;
}

.page-hero,
.search-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 42px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 242, 0.9));
  box-shadow: var(--shadow);
  border: 1px solid rgba(244, 63, 94, 0.12);
}

.page-hero::after,
.search-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(249, 115, 22, 0.16));
}

.page-title,
.search-hero .page-title,
.detail-title {
  position: relative;
  z-index: 2;
}

.channel-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.channel-strip a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(244, 63, 94, 0.12);
}

.channel-strip img {
  width: 70px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.filter-btn,
.page-btn {
  padding: 10px 16px;
  color: #4b5563;
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.14);
}

.filter-btn.active,
.page-btn.active {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.22);
}

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

.player-card {
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.35);
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  color: #fff;
  text-align: center;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.45));
}

.player-cover.hidden {
  display: none;
}

.player-cover h2,
.player-cover button,
.player-cover span {
  position: relative;
  z-index: 2;
}

.player-cover h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 42px);
}

.player-start {
  width: 76px;
  height: 76px;
  font-size: 26px;
}

.player-message {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.detail-panel,
.info-card,
.side-card,
.text-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.1);
}

.detail-cover {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 24px;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

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

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #4b5563;
  font-weight: 700;
}

.meta-row span:first-child {
  color: #9ca3af;
}

.detail-tags,
.inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.text-card {
  margin-top: 24px;
}

.text-card h2,
.side-card h2,
.detail-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-card p,
.detail-panel p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #6b7280;
  font-weight: 700;
}

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

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

.search-hero form {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 780px;
  margin-top: 24px;
}

.search-hero input {
  padding: 16px 20px;
  font-size: 16px;
}

.search-hero button {
  padding: 0 26px;
}

.empty-state {
  padding: 40px;
  border-radius: 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(244, 63, 94, 0.12);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

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

.site-footer {
  margin-top: 44px;
  padding: 42px 24px 24px;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 32px;
}

.footer-inner p {
  max-width: 620px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #4b5563;
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.12);
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

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

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

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

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

  .hero,
  .hero-track {
    min-height: 560px;
    height: 560px;
  }

  .hero-content {
    padding-top: 95px;
  }

  .category-grid,
  .channel-strip,
  .rank-layout,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero,
  .hero-track {
    min-height: 520px;
    height: 520px;
  }

  .hero-content {
    padding: 78px 18px 62px;
  }

  .hero-arrow {
    display: none;
  }

  .container {
    padding: 30px 16px;
  }

  .page-hero,
  .search-hero,
  .detail-hero {
    padding: 28px 20px;
    border-radius: 26px;
  }

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

  .card-body {
    padding: 12px;
  }

  .search-hero form {
    grid-template-columns: 1fr;
  }

  .search-hero button {
    min-height: 48px;
  }

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

  .rank-score {
    display: none;
  }
}
