:root {
  --page-bg: #fff7ed;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --rose-dark: #881337;
  --rose-main: #be123c;
  --rose-soft: #fff1f2;
  --amber-main: #f59e0b;
  --amber-soft: #fffbeb;
  --line-soft: rgba(148, 163, 184, 0.25);
  --shadow-card: 0 20px 45px rgba(136, 19, 55, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 45%, #fffbeb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #881337 0%, #9f1239 52%, #78350f 100%);
  box-shadow: 0 16px 35px rgba(136, 19, 55, 0.30);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.site-logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #881337;
  background: linear-gradient(135deg, #fbbf24, #ffffff);
  box-shadow: 0 10px 24px rgba(251, 191, 36, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
}

.site-nav a,
.nav-dropdown button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.nav-dropdown button:hover,
.site-nav .is-active {
  color: #fcd34d;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 150px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #7f1d1d;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 9px 10px;
  border-radius: 12px;
}

.nav-dropdown-link:hover {
  color: #be123c;
  background: #fff1f2;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.header-search input {
  width: 230px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 11px 16px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.quick-search-form button {
  border: 0;
  color: #7f1d1d;
  background: linear-gradient(135deg, #fcd34d, #ffffff);
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 8px 11px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 25%, rgba(245, 158, 11, 0.35), transparent 30%),
    linear-gradient(90deg, rgba(10, 10, 15, 0.90) 0%, rgba(42, 12, 23, 0.72) 50%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 126px;
  color: #ffffff;
}

.hero-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fcd34d;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-kicker span,
.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
}

.hero-content h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.hero-actions,
.detail-tags,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

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

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #f59e0b);
  box-shadow: 0 16px 32px rgba(225, 29, 72, 0.28);
}

.button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.hero-side {
  position: absolute;
  z-index: 3;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 72px;
  width: 330px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(18px);
}

.hero-side-title {
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 12px;
}

.hero-side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 18px;
  color: #ffffff;
  transition: background 0.2s ease;
}

.hero-side-item.is-active,
.hero-side-item:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-side-item img {
  width: 54px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-side-item span {
  font-weight: 750;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 36px;
  background: #fbbf24;
}

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

.quick-search-card,
.content-section,
.sidebar-panel,
.page-hero,
.detail-top,
.detail-article,
.detail-side,
.filter-bar {
  border: 1px solid var(--line-soft);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.quick-search-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  margin-bottom: 34px;
}

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

.quick-search-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.quick-search-form {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.quick-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 18px;
}

.content-section {
  padding: 30px;
  margin-bottom: 34px;
}

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

.section-heading h2,
.detail-article h2,
.detail-side h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 28px;
  font-weight: 950;
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-more {
  color: #be123c;
  font-weight: 850;
  white-space: nowrap;
}

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(136, 19, 55, 0.18);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.05;
  overflow: hidden;
  background: linear-gradient(135deg, #881337, #f59e0b);
}

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

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

.poster-play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.88);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #7f1d1d;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde68a, #ffffff);
  font-weight: 950;
}

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

.movie-meta-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #be123c;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 9px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #be123c;
}

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

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-tags span {
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  padding: 5px 9px;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(76, 5, 25, 0.88));
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 21px;
  font-weight: 950;
  margin-bottom: 6px;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

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

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

.sidebar-heading {
  margin-bottom: 16px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 32px 54px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.ranking-number {
  color: #be123c;
  font-size: 22px;
  font-weight: 950;
}

.ranking-row img {
  width: 54px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-row strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}

.ranking-row em {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 48px;
  margin-bottom: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.32), transparent 28%),
    linear-gradient(135deg, #881337 0%, #9f1239 55%, #78350f 100%);
}

.page-hero span {
  display: inline-flex;
  color: #fcd34d;
  font-weight: 900;
  margin-bottom: 12px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 950;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #be123c;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #ffffff;
  outline: 0;
  padding: 0 18px;
}

.filter-bar input {
  flex: 1;
}

.empty-result {
  display: none;
  text-align: center;
  color: var(--text-muted);
  padding: 30px;
}

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

.detail-shell {
  padding-top: 28px;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 28px;
  padding: 24px;
  margin-bottom: 30px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #080808;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
}

.player-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle, rgba(225, 29, 72, 0.25), rgba(0, 0, 0, 0.45)),
    rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

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

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, #e11d48, #f59e0b);
  box-shadow: 0 18px 42px rgba(225, 29, 72, 0.35);
}

.detail-info {
  padding: 8px 4px;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 950;
}

.detail-one-line {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 18px;
}

.detail-meta span {
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  padding: 7px 12px;
  font-weight: 800;
}

.detail-tags {
  margin: 20px 0 24px;
}

.detail-tags span {
  color: #92400e;
  background: #fffbeb;
}

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

.detail-article,
.detail-side {
  padding: 30px;
}

.detail-article p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 2;
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 96px;
}

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

.related-list .movie-card {
  display: grid;
  grid-template-columns: 110px 1fr;
}

.related-list .movie-poster {
  aspect-ratio: auto;
  min-height: 150px;
}

.related-list .movie-card-body {
  padding: 14px;
}

.related-list .card-tags,
.related-list .movie-card p {
  display: none;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #111827;
}

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

.footer-logo {
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-inner p {
  max-width: 430px;
  margin: 12px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

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

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-side {
    display: none;
  }

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

  .two-column-layout,
  .detail-top,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-panel,
  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    min-height: 64px;
  }

  .site-logo {
    font-size: 18px;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    padding-top: 92px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-actions,
  .quick-search-card,
  .footer-inner,
  .filter-bar {
    display: block;
  }

  .button {
    width: 100%;
    margin-bottom: 10px;
  }

  .quick-search-form {
    margin-top: 18px;
  }

  .content-section,
  .quick-search-card,
  .page-hero,
  .detail-top,
  .detail-article,
  .detail-side {
    border-radius: 22px;
    padding: 20px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }

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

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

  .movie-card h3 {
    font-size: 16px;
  }

  .category-tile {
    min-height: 150px;
  }

  .filter-bar input,
  .filter-bar select {
    width: 100%;
    margin-bottom: 10px;
  }

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

  .footer-links {
    justify-content: flex-start;
    margin-top: 22px;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .movie-grid-tight,
  .category-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }
}
