/* Static movie site styles based on the uploaded rose/pink Tailwind movie layout. */
:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #db2777;
  --blue: #2563eb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body {
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 46%, #f9fafb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(244, 63, 94, 0.32);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.nav-link,
.desktop-nav a {
  color: var(--gray-700);
  transition: color 0.2s ease;
}

.nav-link:hover,
.desktop-nav a:hover,
.nav-link.is-active {
  color: var(--rose);
}

.header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #fff;
}

.header-search input {
  width: 210px;
  padding: 9px 14px;
  outline: none;
}

.header-search button,
.big-search button {
  padding: 9px 16px;
  color: #fff;
  background: var(--rose);
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-100);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 14px 16px 18px;
  background: #fff;
}

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

.mobile-panel form {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  margin-bottom: 12px;
}

.mobile-panel input {
  flex: 1;
  padding: 10px 14px;
  outline: none;
}

.mobile-panel button {
  padding: 10px 14px;
  color: #fff;
  background: var(--rose);
  font-weight: 700;
}

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

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--gray-700);
  background: var(--gray-50);
}

.mobile-panel a.is-active {
  color: var(--rose);
  background: #fff1f2;
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-image.is-missing,
.category-card img.is-missing {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 35%, rgba(244, 63, 94, 0.42), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.12) 100%);
}

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

.hero-copy {
  max-width: 670px;
  color: #fff;
}

.hero-badges,
.hero-meta,
.hero-actions,
.detail-meta,
.detail-tags,
.movie-tags,
.rank-tags,
.toolbar-actions,
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-badges span,
.section-eyebrow,
.tag-chip,
.tag-pill,
.rank-tags span,
.chip-cloud span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.hero-badges span {
  padding: 6px 12px;
  background: rgba(244, 63, 94, 0.72);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1 {
  margin-top: 18px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 640px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 0 24px;
  color: #fff;
  background: var(--rose);
  box-shadow: 0 16px 30px rgba(244, 63, 94, 0.34);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--rose-dark);
}

.ghost-button {
  padding: 0 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.text-link {
  color: var(--rose);
}

.full-button {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.intro-band {
  padding: 34px 0;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
}

.intro-grid h2,
.section-heading h2,
.page-hero h1,
.detail-card h1 {
  font-weight: 900;
  letter-spacing: -0.03em;
}

.intro-grid h2,
.section-heading h2 {
  font-size: clamp(26px, 4vw, 36px);
}

.intro-grid p,
.section-heading p,
.page-hero p {
  margin-top: 10px;
  color: var(--gray-500);
  line-height: 1.8;
}

.section-eyebrow {
  margin-bottom: 8px;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 900;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-row span {
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: var(--gray-50);
}

.stat-row strong,
.stat-row em {
  display: block;
}

.stat-row strong {
  font-size: 28px;
  color: var(--rose);
}

.stat-row em {
  color: var(--gray-500);
  font-style: normal;
}

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

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

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.movie-card-horizontal {
  flex-direction: row;
}

.movie-card-horizontal .poster-wrap {
  width: 42%;
  min-height: 160px;
  aspect-ratio: auto;
}

.poster-wrap,
.rank-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #831843);
}

.poster-wrap {
  aspect-ratio: 2 / 3;
}

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

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

.poster-gradient,
.poster-play {
  position: absolute;
  inset: 0;
}

.poster-gradient {
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-play {
  display: flex;
  align-items: end;
  justify-content: center;
  padding-bottom: 18px;
  color: #fff;
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-gradient,
.movie-card:hover .poster-play {
  opacity: 1;
}

.poster-wrap.no-image::before,
.rank-cover.no-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 20%, rgba(244, 63, 94, 0.52), transparent 34%),
    linear-gradient(135deg, #111827, #4c0519);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.movie-title {
  color: var(--gray-900);
  font-weight: 900;
  line-height: 1.35;
}

.movie-meta {
  color: var(--gray-500);
  font-size: 13px;
}

.movie-desc {
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.55;
}

.movie-tags {
  margin-top: auto;
}

.tag-chip {
  padding: 4px 8px;
  color: #9f1239;
  background: #ffe4e6;
  font-size: 12px;
  font-weight: 700;
}

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

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

.category-card {
  position: relative;
  display: block;
  min-height: 190px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #111827, #831843);
  box-shadow: var(--shadow);
}

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

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.82));
}

.category-card-body {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  color: #fff;
}

.category-card strong {
  font-size: 22px;
  font-weight: 900;
}

.category-card em {
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.category-card span span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.toolbar-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  color: var(--gray-500);
}

.toolbar-search input {
  flex: 1;
  min-width: 180px;
  padding: 11px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: none;
}

.toolbar-search input:focus {
  border-color: var(--rose);
}

.toolbar-actions button {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 800;
}

.toolbar-actions button.is-active {
  color: #fff;
  background: var(--rose);
}

.page-hero {
  padding: 72px 0;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 63, 94, 0.46), transparent 30%),
    linear-gradient(135deg, #111827 0%, #4c0519 45%, #be123c 100%);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(36px, 7vw, 58px);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

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

.taxonomy-grid > div {
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.taxonomy-grid h3 {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 900;
}

.chip-cloud span {
  padding: 8px 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 14px;
}

.chip-cloud em {
  margin-left: 6px;
  color: var(--rose);
  font-style: normal;
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 92px minmax(0, 1fr) 76px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.rank-cover {
  width: 92px;
  height: 122px;
  border-radius: 14px;
}

.rank-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rank-main strong {
  font-size: 20px;
  font-weight: 900;
}

.rank-main em,
.rank-main > span {
  color: var(--gray-500);
  font-style: normal;
  line-height: 1.55;
}

.rank-tags span {
  padding: 3px 8px;
  color: #9f1239;
  background: #ffe4e6;
  font-size: 12px;
}

.rank-score {
  display: grid;
  justify-items: center;
  color: var(--rose);
  font-size: 24px;
  font-weight: 900;
}

.rank-score small {
  color: var(--gray-500);
  font-size: 12px;
}

.big-search {
  display: flex;
  max-width: 720px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  color: #fff;
  outline: none;
}

.big-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.video-page-wrap {
  padding: 30px 0 10px;
  background: var(--gray-50);
}

.video-page-wrap .breadcrumb {
  color: var(--gray-500);
}

.video-page-wrap .breadcrumb a:hover {
  color: var(--rose);
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #050505;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #050505;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.34), rgba(0, 0, 0, 0.3));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.36);
  font-size: 32px;
}

.player-card.is-playing .player-overlay {
  visibility: hidden;
  opacity: 0;
}

.player-loading,
.player-error {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.56);
  font-size: 13px;
}

.player-error {
  background: rgba(225, 29, 72, 0.9);
}

.detail-card,
.side-card {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.detail-card h1 {
  margin-bottom: 14px;
  font-size: clamp(28px, 5vw, 42px);
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 700;
}

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

.tag-pill {
  padding: 7px 11px;
  color: #9f1239;
  background: #ffe4e6;
  font-size: 13px;
  font-weight: 700;
}

.genre-pill {
  color: #1d4ed8;
  background: #dbeafe;
}

.one-line,
.detail-block p {
  color: var(--gray-700);
  line-height: 1.9;
}

.detail-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.detail-block h2,
.side-card h2 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

.sticky-side {
  position: sticky;
  top: 92px;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.side-card div,
.side-card dl {
  color: var(--gray-700);
}

.side-card dt {
  color: var(--gray-500);
  font-size: 13px;
}

.side-card dd {
  margin: 0;
  font-weight: 800;
}

.site-footer {
  margin-top: 30px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 48px 0;
}

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

.site-footer p,
.site-footer li {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h3 {
  margin-bottom: 14px;
  color: #fff;
  font-weight: 900;
}

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

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

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

[hidden] {
  display: none !important;
}

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

  .header-search {
    margin-left: auto;
  }

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

  .horizontal-grid,
  .video-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .header-search,
  .desktop-nav {
    display: none;
  }

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

  .hero-slider {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

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

  .hero-desc {
    font-size: 16px;
  }

  .intro-grid,
  .stat-row,
  .taxonomy-grid,
  .category-grid,
  .category-grid-large {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .listing-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-search {
    align-items: stretch;
    flex-direction: column;
  }

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

  .movie-card-horizontal {
    flex-direction: column;
  }

  .movie-card-horizontal .poster-wrap {
    width: 100%;
    min-height: 0;
    aspect-ratio: 2 / 3;
  }

  .rank-row {
    grid-template-columns: 44px 72px minmax(0, 1fr);
  }

  .rank-cover {
    width: 72px;
    height: 96px;
  }

  .rank-score {
    display: none;
  }

  .big-search {
    border-radius: 22px;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .dense-grid,
  .horizontal-grid {
    grid-template-columns: 1fr;
  }
}
