:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #f97316;
  --amber: #f59e0b;
  --rose: #fff1f2;
  --cream: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #fffbeb 100%);
  min-height: 100vh;
}

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

img {
  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: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--amber));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.logo-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-text em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  background: #fee2e2;
  color: var(--red-dark);
  transform: translateY(-1px);
}

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

.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, #dc2626, #f97316, #f59e0b);
}

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

.hero-bg {
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.20), transparent 42%);
}

.hero-bg::before {
  background: rgba(0, 0, 0, 0.20);
}

.hero-bg::after {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-shell {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 48px 0;
}

.hero-shell > h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.7;
}

.hero-carousel {
  position: relative;
  min-height: 330px;
  margin-top: 14px;
}

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

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

.hero-copy {
  max-width: 660px;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: 14px;
}

.hero-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.8;
  font-size: 17px;
}

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

.hero-tags {
  margin-top: 18px;
}

.hero-tags span,
.detail-heading span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.band-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn,
.band-actions a,
.page-actions a,
.search-form button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.band-actions a:hover,
.page-actions a:hover,
.search-form button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--red);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.btn-ghost,
.page-actions a {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  position: relative;
  min-height: 310px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  transform: scale(1.01);
}

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.38));
}

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

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

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

.quick-search,
.filter-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.8fr);
  gap: 24px;
  align-items: center;
  margin-top: 34px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.quick-search h2,
.section-title h2,
.page-hero h1,
.detail-card h1 {
  margin: 0;
  color: var(--ink);
}

.quick-search p,
.section-title p,
.page-hero p,
.list-info p,
.movie-body p,
.detail-card p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.search-form,
.filter-panel {
  display: flex;
}

.search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 14px;
  outline: none;
  background: #fff;
}

.search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.search-form button {
  margin-left: 10px;
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  cursor: pointer;
}

.section-block {
  margin-top: 70px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-title h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-title p {
  margin: 8px 0 0;
}

.section-title > a {
  color: var(--red);
  font-weight: 800;
}

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

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

.movie-card,
.list-card,
.category-overview-card,
.detail-card,
.info-card,
.player-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.catalog-grid .movie-cover {
  height: 250px;
}

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

.movie-card:hover .movie-cover img,
.list-card:hover img,
.related-card:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.card-category,
.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-category {
  top: 12px;
  left: 12px;
  color: #fff;
  background: var(--red);
}

.card-year {
  top: 12px;
  right: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

.movie-body {
  padding: 18px;
}

.movie-body h3,
.list-info h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.movie-body h3 a:hover,
.list-info h3 a:hover,
.category-overview-card h2 a:hover,
.related-card:hover span,
.info-card a:hover {
  color: var(--red);
}

.movie-body p {
  margin: 10px 0;
  font-size: 14px;
}

.movie-meta {
  color: #6b7280;
  font-size: 13px;
  gap: 12px;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 12px;
  color: #d1d5db;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: #374151;
  background: #f3f4f6;
  font-size: 12px;
}

.wide-band {
  margin-top: 76px;
  padding: 58px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--amber));
}

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

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

.band-inner p {
  max-width: 760px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.7;
}

.band-actions {
  justify-content: center;
}

.band-actions a:first-child {
  color: var(--red);
  background: #fff;
}

.band-actions a:last-child {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.36);
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.tile-1 { background: linear-gradient(135deg, #ef4444, #f97316); }
.tile-2 { background: linear-gradient(135deg, #f97316, #f59e0b); }
.tile-3 { background: linear-gradient(135deg, #f59e0b, #eab308); }
.tile-4 { background: linear-gradient(135deg, #eab308, #fb923c); }

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 1;
  display: block;
}

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

.category-tile strong {
  max-width: 180px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.6;
}

.category-tile img {
  position: absolute;
  right: -16px;
  bottom: -24px;
  width: 130px;
  height: 170px;
  object-fit: cover;
  border-radius: 18px;
  opacity: 0.38;
  transform: rotate(8deg);
  transition: transform 0.4s ease;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.list-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.list-cover {
  height: 126px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.list-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.list-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-title-row h3 {
  flex: 1;
}

.list-title-row > span,
.list-rank {
  flex: none;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--red);
  background: #fee2e2;
  font-size: 12px;
  font-weight: 800;
}

.list-rank {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--amber));
}

.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.22), transparent 34%), rgba(0, 0, 0, 0.12);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-top: 18px;
  max-width: 820px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
}

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

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
  margin-bottom: 72px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  padding: 18px;
}

.category-cover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 16px;
}

.category-cover-grid img {
  width: 100%;
  height: 116px;
  object-fit: cover;
  background: #fee2e2;
}

.category-overview-card h2 {
  margin: 4px 0 10px;
}

.text-link {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.filter-panel {
  margin-top: 28px;
  grid-template-columns: 1fr 240px;
}

.detail-wrap {
  padding: 30px 0 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 22px;
}

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

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.player-card {
  padding: 10px;
  overflow: hidden;
}

.movie-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

.movie-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 36px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-overlay:hover .play-circle {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.30);
}

.detail-card,
.info-card {
  padding: 26px;
}

.detail-heading {
  color: #6b7280;
  font-size: 14px;
}

.detail-heading .pill {
  color: var(--red);
  background: #fee2e2;
}

.detail-heading span:not(.pill) {
  color: #6b7280;
  background: #f3f4f6;
}

.detail-card h1 {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.one-line {
  font-size: 18px;
}

.detail-tags span {
  color: #374151;
  background: #f3f4f6;
}

.detail-card h2,
.info-card h2 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.detail-card h2:first-child,
.info-card h2:first-child {
  margin-top: 0;
}

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

.detail-side .info-card + .info-card {
  position: static;
}

.info-card dl {
  margin: 0;
}

.info-card dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.info-card dl div:last-child {
  border-bottom: 0;
}

.info-card dt {
  color: #6b7280;
}

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

.related-list {
  display: grid;
  gap: 14px;
}

.related-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.related-card img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  background: #fee2e2;
  transition: transform 0.35s ease;
}

.related-card span {
  display: block;
  font-weight: 800;
  line-height: 1.35;
}

.related-card em {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
}

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

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

.footer-grid h2 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 20px;
}

.footer-grid p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-grid a {
  display: inline-flex;
  margin: 0 14px 8px 0;
  color: #d1d5db;
}

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

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

.is-hidden-card {
  display: none !important;
}

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

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

  .info-card {
    position: static;
  }

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

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

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

  .site-nav a {
    width: 100%;
  }

  .hero-section,
  .hero-shell {
    min-height: 560px;
  }

  .quick-search,
  .filter-panel,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .search-form button {
    margin: 10px 0 0;
  }

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

  .list-card {
    grid-template-columns: 120px 1fr;
  }

  .list-cover {
    height: 94px;
  }
}

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

  .logo-text strong {
    font-size: 18px;
  }

  .logo-text em {
    display: none;
  }

  .hero-section,
  .hero-shell {
    min-height: 520px;
  }

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

  .movie-grid,
  .rank-grid,
  .catalog-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-cover,
  .catalog-grid .movie-cover {
    height: 235px;
  }

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

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

  .list-cover {
    height: 185px;
  }

  .detail-card,
  .info-card {
    padding: 20px;
  }
}
