* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #fff7f9;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899, #fb923c);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-title {
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, #f43f5e, #ec4899, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  color: #6b7280;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 700;
}

.desktop-nav a,
.nav-dropdown > a {
  padding: 8px 0;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav .active,
.nav-dropdown:hover > a {
  color: #f43f5e;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 34px;
  left: -16px;
  width: 210px;
  display: grid;
  gap: 2px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(136, 19, 55, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 12px;
  color: #4b5563;
}

.dropdown-panel a:hover {
  color: #f43f5e;
  background: #fff1f2;
}

.nav-search,
.mobile-search,
.big-search,
.search-page-form {
  display: flex;
  align-items: center;
}

.nav-search input,
.mobile-search input,
.big-search input,
.search-page-form input,
.filter-label input {
  border: 1px solid rgba(244, 63, 94, 0.24);
  outline: none;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.search-page-form input:focus,
.filter-label input:focus {
  border-color: #f43f5e;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.nav-search input {
  width: 220px;
  padding: 10px 14px;
  border-radius: 999px 0 0 999px;
}

.nav-search button,
.mobile-search button,
.big-search button,
.search-page-form button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
  padding: 11px 16px;
  border-radius: 0 999px 999px 0;
}

.nav-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.search-page-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.2);
}

.menu-button {
  display: none;
  border: 0;
  color: #374151;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(136, 19, 55, 0.12);
}

.mobile-panel.open {
  display: grid;
  gap: 10px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-panel a:hover {
  color: #f43f5e;
  background: #fff1f2;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 999px 0 0 999px;
}

.mobile-search button {
  padding: 11px 14px;
  border-radius: 0 999px 999px 0;
}

.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: #881337;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #f43f5e, #ec4899, #fb923c);
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.9), rgba(157, 23, 77, 0.68), rgba(251, 146, 60, 0.18));
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 96px;
  width: min(680px, calc(100% - 64px));
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 12px;
  color: #fb7185;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .hero-kicker {
  color: #ffe4e6;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 950;
  line-height: 1.08;
}

.hero-copy h1 {
  font-size: clamp(42px, 7vw, 76px);
  text-shadow: 0 18px 50px rgba(80, 7, 36, 0.35);
}

.hero-copy h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 46px);
}

.hero-copy p {
  max-width: 620px;
  margin: 20px 0 0;
  color: #fff1f2;
  font-size: 20px;
}

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

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

.primary-button {
  color: #be123c;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(255, 255, 255, 0.2);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(14px);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px) scale(1.02);
}

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

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

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

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

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

.intro-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.intro-copy {
  padding: 36px;
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(136, 19, 55, 0.08);
}

.intro-copy h2,
.section-title-row h2,
.article-section h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.16;
}

.intro-copy p:last-child {
  margin-bottom: 0;
  color: #4b5563;
}

.big-search,
.search-page-form {
  padding: 12px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 24px 60px rgba(136, 19, 55, 0.1);
}

.big-search input,
.search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
  border-radius: 999px 0 0 999px;
}

.big-search button,
.search-page-form button {
  align-self: stretch;
  padding: 0 24px;
  border-radius: 999px;
}

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

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #e11d48;
  background: #fff1f2;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.section-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  transform: translateY(-2px);
}

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

.category-tile {
  min-height: 168px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 22px 16px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899, #fb923c);
  border-radius: 26px;
  box-shadow: 0 20px 40px rgba(244, 63, 94, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:nth-child(3n+2) {
  background: linear-gradient(135deg, #a855f7, #ec4899, #f43f5e);
}

.category-tile:nth-child(3n+3) {
  background: linear-gradient(135deg, #fb923c, #f43f5e, #be123c);
}

.category-tile:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 56px rgba(244, 63, 94, 0.28);
}

.category-tile span {
  font-size: 36px;
}

.category-tile strong {
  font-size: 18px;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-style: normal;
}

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

.mini-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.movie-card {
  min-width: 0;
}

.movie-card a {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(136, 19, 55, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card a:hover {
  transform: translateY(-7px);
  border-color: rgba(244, 63, 94, 0.34);
  box-shadow: 0 28px 58px rgba(136, 19, 55, 0.14);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: linear-gradient(135deg, #f43f5e, #ec4899, #fb923c);
}

.compact-card .poster-frame {
  aspect-ratio: 16 / 10;
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.64);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.card-content {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-content strong {
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.card-meta {
  color: #e11d48;
  font-size: 13px;
  font-weight: 800;
}

.card-desc {
  color: #4b5563;
  font-size: 14px;
}

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

.tag-row span {
  display: inline-flex;
  padding: 4px 9px;
  color: #be123c;
  background: #fff1f2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.large-tags span {
  padding: 7px 12px;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.4), transparent 35%), linear-gradient(135deg, #881337, #be123c, #f43f5e);
}

.page-hero {
  padding: 84px max(32px, calc((100vw - 1180px) / 2));
}

.slim-hero {
  padding-top: 68px;
  padding-bottom: 68px;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #ffe4e6;
  font-size: 18px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-weight: 800;
}

.filter-label input {
  width: 240px;
  padding: 11px 14px;
  border-radius: 999px;
}

.overview-stack {
  display: grid;
  gap: 26px;
  padding: 50px 0 70px;
}

.category-overview-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(136, 19, 55, 0.08);
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 30px;
}

.category-overview-head p {
  margin: 8px 0 0;
  color: #4b5563;
}

.category-icon {
  font-size: 36px;
}

.detail-hero {
  padding: 72px 0;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(80, 7, 36, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  background: linear-gradient(135deg, #f43f5e, #ec4899, #fb923c);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #ffe4e6;
  font-size: 14px;
  font-weight: 800;
}

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

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.detail-one-line {
  max-width: 760px;
  color: #ffe4e6;
  font-size: 20px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.detail-meta li {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(16px);
}

.detail-meta span {
  display: block;
  color: #fecdd3;
  font-size: 12px;
  font-weight: 900;
}

.detail-meta strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-section {
  padding-bottom: 40px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #111827;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.24);
}

.movie-player {
  width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  display: block;
  background: #111827;
}

.play-toggle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.58));
  cursor: pointer;
}

.play-toggle span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #e11d48;
  background: #ffffff;
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.play-toggle:hover span {
  transform: scale(1.08);
}

.player-shell.is-playing .play-toggle {
  display: none;
  pointer-events: none;
}

.article-section {
  padding-top: 34px;
  color: #374151;
}

.article-section p {
  margin: 14px 0 28px;
  font-size: 18px;
}

.site-footer {
  margin-top: 34px;
  color: #ffe4e6;
  background: linear-gradient(135deg, #881337, #9f1239, #c026d3);
}

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

.footer-brand {
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.site-footer p {
  color: #fecdd3;
}

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

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

.footer-links a {
  color: #ffe4e6;
}

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

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

.hidden-card {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
  border-radius: 24px;
}

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

  .menu-button {
    display: block;
  }

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

  .detail-meta {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .hero {
    height: 580px;
  }

  .hero-copy {
    bottom: 78px;
  }

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

  .category-grid,
  .movie-grid,
  .mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title-row,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-label,
  .filter-label input,
  .big-search,
  .search-page-form {
    width: 100%;
  }

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

@media (max-width: 560px) {
  .nav-shell {
    width: min(100% - 20px, 1180px);
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    height: 560px;
  }

  .hero-copy {
    left: 20px;
    width: calc(100% - 40px);
  }

  .hero-copy p,
  .detail-one-line,
  .page-hero p {
    font-size: 16px;
  }

  .content-section,
  .overview-stack,
  .detail-layout {
    width: min(100% - 20px, 1180px);
  }

  .category-grid,
  .movie-grid,
  .mini-grid,
  .detail-meta {
    grid-template-columns: 1fr;
  }

  .intro-copy,
  .category-overview-card {
    padding: 24px;
  }

  .movie-player {
    min-height: 220px;
  }
}
