:root {
  --amber: #f59e0b;
  --amber-dark: #b45309;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --sky: #0ea5e9;
  --slate: #0f172a;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, 0.1);
  --soft: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.92), rgba(255, 241, 242, 0.92), rgba(240, 249, 255, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--amber-dark), var(--rose), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a,
.mobile-panel a {
  color: #374151;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
  color: var(--rose);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  width: 100%;
  padding: 12px 24px 18px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--line);
}

.mobile-panel a {
  display: block;
  padding: 11px 0;
  font-weight: 700;
}

main {
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: 1;
  background: radial-gradient(circle at 24% 30%, rgba(245, 158, 11, 0.38), transparent 36%), linear-gradient(90deg, rgba(120, 53, 15, 0.94), rgba(136, 19, 55, 0.84) 48%, rgba(12, 74, 110, 0.82));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 72px;
  text-align: center;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fffbeb;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.eyebrow.dark {
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(225, 29, 72, 0.16);
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-content p {
  width: min(760px, 100%);
  margin: 0 auto 26px;
  color: #ffedd5;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row,
.quick-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.quick-cats a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.filter-panel button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--rose));
  box-shadow: 0 20px 40px rgba(225, 29, 72, 0.34);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.filter-panel button:hover,
.text-link:hover {
  transform: translateY(-2px) scale(1.02);
}

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

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

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

.hero-search {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 28px;
  width: min(760px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  outline: 0;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
}

.hero-search button {
  min-width: 104px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--rose));
  font-weight: 900;
  cursor: pointer;
}

.section {
  padding: 72px 0;
}

.page-main {
  padding-top: 88px;
}

.section-title {
  width: min(760px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.left-title {
  margin-left: 0;
  text-align: left;
}

.section-title span {
  color: var(--rose);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.section-title h2,
.page-hero h1,
.detail-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--amber-dark), var(--rose), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title p,
.page-hero p {
  color: var(--muted);
  line-height: 1.8;
}

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

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

.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  padding-bottom: 70px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fde68a, #fecdd3, #bae6fd);
}

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

.poster-wrap img,
.land-image img,
.rank-item img,
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.land-card:hover .land-image img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.74));
  opacity: 0.88;
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--amber), var(--rose));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}

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

.card-body strong {
  font-size: 18px;
  line-height: 1.35;
  color: #111827;
}

.meta-line,
.desc-line,
.rank-info em,
.footer-inner p,
.poster-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.desc-line {
  display: -webkit-box;
  min-height: 45px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.tag-row span,
.quick-cats a,
.detail-tags span {
  color: var(--rose-dark);
  background: #fff1f2;
  border-color: rgba(225, 29, 72, 0.12);
}

.soft-band {
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 34px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

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

.rank-item:hover {
  background: linear-gradient(90deg, #fffbeb, #fff1f2);
  transform: translateX(4px);
}

.rank-no {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #64748b;
  font-weight: 900;
  background: #e5e7eb;
}

.rank-no.top {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
}

.rank-item img {
  width: 104px;
  height: 68px;
  border-radius: 14px;
}

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

.rank-info strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info em {
  display: block;
  font-style: normal;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-score {
  color: var(--amber-dark);
  font-weight: 900;
}

.glass-panel,
.category-overview,
.content-card,
.info-card,
.poster-card,
.player-card,
.filter-panel,
.side-cards {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
}

.glass-panel {
  padding: 28px;
  position: sticky;
  top: 92px;
}

.glass-panel h2,
.side-cards h2,
.content-card h2,
.info-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.glass-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.quick-cats {
  justify-content: flex-start;
  margin-top: 20px;
}

.category-stack {
  display: grid;
  gap: 36px;
}

.category-strip {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.strip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.strip-head h3 {
  margin: 0;
  font-size: 25px;
}

.strip-head a,
.text-link {
  color: var(--rose);
  font-weight: 900;
}

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

.land-card {
  display: block;
  min-width: 0;
}

.land-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  background: linear-gradient(135deg, #fde68a, #fecdd3, #bae6fd);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.land-card strong {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero {
  padding: 54px 0 34px;
}

.page-hero h1 {
  margin-top: 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb.light {
  color: rgba(255, 255, 255, 0.78);
}

.category-overview-list {
  display: grid;
  gap: 24px;
  padding-bottom: 70px;
}

.category-overview {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.category-overview span {
  color: var(--rose);
  font-weight: 900;
}

.category-overview h2 {
  margin: 8px 0;
  font-size: 30px;
}

.category-overview p {
  color: var(--muted);
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
}

.search-filter {
  grid-template-columns: 1fr 170px 170px 150px auto;
}

.filter-panel input,
.filter-panel select {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.filter-panel button,
.text-link {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--rose));
}

.movie-card.is-hidden {
  display: none;
}

.large-rank {
  max-height: none;
}

.rank-page-grid {
  padding-bottom: 70px;
}

.side-cards {
  position: sticky;
  top: 92px;
  padding: 24px;
}

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

.side-card-list .movie-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  border-radius: 18px;
}

.side-card-list .poster-wrap {
  aspect-ratio: 1 / 1;
}

.side-card-list .desc-line {
  display: none;
}

.detail-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: #111827;
}

.detail-bg,
.detail-bg-shade {
  position: absolute;
  inset: 0;
}

.detail-bg-shade {
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.96)), linear-gradient(90deg, rgba(120, 53, 15, 0.82), rgba(136, 19, 55, 0.62), rgba(12, 74, 110, 0.58));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px 0 56px;
}

.detail-copy {
  max-width: 820px;
  color: #fff;
}

.detail-copy h1 {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.detail-copy p {
  color: #ffedd5;
  font-size: 20px;
  line-height: 1.8;
}

.detail-copy .hero-tags {
  justify-content: flex-start;
}

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

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

.player-card {
  overflow: hidden;
  padding: 0;
  background: #0f172a;
}

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

.player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.36), rgba(15, 23, 42, 0.74));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  color: #fff;
  font-size: 28px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.36);
}

.content-card,
.info-card {
  padding: 28px;
}

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

.poster-card {
  overflow: hidden;
}

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

.poster-card div {
  padding: 18px;
}

.poster-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 14px;
  margin: 18px 0;
}

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

.info-card dd {
  margin: 0;
  color: #111827;
  line-height: 1.55;
}

.detail-tags {
  justify-content: flex-start;
}

.related-section {
  padding-top: 30px;
}

.site-footer {
  padding: 42px 0 24px;
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #475569;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  color: #64748b;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
}

.accent-rose .section-title span,
.accent-rose h2,
.accent-rose h3 {
  color: #e11d48;
}

.accent-amber h2,
.accent-amber h3 {
  color: #b45309;
}

.accent-orange h2,
.accent-orange h3 {
  color: #c2410c;
}

.accent-sky h2,
.accent-sky h3 {
  color: #0284c7;
}

.accent-pink h2,
.accent-pink h3 {
  color: #db2777;
}

.accent-purple h2,
.accent-purple h3 {
  color: #7c3aed;
}

.accent-teal h2,
.accent-teal h3 {
  color: #0f766e;
}

.accent-blue h2,
.accent-blue h3 {
  color: #2563eb;
}

.accent-slate h2,
.accent-slate h3 {
  color: #334155;
}

.accent-green h2,
.accent-green h3 {
  color: #16a34a;
}

@media (max-width: 980px) {
  .movie-grid,
  .catalog-grid,
  .compact-grid,
  .land-grid,
  .mini-land-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout,
  .category-overview,
  .detail-grid,
  .footer-inner,
  .rank-page-grid {
    grid-template-columns: 1fr;
  }

  .glass-panel,
  .side-cards {
    position: static;
  }

  .search-filter {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

  .brand {
    font-size: 21px;
  }

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

  .hero-content {
    text-align: left;
  }

  .hero-content p,
  .hero-tags,
  .hero-actions {
    justify-content: flex-start;
    margin-left: 0;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-dots {
    bottom: 126px;
  }

  .section {
    padding: 52px 0;
  }

  .movie-grid,
  .catalog-grid,
  .compact-grid,
  .land-grid,
  .mini-land-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-score {
    display: none;
  }

  .rank-item img {
    width: 84px;
    height: 58px;
  }

  .filter-panel,
  .search-filter {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    min-height: 620px;
  }

  .detail-copy p {
    font-size: 17px;
  }

  .side-card-list .movie-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

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