:root {
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --yellow: #fde047;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --soft-red: #fef2f2;
  --card: #ffffff;
  --footer: #111827;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.14);
  --radius: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.28);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand {
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--orange);
  background: #ffffff;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.05);
}

.brand-name {
  font-size: 1.35rem;
  white-space: nowrap;
}

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

.nav-link {
  font-weight: 700;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

.header-search,
.mobile-search,
.search-page-form {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input {
  width: 230px;
  border: 0;
  outline: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 9px 16px 9px 38px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  outline: 3px solid rgba(253, 224, 71, 0.35);
}

.search-icon {
  position: absolute;
  left: 14px;
  font-size: 1.1rem;
  opacity: 0.78;
  z-index: 1;
}

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

.mobile-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  background: transparent;
}

.mobile-link {
  display: block;
  padding: 10px 2px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

.hero-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 150px solid rgba(249, 115, 22, 0.88);
  border-left: 150px solid transparent;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(16px, calc((100vw - 1180px) / 2));
  width: min(680px, calc(100% - 32px));
  transform: translateY(-50%);
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 16px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--orange);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.3);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 610px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  color: #7c2d12;
  font-size: 0.78rem;
  font-weight: 800;
  background: #ffedd5;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(8px);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 18px 38px rgba(239, 68, 68, 0.32);
}

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

.btn-dark {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 2.4rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--orange);
}

.stats-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -38px auto 0;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-strip div {
  border-radius: 20px;
  padding: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.stats-strip strong {
  display: block;
  color: var(--orange);
  font-size: 1.15rem;
}

.stats-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-section {
  padding: 68px 0;
  background: #ffffff;
}

.soft-bg {
  background: linear-gradient(135deg, #fff7ed, #ffffff 48%, #fef2f2);
}

.warm-bg {
  background: linear-gradient(135deg, #fff7ed, #f9fafb 54%, #fff1f2);
}

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

.section-head h2,
.panel-head h2,
.side-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.section-link,
.panel-head a {
  color: var(--orange);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(17, 24, 39, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #ef4444, #ec4899);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.08);
  filter: brightness(0.82);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.55));
  opacity: 0.82;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-badge,
.card-duration {
  position: absolute;
  z-index: 4;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
}

.card-badge {
  top: 12px;
  left: 12px;
  background: var(--orange);
}

.card-duration {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  min-height: 3.1em;
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.45;
}

.card-body h3 a:hover {
  color: var(--orange);
}

.card-body p {
  min-height: 3em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.category-tile,
.category-card a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(239, 68, 68, 0.28);
}

.category-tile span,
.category-card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.category-tile p,
.category-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
}

.category-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--orange);
  background: #ffffff;
  font-weight: 900;
}

.two-col,
.ranking-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.ranking-layout {
  grid-template-columns: 430px minmax(0, 1fr);
}

.ranking-panel,
.side-panel,
.poster-card,
.detail-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-panel,
.side-panel {
  padding: 22px;
}

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

.long-list {
  max-height: none;
}

.rank-item {
  display: grid;
  grid-template-columns: 38px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-num {
  color: var(--orange);
  font-weight: 900;
}

.rank-item img {
  width: 58px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.rank-info {
  min-width: 0;
}

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

.rank-info strong {
  font-size: 0.93rem;
}

.rank-info em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.rank-views {
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 800;
}

.sub-page {
  background: #f9fafb;
}

.page-hero,
.detail-top {
  padding: 70px 0 48px;
  color: #ffffff;
  background: radial-gradient(circle at 80% 0%, rgba(236, 72, 153, 0.72), transparent 38%), linear-gradient(135deg, #111827, #7f1d1d 52%, #fb923c);
}

.small-hero,
.search-hero,
.category-hero,
.ranking-hero {
  min-height: 290px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  max-width: 820px;
  margin: 14px 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.crumb,
.breadcrumb a {
  color: #fed7aa;
  font-weight: 900;
}

.filter-bar,
.search-page-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select,
.search-page-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: #ffffff;
}

.filter-bar input,
.search-page-form input {
  flex: 1;
}

.search-page-form {
  max-width: 680px;
  margin-top: 24px;
}

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

.empty-state {
  grid-column: 1 / -1;
  border-radius: 24px;
  padding: 34px;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.player-shell::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 62px solid rgba(249, 115, 22, 0.9);
  border-left: 62px solid transparent;
  pointer-events: none;
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

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

.overlay-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  font-size: 2rem;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 20px 48px rgba(239, 68, 68, 0.38);
}

.overlay-title {
  max-width: min(520px, 90%);
  font-size: 1.15rem;
  font-weight: 900;
  text-align: center;
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
  color: var(--ink);
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.detail-card h1 {
  margin: 12px 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.detail-card h2 {
  margin: 26px 0 10px;
  font-size: 1.35rem;
  font-weight: 900;
}

.detail-card p {
  margin: 0 0 12px;
  color: #374151;
}

.lead-text {
  font-size: 1.08rem;
  font-weight: 700;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.meta-grid span {
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--muted);
  background: #f9fafb;
}

.meta-grid strong {
  display: block;
  color: var(--ink);
}

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

.poster-card {
  padding: 16px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fb923c, #ef4444, #ec4899);
}

.poster-card .btn {
  width: 100%;
}

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

.mini-list .rank-views {
  display: none;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

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

.footer-brand {
  color: #ffffff;
  font-size: 1.35rem;
}

.footer-inner p {
  margin: 12px 0 0;
  color: #9ca3af;
}

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

.footer-links a {
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.85);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  color: #9ca3af;
  text-align: center;
}

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

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

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

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

  .two-col,
  .ranking-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    height: 620px;
  }

  .hero-content {
    top: 52%;
  }

  .hero-arrow {
    display: none;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .search-results {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .category-overview {
    grid-template-columns: 1fr;
  }

  .section-head,
  .panel-head,
  .filter-bar,
  .search-page-form,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 34px 54px minmax(0, 1fr);
  }

  .rank-views {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 1.06rem;
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.03em;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .card-body h3 {
    min-height: auto;
  }
}
