:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --orange: #f97316;
  --amber: #f59e0b;
  --blue: #0ea5e9;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --violet: #8b5cf6;
  --slate: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --body: #fff7fb;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 16px 34px rgba(244, 63, 94, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate);
  background: linear-gradient(180deg, #fff7fb 0%, #fffaf5 42%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(18px);
}

.header-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.32);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: #374151;
  font-weight: 700;
}

.desktop-nav a {
  padding: 8px 0;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--rose);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.header-search input {
  width: 220px;
  border: 0;
  outline: none;
  background: transparent;
  padding: 8px 10px 8px 14px;
}

.header-search button,
.mobile-panel button,
.search-form button,
.primary-button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-panel button:hover,
.search-form button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.25);
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  font-weight: 800;
  color: #374151;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}

.main-section,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(135deg, #fb7185 0%, #f43f5e 40%, #f97316 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, var(--body));
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.78), rgba(244, 63, 94, 0.48), rgba(249, 115, 22, 0.52));
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 40px;
  color: #ffffff;
}

.hero-copy {
  padding: 72px 0 140px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.hero h1 {
  max-width: 780px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-panel {
  align-self: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-feature {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.hero-feature img {
  width: 150px;
  height: 210px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.hero-feature h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
}

.hero-feature p {
  margin: 0 0 14px;
  font-size: 15px;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.hero-dot {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 46px;
  background: #ffffff;
}

.feature-strip {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  margin: -88px auto 64px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.focus-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #111827;
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.focus-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 72px rgba(15, 23, 42, 0.22);
}

.focus-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.focus-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.82));
}

.focus-copy {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
}

.focus-copy strong {
  display: block;
  font-size: 18px;
  line-height: 1.28;
}

.focus-copy span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.section-block {
  padding: 32px 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  font-size: 22px;
}

.section-title h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-title p,
.page-hero p {
  margin: 5px 0 0;
  color: var(--muted);
}

.view-more {
  color: var(--rose);
  font-weight: 900;
}

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

.category-tile {
  min-height: 136px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(244, 63, 94, 0.22);
}

.category-tile strong {
  font-size: 20px;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.72);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.36);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
}

.movie-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.42s ease;
}

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

.duration-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movie-card-body {
  padding: 17px;
}

.card-meta-row,
.mini-meta,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.category-chip,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: var(--rose);
  background: #fff1f2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.32;
}

.movie-card h3 a:hover {
  color: var(--rose);
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
}

.movie-card-list {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.movie-card-list .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ranking-panel {
  padding: 22px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #6b7280;
  background: #f3f4f6;
  font-weight: 900;
}

.top-one,
.top-two,
.top-three {
  color: #ffffff;
}

.top-one {
  background: linear-gradient(135deg, #facc15, #f97316);
}

.top-two {
  background: linear-gradient(135deg, #d1d5db, #6b7280);
}

.top-three {
  background: linear-gradient(135deg, #fb923c, #b45309);
}

.ranking-row img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-copy {
  min-width: 0;
}

.ranking-copy strong,
.ranking-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.ranking-views {
  color: var(--rose);
  font-weight: 900;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.24), transparent 28%), linear-gradient(135deg, var(--rose), var(--orange));
  padding: 64px 0;
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero p,
.breadcrumb a,
.breadcrumb span {
  color: rgba(255, 255, 255, 0.84);
}

.breadcrumb {
  margin-bottom: 14px;
}

.filter-panel,
.search-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.filter-panel label,
.search-form label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select,
.search-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  padding: 10px 12px;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-form input:focus {
  border-color: rgba(244, 63, 94, 0.72);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  padding-top: 34px;
}

.player-card {
  overflow: hidden;
  background: #030712;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.video-wrap {
  position: relative;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.42);
  font-size: 30px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.detail-card,
.side-card {
  margin-top: 22px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.72);
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-title h1 {
  margin-bottom: 14px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.content-block h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.content-block p {
  margin: 0;
  color: #374151;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 112px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
}

.related-item strong,
.related-item span {
  display: block;
}

.related-item strong {
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-item span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 72px;
  color: #e5e7eb;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.9fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 20px;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.site-footer a {
  color: #9ca3af;
}

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

.footer-bottom {
  padding: 18px;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.empty-state {
  padding: 40px;
  color: var(--muted);
  background: #ffffff;
  border-radius: 24px;
  text-align: center;
}

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

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

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

  .hero-panel {
    margin-bottom: 110px;
  }

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

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

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .header-shell {
    min-height: 64px;
  }

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

  .hero,
  .hero-inner {
    min-height: 720px;
  }

  .hero-copy {
    padding: 44px 0 20px;
  }

  .hero-panel {
    margin-bottom: 112px;
  }

  .hero-feature {
    grid-template-columns: 110px 1fr;
  }

  .hero-feature img {
    width: 110px;
    height: 154px;
  }

  .feature-strip,
  .movie-grid,
  .category-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

  .ranking-row {
    grid-template-columns: 40px 76px minmax(0, 1fr);
  }

  .ranking-row img {
    width: 76px;
    height: 54px;
  }

  .ranking-views {
    display: none;
  }

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

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

  .related-item img {
    width: 94px;
    height: 64px;
  }
}
