:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--soft);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 8px 24px rgba(194, 65, 12, 0.28);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--red);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--yellow);
}

.header-search,
.mobile-search,
.home-search-strip form,
.search-page-panel form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.home-search-strip input,
.search-page-panel input,
.filter-controls input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.header-search {
  width: 250px;
}

.header-search button,
.mobile-search button,
.home-search-strip button,
.search-page-panel button,
.filter-controls button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--orange-dark);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 70;
  display: none;
  padding: 8px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-suggest.is-open {
  display: grid;
  gap: 6px;
}

.search-suggest a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 14px;
}

.search-suggest a:hover {
  color: var(--orange);
  background: #fff7ed;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}

.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;
  gap: 12px;
  margin-bottom: 14px;
}

.hero {
  position: relative;
  height: clamp(430px, 54vw, 640px);
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.64) 54%, rgba(17, 24, 39, 0.94));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 72px;
  width: min(650px, calc(100% - 64px));
  color: #ffffff;
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-tags span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.92);
  font-size: 13px;
  font-weight: 750;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.hero-actions,
.section-heading,
.filter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
}

.primary-btn {
  color: #ffffff;
  background: var(--orange);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.35);
}

.primary-btn:hover {
  background: var(--orange-dark);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.55);
}

.hero-arrow--prev {
  left: 18px;
}

.hero-arrow--next {
  right: 18px;
}

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

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

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

.home-search-strip {
  position: relative;
  z-index: 2;
  width: min(960px, calc(100% - 32px));
  margin: -42px auto 44px;
  padding: 26px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.96), rgba(220, 38, 38, 0.96));
  box-shadow: 0 24px 54px rgba(194, 65, 12, 0.28);
}

.home-search-strip h2,
.home-search-strip p {
  margin: 0;
}

.home-search-strip p {
  margin-top: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.90);
}

.home-search-strip form {
  max-width: 640px;
}

.page-stack {
  display: grid;
  gap: 44px;
  padding-bottom: 56px;
}

.section-block,
.filter-panel,
.content-card,
.side-card,
.player-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
}

.section-block {
  padding: 24px;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
}

.section-heading a {
  color: var(--orange);
  font-weight: 800;
}

.card-grid {
  display: grid;
  gap: 20px;
}

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

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

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

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

.movie-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(17, 24, 39, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card__link:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.22);
}

.movie-card__poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fed7aa, #fecaca);
}

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

.movie-card__link:hover .movie-card__poster {
  transform: scale(1.08);
}

.movie-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.0);
  font-size: 42px;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.movie-card__link:hover .movie-card__play {
  opacity: 1;
  background: rgba(0, 0, 0, 0.32);
}

.movie-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 8px;
  padding: 5px 8px;
  color: #ffffff;
  background: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.movie-card__body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-card__title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__link:hover .movie-card__title {
  color: var(--orange);
}

.movie-card__desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 42px rgba(220, 38, 38, 0.25);
}

.category-tile__preview {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0.36;
}

.category-tile__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile__text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  height: 100%;
  padding: 22px;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.12));
}

.category-tile__text strong {
  align-self: end;
  font-size: 24px;
}

.category-tile__text em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #fff7ed;
  transform: translateY(-2px);
}

.rank-item img {
  width: 96px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--orange);
  font-weight: 900;
}

.rank-item__content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-item__content strong,
.rank-item__content em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item__content em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-item__content span {
  color: #9ca3af;
  font-size: 12px;
}

.page-hero {
  padding: 56px 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--yellow);
}

.filter-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.filter-panel h2,
.filter-panel p {
  margin: 0;
}

.filter-panel p {
  margin-top: 8px;
  color: var(--muted);
}

.filter-controls input {
  width: min(460px, 100%);
  background: #f3f4f6;
}

.filter-controls button,
.filter-tags button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 800;
  cursor: pointer;
}

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

.filter-tags button.is-active,
.filter-tags button:hover,
.filter-controls button:hover {
  color: #ffffff;
  background: var(--orange);
}

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

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

.detail-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.20), rgba(17, 24, 39, 0.88));
}

.detail-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 110px;
  padding-bottom: 54px;
}

.detail-hero h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  margin-top: -42px;
  margin-bottom: 46px;
  position: relative;
  z-index: 2;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card,
.content-card,
.side-card {
  padding: 18px;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.34);
  font-size: 38px;
  padding-left: 6px;
}

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

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-line;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 700;
  font-size: 14px;
}

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

.side-card {
  position: sticky;
  top: 88px;
}

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

.side-list .rank-item {
  grid-template-columns: 92px minmax(0, 1fr);
}

.side-list .rank-number {
  display: none;
}

.related-section {
  margin-bottom: 56px;
}

.site-footer {
  color: #cbd5e1;
  background: #111827;
}

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #fb923c;
}

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

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

  .mobile-toggle {
    display: block;
  }

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

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

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

  .side-card {
    position: static;
  }
}

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

  .logo {
    font-size: 20px;
  }

  .hero {
    height: 520px;
  }

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

  .hero-arrow {
    display: none;
  }

  .home-search-strip {
    margin-top: -28px;
    padding: 20px;
    border-radius: 22px;
  }

  .home-search-strip form,
  .search-page-panel form,
  .filter-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .card-grid--six,
  .card-grid--four,
  .card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-grid,
  .category-grid--wide,
  .rank-list--wide {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 18px;
  }

  .movie-card__title {
    font-size: 14px;
  }

  .movie-card__desc {
    font-size: 12px;
  }

  .rank-item,
  .side-list .rank-item {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .rank-number {
    display: none;
  }

  .rank-item img {
    width: 78px;
    height: 56px;
  }

  .detail-hero__inner {
    padding-top: 84px;
  }

  .detail-layout {
    margin-top: -24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
