:root {
  --bg: #fff7ed;
  --bg-soft: #fff1f2;
  --card: rgba(255, 255, 255, 0.88);
  --card-strong: #ffffff;
  --text: #231f20;
  --muted: #6b7280;
  --line: rgba(244, 63, 94, 0.16);
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --orange: #fb923c;
  --amber: #f59e0b;
  --shadow: 0 24px 60px rgba(225, 29, 72, 0.14);
  --shadow-soft: 0 14px 35px rgba(251, 146, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.24), transparent 35rem),
    radial-gradient(circle at top right, rgba(244, 63, 94, 0.20), transparent 36rem),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 48%, #ffe4e6 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--muted);
}

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

.nav-link {
  border-radius: 12px;
  padding: 10px 15px;
  font-weight: 700;
  color: #4b5563;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.2);
}

.header-search,
.mobile-search,
.inline-filter,
.search-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.inline-filter input,
.inline-filter select,
.search-toolbar input,
.search-toolbar select {
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.86);
  padding: 11px 14px;
  color: var(--text);
  min-height: 44px;
}

.header-search input {
  width: 220px;
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.nav-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--rose-dark);
  background: rgba(244, 63, 94, 0.08);
  cursor: pointer;
}

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

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

.mobile-nav-links,
.mobile-category-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

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

.mobile-category-link {
  border-radius: 14px;
  padding: 12px 14px;
  color: #9f1239;
  background: rgba(255, 228, 230, 0.78);
  font-weight: 800;
}

.hero-carousel {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0 24px;
}

.hero-carousel__track {
  position: relative;
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #fb7185, #fdba74);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.hero-slide__image {
  grid-column: 2;
  grid-row: 1;
  min-height: 560px;
  background-image: var(--hero-poster);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 20, 20, 0.92) 0%, rgba(57, 20, 33, 0.78) 43%, rgba(68, 20, 23, 0.16) 100%),
    radial-gradient(circle at 15% 20%, rgba(251, 146, 60, 0.46), transparent 32rem);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  align-self: center;
  padding: 72px;
  color: #fff;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-dark);
}

.hero-kicker {
  color: #fed7aa;
}

.hero-slide h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-slide p {
  margin: 22px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.movie-card__tags,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.movie-card__tags span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #9f1239;
  background: rgba(255, 228, 230, 0.88);
  font-weight: 800;
  font-size: 0.78rem;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-actions,
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.28);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
}

.btn-plain {
  color: #9f1239;
  background: rgba(255, 255, 255, 0.86);
}

.hero-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: -48px;
  position: relative;
  z-index: 4;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

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

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

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

.section-shell,
.page-hero,
.breadcrumb,
.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-shell {
  margin-top: 54px;
}

.section-shell--lift {
  margin-top: 72px;
}

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

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

.section-heading h1,
.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

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

.category-tile,
.category-overview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  padding: 22px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(244, 63, 94, 0.18);
}

.category-tile__name {
  color: var(--rose-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.category-tile__desc,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-tile__links,
.category-overview-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.category-tile__links a,
.category-overview-card__links a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #be123c;
  background: rgba(255, 228, 230, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
}

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

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

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

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

.movie-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(16, 16, 16, 0.02), rgba(16, 16, 16, 0.46)),
    var(--poster),
    linear-gradient(135deg, #fecdd3, #fed7aa);
  background-position: center;
  background-size: cover;
}

.movie-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.68));
}

.movie-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: rgba(244, 63, 94, 0.82);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  transition: 0.25s ease;
}

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

.movie-card__year {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(12px);
  font-weight: 900;
  font-size: 0.75rem;
}

.movie-card__body {
  padding: 18px;
}

.movie-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #be123c;
  font-size: 0.78rem;
  font-weight: 900;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 1.12rem;
  line-height: 1.28;
}

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

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.movie-card--compact .movie-card__body {
  padding: 16px;
}

.ranking-panel,
.rank-list {
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 26px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

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

.ranking-panel__title {
  margin-bottom: 14px;
  color: var(--rose-dark);
  font-weight: 900;
  font-size: 1.18rem;
}

.rank-row,
.rank-list-row {
  display: grid;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.rank-row {
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 12px;
}

.rank-row:hover,
.rank-list-row:hover {
  background: rgba(255, 228, 230, 0.66);
}

.rank-number,
.rank-list-row span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 900;
}

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

.rank-meta {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding-top: 54px;
  padding-bottom: 54px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.72), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 228, 230, 0.78));
  box-shadow: var(--shadow-soft);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.search-toolbar {
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.search-toolbar input {
  flex: 1;
}

.chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #9f1239;
  background: rgba(255, 228, 230, 0.86);
  cursor: pointer;
  font-weight: 800;
}

.chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.filter-empty {
  display: none;
  margin-top: 24px;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
}

.filter-empty.is-visible {
  display: block;
}

.category-overview-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--rose-dark);
  font-size: 1.2rem;
  font-weight: 900;
}

.category-overview-card__head strong {
  font-size: 0.82rem;
}

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

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

.rank-list-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-list-row em {
  color: #be123c;
  font-style: normal;
  font-weight: 900;
}

.rank-list-row small {
  grid-column: 2 / -1;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--rose-dark);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  margin-top: 22px;
}

.player-panel,
.detail-info,
.detail-section {
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.player-panel {
  overflow: hidden;
  padding: 12px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.player-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.42), rgba(15, 23, 42, 0.66));
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.25s ease;
}

.player-overlay__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 35px rgba(244, 63, 94, 0.38);
  font-size: 1.8rem;
}

.player-overlay__text {
  font-weight: 900;
}

.detail-info {
  padding: 30px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.detail-info .btn {
  margin-top: 24px;
}

.detail-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding: 26px;
}

.detail-poster {
  border-radius: 24px;
  min-height: 380px;
  background-image: var(--poster), linear-gradient(135deg, #fecdd3, #fed7aa);
  background-position: center;
  background-size: cover;
}

.detail-copy h2 {
  margin: 0 0 12px;
  color: var(--rose-dark);
}

.detail-copy p {
  margin: 0 0 24px;
  color: #4b5563;
  line-height: 1.95;
  font-size: 1.02rem;
}

.site-footer {
  margin-top: 72px;
  padding: 42px 24px;
  color: #fff;
  background: linear-gradient(135deg, #be123c, #ea580c);
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 20px 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
}

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

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    padding: 0 16px;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-carousel,
  .section-shell,
  .page-hero,
  .breadcrumb,
  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-carousel__track {
    min-height: 620px;
    border-radius: 26px;
  }

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

  .hero-slide__image {
    grid-column: 1;
    min-height: 620px;
    opacity: 0.58;
  }

  .hero-slide__shade {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.90));
  }

  .hero-slide__content {
    padding: 40px 26px 82px;
    align-self: end;
  }

  .hero-slide p {
    font-size: 1rem;
  }

  .section-heading,
  .page-hero {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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

@media (max-width: 560px) {
  .brand {
    min-width: auto;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-carousel__track,
  .hero-slide__image {
    min-height: 580px;
  }

  .hero-actions,
  .page-hero__actions,
  .inline-filter,
  .search-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .movie-grid--small,
  .rank-list {
    grid-template-columns: 1fr;
  }

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

  .rank-list-row em,
  .rank-list-row small {
    grid-column: 2;
  }

  .detail-info {
    padding: 24px;
  }

  .detail-poster {
    min-height: 420px;
  }
}

.page-hero .btn-ghost {
  color: #be123c;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(244, 63, 94, 0.16);
}
