:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fff1f2;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 113, 133, 0.18);
  --rose: #f43f5e;
  --orange: #f97316;
  --amber: #f59e0b;
  --shadow: 0 24px 60px rgba(244, 63, 94, 0.12);
  --shadow-soft: 0 14px 34px rgba(31, 41, 55, 0.08);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 42%, #fff7ed 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

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

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.26);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose);
  background: rgba(244, 63, 94, 0.08);
  transform: translateY(-1px);
}

.top-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.08);
}

.top-search input,
.hero-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  color: var(--text);
  background: transparent;
}

.top-search button,
.hero-search button,
.primary-button,
.ghost-button,
.text-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.hero-search button,
.primary-button {
  color: #fff;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.24);
}

.ghost-button {
  color: #fff;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.top-search button:hover,
.hero-search button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: min(660px, calc(100vh - 112px));
  min-height: 520px;
  margin: 28px auto 72px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #111827, #7f1d1d 48%, #9a3412);
  box-shadow: 0 34px 84px rgba(127, 29, 29, 0.24);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-image,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

.hero-image.is-missing,
.detail-bg.is-missing,
.poster-img.is-missing,
.ranking-thumb img.is-missing,
.category-cover-set img.is-missing,
.detail-poster img.is-missing {
  opacity: 0;
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(127, 29, 29, 0.76) 46%, rgba(15, 23, 42, 0.18) 100%),
    radial-gradient(circle at 28% 26%, rgba(251, 113, 133, 0.46), transparent 22rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 48px));
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  color: #fff;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.hero-content p,
.page-hero p,
.detail-info p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.9;
}

.hero-tags,
.tag-row,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.movie-meta span {
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  color: #fff;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.slider-dots {
  position: absolute;
  left: 56px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

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

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

.compact-section {
  margin-bottom: 52px;
}

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--rose);
  font-weight: 900;
}

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

.category-tile {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 242, 0.92)),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.2), transparent 8rem);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-panel:hover,
.ranking-row:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-tile span {
  font-size: 1.15rem;
  font-weight: 900;
}

.category-tile small {
  color: var(--muted);
  line-height: 1.5;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 20%, rgba(251, 113, 133, 0.42), transparent 10rem),
    linear-gradient(135deg, #111827, #9f1239 52%, #f97316);
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.26);
}

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

.movie-title {
  display: block;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.35;
}

.movie-title:hover,
.ranking-row h2 a:hover,
.archive-block a:hover,
.category-panel a:hover {
  color: var(--rose);
}

.movie-meta {
  margin-top: 10px;
}

.movie-meta span {
  color: #be123c;
  padding: 5px 9px;
  background: #fff1f2;
}

.movie-card-body p {
  min-height: 66px;
  margin: 14px 0;
  color: var(--muted);
  line-height: 1.7;
}

.tag-row span {
  color: #9a3412;
  padding: 5px 9px;
  background: #ffedd5;
}

.page-hero,
.detail-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 54px;
  overflow: hidden;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.42), transparent 28rem),
    linear-gradient(135deg, #111827, #881337 54%, #9a3412);
  box-shadow: 0 30px 70px rgba(127, 29, 29, 0.22);
}

.page-hero {
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 58px;
}

.small-hero {
  min-height: 300px;
}

.category-hero,
.ranking-hero {
  min-height: 360px;
}

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

.category-panel {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #111827, #9f1239, #f97316);
}

.category-cover-set img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.category-panel-body {
  padding: 22px;
}

.category-panel-body h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-panel-body p,
.category-panel-body li,
.ranking-row p,
.detail-copy p,
.archive-block li {
  color: var(--muted);
  line-height: 1.75;
}

.category-panel-body ul,
.archive-block ul,
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 62px 132px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-number {
  display: grid;
  place-items: center;
  height: 62px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 900;
  font-size: 1.1rem;
}

.ranking-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: linear-gradient(135deg, #111827, #9f1239, #f97316);
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-row h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.detail-hero {
  min-height: 520px;
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 42px;
  align-items: center;
  min-height: 520px;
  padding: 54px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #111827, #9f1239, #f97316);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

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

.large-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #09090b;
  box-shadow: 0 28px 70px rgba(9, 9, 11, 0.24);
}

.player-frame video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #09090b;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.44), rgba(127, 29, 29, 0.34));
}

.player-start span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 20px 46px rgba(244, 63, 94, 0.34);
  font-size: 2rem;
}

.player-frame.is-ready .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-copy {
  padding: 30px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-copy h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 1.28rem;
  font-weight: 900;
}

.detail-copy h2:not(:first-child) {
  margin-top: 28px;
}

.hero-search {
  width: min(620px, 100%);
  margin-top: 28px;
}

.hero-search input {
  width: 100%;
  flex: 1;
}

.search-status {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
}

.empty-card {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 26px;
  color: var(--muted);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

.archive-block {
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.archive-block h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 1.18rem;
  font-weight: 900;
}

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

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding: 54px 0;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

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

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

@media (max-width: 980px) {
  .site-header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    margin-left: 0;
    padding-bottom: 2px;
  }

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

  .hero-slider,
  .page-hero,
  .detail-hero {
    border-radius: 26px;
  }

  .hero-content,
  .page-hero,
  .detail-layout {
    padding: 34px;
  }

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

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

  .detail-poster {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .top-search {
    width: 100%;
  }

  .top-search input {
    width: 100%;
    flex: 1;
  }

  .hero-slider {
    min-height: 560px;
    height: auto;
  }

  .hero-content {
    min-height: 560px;
    padding: 28px;
  }

  .slider-dots {
    left: 28px;
    bottom: 24px;
  }

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

  .category-grid,
  .movie-grid,
  .category-panel-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 48px 92px 1fr;
    gap: 12px;
  }

  .ranking-number {
    height: 48px;
  }

  .page-hero,
  .detail-layout {
    padding: 26px;
  }

  .detail-layout {
    gap: 24px;
  }

  .detail-poster {
    max-width: 230px;
  }

  .player-start span {
    width: 68px;
    height: 68px;
    font-size: 1.6rem;
  }
}
