:root {
  --red: #ef4444;
  --red-dark: #dc2626;
  --orange: #f97316;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f9fafb;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  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);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--amber));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, var(--red-dark), var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
  transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.2);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff3ed;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--red-dark);
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: linear-gradient(110deg, #dc2626, #f97316 48%, #f59e0b);
}

.hero-bg,
.hero-bg::before,
.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero-bg {
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.22), transparent 30%), radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.16), transparent 28%);
}

.hero-bg::before {
  background: rgba(17, 24, 39, 0.2);
}

.hero-bg::after {
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.42), rgba(17, 24, 39, 0.05));
}

.hero-inner {
  position: relative;
  min-height: 590px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 48px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  max-width: 740px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 650px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
}

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

.hero-tags span,
.detail-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
}

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

.btn,
.hero-search button,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn.primary {
  color: var(--red-dark);
  background: #fff;
  box-shadow: 0 20px 28px rgba(17, 24, 39, 0.18);
}

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

.btn:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  min-height: 430px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.38);
  transform: rotate(2deg);
}

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.28));
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
}

.section {
  padding: 72px 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading span,
.page-hero span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading h2,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.movie-card figure {
  position: relative;
  height: 245px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.movie-card.compact figure {
  height: 210px;
}

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

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

.pill {
  position: absolute;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.top-left {
  top: 12px;
  left: 12px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.top-right {
  top: 12px;
  right: 12px;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(8px);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.movie-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  transition: color 0.22s ease;
}

.movie-card:hover h3 {
  color: var(--red-dark);
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row {
  color: var(--muted);
  font-size: 13px;
}

.meta-row span:not(:last-child)::after {
  margin-left: 8px;
  color: #d1d5db;
  content: "·";
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.tag-row.wide span {
  margin-bottom: 4px;
}

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

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-shadow: var(--soft-shadow);
  isolation: isolate;
}

.category-tile::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.78));
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

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

.band-section {
  padding: 70px 0;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--amber));
  color: #fff;
}

.band-inner {
  text-align: center;
}

.band-inner h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
}

.band-inner p {
  max-width: 760px;
  margin: 12px auto 24px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-search,
.search-panel {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  gap: 10px;
}

.hero-search input,
.search-panel input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 16px;
}

.hero-search button {
  color: var(--red-dark);
  background: #fff;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
}

.rank-list,
.latest-list {
  display: grid;
  gap: 14px;
}

.list-card {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
  transition: 0.25s ease;
}

.latest-list .list-card {
  grid-template-columns: 96px minmax(0, 1fr);
}

.list-card:hover {
  transform: translateX(4px);
  box-shadow: var(--soft-shadow);
}

.rank-no {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.list-card img {
  width: 96px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
}

.list-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.list-card p {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.page-hero {
  padding: 78px 0 62px;
  background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.18), transparent 34%), linear-gradient(135deg, #fff7ed, #fff, #fef2f2);
  border-bottom: 1px solid var(--line);
}

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

.search-panel {
  margin: 24px 0 0;
}

.compact-panel {
  max-width: 520px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-bar button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #9a3412;
  background: #fff7ed;
  font-weight: 800;
  cursor: pointer;
}

.filter-bar button.is-active,
.filter-bar button:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  border-color: transparent;
}

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

.empty-state {
  padding: 36px;
  border-radius: 22px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--soft-shadow);
}

.narrow {
  max-width: 900px;
}

.page-rank-list .list-card {
  grid-template-columns: auto 120px minmax(0, 1fr);
}

.page-rank-list .list-card img {
  width: 120px;
  height: 80px;
}

.detail-main {
  background: #f9fafb;
}

.detail-hero {
  padding: 42px 0;
  color: #fff;
  background: linear-gradient(110deg, #991b1b, #dc2626 45%, #f97316);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 28px;
  align-items: center;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fff;
}

.detail-hero h1 {
  max-width: 760px;
}

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

.detail-cover {
  width: 210px;
  height: 300px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 25px 60px rgba(17, 24, 39, 0.32);
}

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

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

.player-card,
.detail-article,
.info-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #111827;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

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

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.36);
  transform: translate(-50%, -50%);
}

.detail-article {
  margin-top: 24px;
  padding: 28px;
}

.detail-article h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 22px;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.info-card {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.info-card dl {
  margin: 0 0 18px;
}

.info-card dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  font-weight: 700;
}

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

.site-footer {
  margin-top: 40px;
  padding: 56px 0 24px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
  gap: 32px;
}

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

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: #9ca3af;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid,
  .all-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero-slider,
  .hero-inner {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 0 70px;
  }

  .hero-poster {
    min-height: 300px;
    max-width: 360px;
    transform: none;
  }

  .hero-poster img {
    min-height: 300px;
  }

  .hero-dots {
    bottom: 22px;
  }

  .featured-grid,
  .movie-grid,
  .all-grid,
  .related-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-cover {
    width: 180px;
    height: 255px;
  }

  .info-card {
    position: static;
  }
}

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

  .brand-text small {
    display: none;
  }

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

  .hero-copy p,
  .band-inner p,
  .detail-hero p {
    font-size: 16px;
  }

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

  .featured-grid,
  .movie-grid,
  .all-grid,
  .related-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .movie-card figure {
    height: 220px;
  }

  .list-card,
  .latest-list .list-card,
  .page-rank-list .list-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .rank-no {
    display: none;
  }

  .list-card img,
  .page-rank-list .list-card img {
    width: 84px;
    height: 62px;
  }

  .section {
    padding: 52px 0;
  }

  .page-hero {
    padding: 52px 0 44px;
  }
}
