* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  background: #f8fafc;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, #0f172a, #1e293b 48%, #0f172a);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.35);
  transition: transform 0.25s ease;
}

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

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fb7185, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  color: #e5e7eb;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fb7185;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.search-large-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.header-search input,
.mobile-search input,
.search-large-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 12px 16px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.search-large-form input::placeholder {
  color: #cbd5e1;
}

.header-search button,
.mobile-search button,
.search-large-form button {
  border: 0;
  color: #fff;
  padding: 12px 16px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

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

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-search input {
  flex: 1;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  color: #fff;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(3px) saturate(1.1);
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(249, 115, 22, 0.34), transparent 35%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.78) 48%, rgba(15, 23, 42, 0.38)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.9));
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 70px 0 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(248, 113, 113, 0.24);
  border: 1px solid rgba(254, 202, 202, 0.28);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 860px;
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-line {
  margin: 0 0 14px;
  color: #fed7aa;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
}

.hero-summary {
  max-width: 740px;
  margin: 0 0 34px;
  color: #e2e8f0;
  font-size: 18px;
}

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

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

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

.btn-primary {
  color: #dc2626;
  background: #fff;
  box-shadow: 0 18px 34px rgba(255, 255, 255, 0.2);
}

.btn-glass {
  color: #fff;
  background: rgba(239, 68, 68, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(12px);
  font-size: 18px;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-controls button {
  border: 0;
  color: #fff;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}

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

.compact-section {
  padding-top: 16px;
}

.section-title,
.section-head-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-title {
  justify-content: flex-start;
}

.section-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 16px 28px rgba(239, 68, 68, 0.22);
}

.section-title h2,
.section-head-line h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  color: #111827;
}

.section-title p {
  margin: 5px 0 0;
  color: #64748b;
}

.section-head-line a,
.text-link {
  color: #dc2626;
  font-weight: 800;
}

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

.feature-card,
.movie-card,
.category-overview-card,
.aside-card,
.detail-article,
.player-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.14);
}

.feature-image,
.poster-link,
.wide-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #334155);
}

.feature-image img,
.poster-link img,
.wide-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feature-card:hover img,
.movie-card:hover img {
  transform: scale(1.07);
}

.feature-image {
  aspect-ratio: 16 / 10;
}

.feature-image::after,
.poster-link::after,
.wide-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
  opacity: 0.82;
}

.play-chip,
.poster-layer {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.play-chip {
  width: 82px;
  height: 82px;
}

.poster-layer {
  width: 64px;
  height: 64px;
}

.feature-card:hover .play-chip,
.movie-card:hover .poster-layer {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.feature-copy,
.card-copy,
.wide-content {
  padding: 18px;
}

.movie-meta,
.detail-meta,
.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 13px;
}

.movie-meta span,
.detail-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f5f9;
}

.feature-copy h3,
.card-copy h3,
.wide-content h3 {
  margin: 12px 0 8px;
  color: #111827;
  line-height: 1.3;
}

.feature-copy h3 a:hover,
.card-copy h3 a:hover,
.wide-content h3 a:hover {
  color: #dc2626;
}

.feature-copy p,
.card-copy p,
.wide-content p {
  margin: 0;
  color: #64748b;
}

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

.small-grid,
.mini-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.poster-link {
  aspect-ratio: 3 / 4;
}

.type-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  background: #dc2626;
}

.year-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

.card-copy h3 {
  min-height: 45px;
  font-size: 16px;
}

.card-copy p {
  min-height: 52px;
  font-size: 14px;
}

.card-foot {
  justify-content: space-between;
  margin-top: 14px;
}

.hot-band {
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 190px;
}

.wide-poster {
  min-height: 190px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  color: #111827;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  border-color: #ef4444;
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.red-hero {
  background: radial-gradient(circle at 76% 12%, rgba(251, 146, 60, 0.72), transparent 35%), linear-gradient(135deg, #dc2626, #f97316);
}

.dark-hero {
  background: radial-gradient(circle at 78% 18%, rgba(239, 68, 68, 0.52), transparent 34%), linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.84);
}

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

.category-overview {
  display: grid;
  gap: 24px;
}

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

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

.category-overview-top h2 {
  margin: 0 0 8px;
}

.category-overview-top p {
  margin: 0;
  color: #64748b;
}

.filter-panel,
.search-page-panel {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select,
.search-large-form input {
  height: 48px;
  border: 1px solid #e2e8f0;
  outline: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #111827;
  background: #fff;
}

.filter-panel input {
  flex: 1;
}

.empty-state,
.search-status {
  display: none;
  padding: 24px;
  text-align: center;
  color: #64748b;
}

.empty-state.is-visible,
.search-status.is-visible {
  display: block;
}

.detail-hero {
  min-height: 500px;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(5px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.68)), linear-gradient(180deg, transparent, #0f172a);
}

.detail-hero-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 72px;
}

.detail-heading {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: 32px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.detail-heading h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-heading p {
  max-width: 780px;
  color: #e2e8f0;
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
}

.detail-main {
  min-width: 0;
}

.player-card {
  padding: 16px;
  margin-bottom: 26px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #020617;
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.28), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 22px 45px rgba(220, 38, 38, 0.35);
  font-size: 34px;
  padding-left: 5px;
}

.player-box.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.detail-article,
.aside-card {
  padding: 28px;
  margin-bottom: 26px;
}

.detail-article h2,
.related-section h2,
.aside-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 17px;
}

.related-section {
  margin-top: 28px;
}

.detail-aside {
  min-width: 0;
}

.aside-card {
  position: sticky;
  top: 100px;
}

.side-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}

.side-item img {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  grid-row: span 2;
}

.side-item span {
  color: #111827;
  font-weight: 800;
  line-height: 1.35;
}

.side-item:hover span {
  color: #dc2626;
}

.side-item small {
  color: #64748b;
}

.search-large-form {
  width: 100%;
  background: #fff;
}

.search-large-form input {
  flex: 1;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-brand p {
  max-width: 760px;
  margin: 0;
  color: #94a3b8;
}

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

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

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #64748b;
}

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

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

  .menu-toggle {
    display: block;
  }

  .hero-shell {
    grid-template-columns: 1fr 280px;
  }

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

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

@media (max-width: 860px) {
  .header-shell {
    height: 68px;
  }

  .brand-text small,
  .header-search {
    display: none;
  }

  .hero-carousel,
  .hero-shell {
    min-height: 760px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: end;
  }

  .hero-poster {
    width: min(260px, 72vw);
    transform: none;
  }

  .feature-grid,
  .ranking-grid,
  .detail-layout,
  .detail-heading {
    grid-template-columns: 1fr;
  }

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

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

  .filter-panel {
    flex-direction: column;
  }

  .movie-card-wide {
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 160px;
  }

  .wide-poster {
    min-height: 160px;
  }
}

@media (max-width: 560px) {
  .content-section {
    width: min(100% - 24px, 1180px);
    padding: 46px 0;
  }

  .page-hero-shell,
  .detail-hero-shell,
  .header-shell,
  .mobile-panel,
  .footer-shell,
  .hero-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 38px;
  }

  .hero-summary,
  .detail-heading p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .wide-poster {
    aspect-ratio: 16 / 10;
  }

  .detail-heading {
    gap: 20px;
  }

  .detail-cover {
    width: min(220px, 72vw);
  }
}
