:root {
  --page: #fff7ed;
  --page-soft: #fffbf5;
  --surface: #ffffff;
  --surface-warm: #fff3df;
  --line: #fed7aa;
  --line-soft: #ffedd5;
  --text: #1f2937;
  --muted: #6b7280;
  --orange: #f97316;
  --orange-deep: #ea580c;
  --amber: #f59e0b;
  --rose: #fb7185;
  --shadow: 0 20px 55px rgba(124, 45, 18, 0.14);
  --shadow-soft: 0 12px 30px rgba(124, 45, 18, 0.10);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 42%, #fff1f2 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;
  border-bottom: 1px solid rgba(254, 215, 170, 0.85);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(124, 45, 18, 0.06);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.brand-copy strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  background: linear-gradient(90deg, #d97706, var(--orange-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--muted);
}

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

.nav-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: min(270px, 32vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 14px;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.06);
}

.search-box span {
  color: var(--orange-deep);
  font-size: 0.8rem;
  font-weight: 800;
  margin-right: 8px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--orange-deep);
  font-size: 1.7rem;
  cursor: pointer;
}

.search-results-wrap {
  position: relative;
}

.search-results {
  position: absolute;
  right: 0;
  top: 0;
  width: min(520px, 100%);
  max-height: 430px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.search-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-item:hover {
  background: var(--line-soft);
}

.search-item img {
  width: 54px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

.search-item strong {
  display: block;
  color: #111827;
}

.search-item span,
.search-empty {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-section {
  padding: 28px 0 18px;
}

.hero-shell {
  border-radius: 34px;
  background: linear-gradient(120deg, #f59e0b 0%, #f97316 48%, #fb7185 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  gap: 36px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  padding: 58px;
  transition: opacity 0.45s ease, transform 0.45s ease;
  transform: translateX(28px);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.35), transparent 26%),
    radial-gradient(circle at 72% 25%, rgba(255, 255, 255, 0.20), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
  pointer-events: none;
}

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

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--orange-deep);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy h3 {
  margin: 18px 0 0;
  color: white;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-text {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 1.08rem;
  line-height: 1.9;
}

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

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

.tag-row span {
  background: #ffedd5;
  color: #9a3412;
}

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

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

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

.btn.primary {
  color: var(--orange-deep);
  background: #fff;
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.22);
}

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

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.30);
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-dots {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

.section-block {
  padding: 56px 0;
}

.soft-block {
  background: rgba(255, 255, 255, 0.48);
  border-top: 1px solid rgba(254, 215, 170, 0.45);
  border-bottom: 1px solid rgba(254, 215, 170, 0.45);
}

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

.inline-head {
  width: 100%;
}

.section-head h2,
.rank-panel h2,
.related-categories h2,
.text-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.more-link {
  color: var(--orange-deep);
  font-weight: 900;
}

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

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(254, 215, 170, 0.72);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fff7ed;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.score-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(5px);
  font-size: 0.82rem;
  font-weight: 900;
}

.play-bubble {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--orange-deep);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

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

.card-meta,
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-desc {
  min-height: 44px;
  margin: 8px 0 12px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: white;
  box-shadow: var(--shadow-soft);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
}

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

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

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

.category-tile strong {
  font-size: 1.35rem;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 420px;
  gap: 34px;
  align-items: start;
}

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

.compact-card .card-desc,
.compact-card .tag-row {
  display: none;
}

.rank-panel,
.text-card,
.catalog-toolbar,
.related-categories,
.category-card-large {
  border: 1px solid rgba(254, 215, 170, 0.72);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-panel {
  padding: 22px;
  position: sticky;
  top: 96px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 86px 84px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(254, 215, 170, 0.72);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(124, 45, 18, 0.06);
}

.small-rank .rank-row {
  grid-template-columns: 74px 64px 1fr;
}

.rank-number {
  color: var(--orange-deep);
  font-weight: 950;
}

.rank-cover img {
  width: 84px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
}

.small-rank .rank-cover img {
  width: 64px;
  height: 88px;
}

.rank-copy h3 {
  margin: 0 0 8px;
}

.rank-copy h3 a:hover {
  color: var(--orange-deep);
}

.rank-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.rank-meta span {
  font-size: 0.82rem;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  padding: 4px 8px;
}

.page-hero {
  padding: 72px 0;
  color: #fff;
  background: linear-gradient(120deg, #f59e0b, #f97316 54%, #fb7185);
}

.compact-hero {
  padding: 56px 0;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.9;
  font-size: 1.06rem;
}

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

.category-card-large {
  display: grid;
  gap: 16px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.category-card-large h2 {
  margin: 0 0 8px;
}

.category-card-large p {
  color: var(--muted);
  line-height: 1.7;
}

.category-card-large span {
  color: var(--orange-deep);
  font-weight: 900;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 24px;
}

.catalog-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf5;
  outline: none;
  padding: 12px 14px;
}

.related-categories {
  padding: 24px;
}

.related-categories div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.related-categories a {
  border-radius: 999px;
  padding: 10px 14px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 900;
}

.detail-hero {
  padding: 50px 0;
  background: linear-gradient(120deg, #f59e0b, #f97316 52%, #fb7185);
}

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

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.20);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.24);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.84);
}

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

.detail-info h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1.05;
}

.detail-lead {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.9;
  font-size: 1.08rem;
}

.detail-meta,
.large-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  font-weight: 850;
}

.player-block {
  padding-top: 36px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--orange-deep);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
  font-size: 2rem;
}

.player-overlay strong {
  font-size: 1.25rem;
}

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

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.text-card {
  padding: 28px;
}

.warm-card {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.text-card p {
  color: #374151;
  line-height: 2;
  font-size: 1.02rem;
}

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

.site-footer {
  padding: 44px 0 24px;
  border-top: 1px solid rgba(254, 215, 170, 0.72);
  background: rgba(255, 255, 255, 0.54);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 30px;
}

.footer-brand {
  color: var(--orange-deep);
  font-size: 1.4rem;
  font-weight: 950;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin: 6px 0;
}

.site-footer a:hover {
  color: var(--orange-deep);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(254, 215, 170, 0.72);
}

.footer-bottom button {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--orange-deep);
  background: #fff;
  padding: 9px 13px;
  cursor: pointer;
}

.catalog-grid.is-filtering .movie-card[hidden] {
  display: none;
}

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

  .main-nav.is-open {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    padding: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr 300px;
    padding: 42px;
  }

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

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

  .two-column,
  .content-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

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

  .brand-copy strong {
    font-size: 1.15rem;
  }

  .brand-copy small {
    display: none;
  }

  .search-box {
    width: 44px;
    padding: 8px 10px;
  }

  .search-box span {
    margin: 0;
  }

  .search-box input {
    position: absolute;
    right: 0;
    top: 48px;
    width: min(88vw, 360px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    box-shadow: var(--shadow-soft);
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 30px 24px 76px;
  }

  .hero-poster {
    max-width: 250px;
    margin: 0 auto;
  }

  .hero-controls {
    left: 24px;
    right: 24px;
  }

  .movie-grid,
  .mini-grid,
  .category-grid,
  .category-overview,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-desc,
  .movie-card .tag-row {
    display: none;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .rank-row,
  .small-rank .rank-row {
    grid-template-columns: 58px 66px 1fr;
    gap: 10px;
  }

  .rank-cover img,
  .small-rank .rank-cover img {
    width: 66px;
    height: 90px;
  }

  .rank-copy p,
  .rank-copy .tag-row {
    display: none;
  }

  .detail-poster {
    max-width: 260px;
    margin: 0 auto;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
