:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #f97316;
  --yellow: #fde047;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: rgba(17, 24, 39, 0.10);
  --shadow: 0 20px 60px rgba(244, 63, 94, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 42%, #fdf2f8 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: 80;
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 12px 34px rgba(225, 29, 72, 0.30);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 26px;
}

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

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--rose);
  background: #fff;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.26);
}

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

.main-nav a {
  font-weight: 700;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav .is-active {
  color: var(--yellow);
  opacity: 1;
}

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

.top-search input,
.mobile-search input,
.hero-search input,
.quick-search input,
.filter-bar input {
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.top-search input {
  width: 220px;
  color: #fff;
  background: rgba(255, 255, 255, 0.20);
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.top-search button,
.mobile-search button,
.hero-search button,
.quick-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--rose);
  font-weight: 900;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.quick-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-links a {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background:
    linear-gradient(110deg, rgba(15, 23, 42, 0.94), rgba(190, 18, 60, 0.70), rgba(251, 146, 60, 0.42)),
    var(--hero-image) center / cover no-repeat;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 28%, rgba(253, 224, 71, 0.24), transparent 32%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.46));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 54px;
  align-items: center;
  padding: 92px 0;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-copy h1 {
  font-size: clamp(48px, 7vw, 86px);
  margin-bottom: 18px;
}

.hero-copy h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin: 0 0 18px;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.75;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fff7ad;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.primary-btn {
  color: var(--rose);
  background: #fff;
  box-shadow: 0 18px 42px rgba(255, 255, 255, 0.22);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.hero-poster {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.82), rgba(249, 115, 22, 0.72));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border-radius: 18px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(14px);
}

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

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

.hero-dots button.is-active {
  background: #fff;
}

.quick-search {
  position: relative;
  z-index: 8;
  margin-top: -46px;
}

.quick-search-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.quick-search p {
  margin: 0;
  color: var(--muted);
}

.quick-search form,
.hero-search {
  display: flex;
  gap: 12px;
}

.quick-search input,
.hero-search input {
  flex: 1;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.quick-search button,
.hero-search button {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

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

.soft-bg {
  background: rgba(255, 255, 255, 0.44);
}

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

.section-heading.compact {
  align-items: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--rose);
}

.section-link {
  color: var(--rose);
  font-weight: 900;
}

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

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

.category-card {
  display: block;
  min-height: 160px;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(253, 224, 71, 0.34), transparent 34%),
    linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 16px 44px rgba(244, 63, 94, 0.20);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card.large {
  min-height: 220px;
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.category-card strong {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--rose);
  background: #fff;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 56px rgba(244, 63, 94, 0.22);
}

.cover-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(253, 224, 71, 0.26), transparent 36%),
    linear-gradient(135deg, #be123c, #f97316);
}

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

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

.pill,
.cover-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

.cover-pill {
  position: absolute;
  top: 12px;
  left: 12px;
}

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

.movie-title {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.movie-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff1f2;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.movie-card-wide .cover-wrap {
  aspect-ratio: auto;
  min-height: 210px;
}

.movie-card-wide .movie-card-body {
  padding: 24px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 850;
  background: #fff1f2;
}

.wide-list {
  display: grid;
  gap: 18px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.ranking-panel,
.info-card,
.player-card,
.article-block {
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.10);
}

.sticky-panel {
  position: sticky;
  top: 96px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #ffe4e6;
  transform: translateX(4px);
}

.rank-num,
.rank-dot {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.rank-title {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: var(--rose);
  font-weight: 950;
}

.page-hero,
.detail-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 16% 0%, rgba(253, 224, 71, 0.24), transparent 34%),
    linear-gradient(115deg, #be123c, #ec4899 50%, #f97316);
}

.page-hero .container {
  padding: 78px 0;
}

.page-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 72px);
}

.breadcrumb,
.breadcrumb-row a {
  display: inline-flex;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.filter-bar input {
  flex: 1;
  box-shadow: inset 0 0 0 1px var(--line);
}

.filter-hint,
.search-status {
  color: var(--muted);
  font-weight: 800;
}

.search-status {
  margin-bottom: 22px;
}

.hero-search {
  max-width: 720px;
}

.detail-hero {
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(15, 23, 42, 0.94), rgba(190, 18, 60, 0.72), rgba(249, 115, 22, 0.50)),
    var(--hero-image) center / cover no-repeat;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.62));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 74px 0;
}

.detail-poster {
  min-height: 430px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.detail-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 74px);
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.88);
}

.detail-meta {
  margin-bottom: 26px;
}

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #020617;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.30), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.play-overlay.is-hidden {
  display: none;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: var(--rose);
  font-size: 32px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(255, 255, 255, 0.22);
}

.play-overlay strong {
  font-size: 20px;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  border-radius: 16px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
}

.player-message.is-visible {
  display: block;
}

.article-block h2,
.info-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 950;
}

.article-block p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.info-card dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 14px;
  margin: 0 0 20px;
}

.info-card dt {
  color: var(--muted);
  font-weight: 900;
}

.info-card dd {
  margin: 0;
  font-weight: 850;
}

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

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

.site-footer {
  color: #cbd5e1;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding: 54px 0 34px;
}

.footer-brand {
  margin-bottom: 16px;
  color: #fff;
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  line-height: 1.8;
}

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

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 22px 0 28px;
}

.movie-card.is-hidden {
  display: none;
}

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

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

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

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

  .sticky-panel {
    position: static;
  }
}

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

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

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

  .hero {
    min-height: 760px;
  }

  .hero-content,
  .detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .quick-search-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-search form,
  .hero-search,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

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

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

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

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy h2,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .movie-grid,
  .movie-grid.dense,
  .category-grid,
  .category-grid.overview {
    grid-template-columns: 1fr;
  }

  .detail-poster,
  .detail-poster img {
    min-height: 360px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
