* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2937;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #fff7ed 100%);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(100% - 32px, 1280px);
  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 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #f59e0b);
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(225, 29, 72, 0.28);
  font-size: 14px;
}

.desktop-nav,
.quick-cats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link,
.quick-cats a,
.mobile-nav-link {
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.quick-cats a:hover,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #e11d48;
}

.quick-cats {
  gap: 12px;
  font-size: 14px;
}

.quick-cats a {
  padding: 6px 10px;
  background: #fff1f2;
  border-radius: 999px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: #fff1f2;
  border-radius: 12px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #9f1239;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid #f3f4f6;
  background: #ffffff;
}

.mobile-nav.open {
  display: grid;
  gap: 12px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(90deg, #881337, #78350f);
}

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

.hero-slide {
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #ffffff;
  padding-top: 32px;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #ffffff;
  background: #e11d48;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.26);
}

.hero-content h1 {
  margin: 24px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 13px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: #e11d48;
  box-shadow: 0 18px 30px rgba(225, 29, 72, 0.32);
}

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

.primary-button:hover {
  background: #be123c;
  box-shadow: 0 20px 36px rgba(225, 29, 72, 0.4);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.search-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: -34px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  position: relative;
  z-index: 4;
  backdrop-filter: blur(18px);
}

.hero-search,
.filter-panel {
  display: flex;
  gap: 12px;
}

.hero-search input,
.filter-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  padding: 0 16px;
  color: #111827;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.hero-search input:focus,
.filter-panel input:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.hero-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #f97316);
  border-radius: 13px;
  padding: 0 24px;
  font-weight: 800;
  cursor: pointer;
}

.search-shortcuts,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-shortcuts a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #9f1239;
  background: #fff1f2;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.page-section {
  padding: 72px 0;
}

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

.section-heading h2 {
  display: inline;
  margin: 0 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-heading p {
  margin: 10px 0 0;
  color: #6b7280;
}

.heading-icon {
  color: #e11d48;
  font-size: 22px;
}

.section-more {
  color: #e11d48;
  font-weight: 800;
}

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

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

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

.movie-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 113, 133, 0.42);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.card-poster {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #e5e7eb;
}

.large-card .card-poster {
  height: 270px;
}

.compact-card .card-poster {
  height: 170px;
}

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

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

.poster-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.54));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shadow {
  opacity: 1;
}

.card-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  top: 12px;
  right: 12px;
  background: #e11d48;
}

.year-badge {
  left: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(10px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 32px;
  background: linear-gradient(135deg, #f97316, #e11d48);
}

.card-body {
  display: flex;
  min-height: 184px;
  flex-direction: column;
  padding: 18px;
}

.compact-card .card-body {
  min-height: 150px;
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color 0.2s ease;
}

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

.card-body p {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}

.card-meta span {
  color: #6b7280;
  background: #f9fafb;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
}

.tint-section {
  background: linear-gradient(90deg, #fff7ed, #fff1f2);
}

.light-section {
  background: #f9fafb;
}

.soft-gradient-section {
  background: linear-gradient(135deg, #ffe4e6, #fffbeb, #fdf2f8);
}

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

.category-tile {
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 30px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, #e11d48, #f59e0b);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(225, 29, 72, 0.32);
}

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

.category-tile h3 {
  margin: 12px 0 8px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #881337, #9a3412);
}

.compact-hero {
  padding: 76px 0 84px;
}

.compact-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.compact-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.filter-panel {
  align-items: center;
  margin-top: -32px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  position: relative;
  z-index: 3;
  backdrop-filter: blur(18px);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #fecdd3;
  color: #9f1239;
  background: #fff1f2;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: #e11d48;
  border-color: #e11d48;
}

.empty-state {
  display: none;
  margin: 30px 0 0;
  padding: 28px;
  color: #6b7280;
  text-align: center;
  background: #ffffff;
  border-radius: 16px;
}

.empty-state.show {
  display: block;
}

.category-overview-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.category-cover {
  display: flex;
  min-height: 190px;
  align-items: end;
  padding: 20px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.category-cover span {
  font-size: 26px;
  font-weight: 850;
}

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

.category-overview-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-overview-body p {
  margin: 0 0 16px;
  color: #6b7280;
}

.category-overview-body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-overview-body a:hover {
  color: #e11d48;
}

.detail-main {
  background: linear-gradient(180deg, #111827 0, #111827 520px, #f9fafb 520px, #ffffff 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.watch-hero {
  color: #ffffff;
  padding: 10px 0 58px;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 32px;
  align-items: center;
}

.player-panel {
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #f97316);
  border-radius: 999px;
  box-shadow: 0 20px 48px rgba(225, 29, 72, 0.45);
  font-size: 30px;
  transform: translateX(2px);
}

.watch-info h1 {
  margin: 20px 0 14px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.watch-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.watch-button {
  margin-top: 28px;
}

.detail-tags span {
  color: #fff7ed;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  padding: 58px 0 0;
}

.detail-article,
.detail-side {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.detail-article {
  padding: 30px;
}

.title-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.title-row h2 {
  margin: 0;
  font-size: 30px;
}

.title-row span {
  flex: none;
  color: #ffffff;
  background: #e11d48;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 800;
}

.info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid #f3f4f6;
}

.info-line span {
  color: #4b5563;
  background: #f9fafb;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
}

.story-block {
  margin-top: 28px;
}

.story-block h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 22px;
}

.story-block p {
  margin: 0;
  color: #374151;
  white-space: pre-line;
}

.highlight-block,
.review-block {
  padding: 22px;
  background: linear-gradient(90deg, #fff1f2, #fffbeb);
  border-radius: 16px;
}

.detail-side {
  position: sticky;
  top: 88px;
  padding: 24px;
}

.detail-side dl {
  margin: 0;
}

.detail-side dt {
  margin-top: 16px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.detail-side dd {
  margin: 4px 0 0;
  color: #111827;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.detail-side a {
  color: #e11d48;
  font-weight: 800;
}

.related-section {
  padding-top: 56px;
}

.site-footer {
  margin-top: 30px;
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
  border-top: 1px solid #e5e7eb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-grid p {
  max-width: 520px;
  margin: 12px 0 0;
  color: #6b7280;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-bottom {
  padding: 18px 16px;
  color: #6b7280;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 1120px) {
  .quick-cats {
    display: none;
  }

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

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

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

  .detail-side {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero-carousel {
    min-height: 560px;
  }

  .hero-control {
    display: none;
  }

  .search-strip,
  .filter-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search button {
    min-height: 46px;
  }

  .section-heading {
    display: block;
  }

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

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

  .watch-hero {
    padding-bottom: 36px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .brand,
  .footer-brand {
    font-size: 18px;
  }

  .hero-carousel {
    height: 78vh;
    min-height: 540px;
  }

  .hero-content h1,
  .watch-info h1 {
    letter-spacing: -0.03em;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-poster,
  .large-card .card-poster,
  .compact-card .card-poster {
    height: 240px;
  }

  .detail-article {
    padding: 22px;
  }

  .title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
