:root {
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-300: #d6d3d1;
  --stone-100: #f5f5f4;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(120, 53, 15, 0.16);
  --shadow-card: 0 14px 32px rgba(68, 64, 60, 0.14);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: var(--amber-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--amber-950), var(--amber-800), var(--amber-950));
  box-shadow: 0 12px 30px rgba(69, 26, 3, 0.26);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--amber-950);
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 24px rgba(245, 158, 11, 0.28);
}

.brand-name {
  font-size: 18px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  color: rgba(255, 251, 235, 0.82);
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.nav-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.nav-search input,
.hero-search input,
.toolbar input,
.toolbar select {
  border: 0;
  outline: 0;
}

.nav-search input,
.hero-search input {
  width: 210px;
  color: var(--white);
  background: transparent;
  padding: 8px 12px;
}

.nav-search input::placeholder,
.hero-search input::placeholder {
  color: rgba(255, 251, 235, 0.68);
}

.nav-search button,
.hero-search button {
  color: var(--amber-950);
  border: 0;
  border-radius: 999px;
  background: #fde68a;
  padding: 8px 16px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  color: var(--white);
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px 11px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--stone-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  background-image: linear-gradient(90deg, rgba(12, 10, 9, 0.86), rgba(12, 10, 9, 0.42), rgba(12, 10, 9, 0.7)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 35%, rgba(245, 158, 11, 0.24), transparent 34%), linear-gradient(0deg, rgba(12, 10, 9, 0.86), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 96px 0 82px;
  color: var(--white);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  color: #fde68a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 780px;
  margin: 18px 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 251, 235, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta {
  margin-top: 24px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 251, 235, 0.9);
}

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

.hero-actions.slim {
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 18px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--amber-500));
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
}

.btn.primary:hover,
.nav-search button:hover,
.hero-search button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.btn.text {
  color: #fde68a;
}

.btn.light {
  color: var(--amber-950);
  background: var(--white);
}

.btn.full {
  width: 100%;
}

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

.hero-dot {
  width: 32px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition: 0.2s ease;
}

.hero-dot.is-active {
  width: 58px;
  background: #fde68a;
}

.content-section {
  padding: 76px 0;
}

.content-section.compact-top {
  padding-top: 34px;
}

.content-section.light {
  background: var(--white);
}

.content-section.warm {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.content-section.ivory {
  background: linear-gradient(135deg, #fef3c7, #fff7ed 45%, #ffffff);
}

.section-shell,
.footer-shell,
.page-main,
.cta-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section-heading h2,
.rank-panel h2,
.side-card h2,
.archive-hero h1,
.detail-card h1,
.cta-band h2 {
  margin: 0;
  color: var(--stone-950);
  letter-spacing: -0.045em;
}

.section-heading h2,
.rank-panel h2,
.side-card h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-more {
  color: var(--amber-800);
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(146, 64, 14, 0.08);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(120, 53, 15, 0.18);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-900), var(--amber-500));
}

.movie-card.poster .card-media {
  aspect-ratio: 2 / 3;
}

.card-media img,
.mini-cover img,
.poster-box img,
.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .card-media img,
.mini-card:hover .mini-cover img,
.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.card-type,
.card-duration,
.rank-badge,
.mini-rank {
  position: absolute;
  z-index: 2;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(12, 10, 9, 0.78);
  backdrop-filter: blur(10px);
}

.card-type {
  left: 12px;
  top: 12px;
}

.card-duration {
  right: 12px;
  bottom: 12px;
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  min-width: 34px;
  text-align: center;
  background: linear-gradient(135deg, #dc2626, var(--amber-600));
}

.card-content {
  display: block;
  padding: 17px;
}

.card-tags {
  display: block;
  min-height: 19px;
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-content h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 6px 0 8px;
  color: var(--stone-950);
  font-size: 18px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-meta span {
  color: var(--stone-700);
  background: var(--amber-50);
  font-size: 12px;
}

.split-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.wide-panel,
.rank-panel,
.side-card,
.detail-card,
.poster-box {
  border: 1px solid rgba(146, 64, 14, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.wide-panel {
  padding: 28px;
}

.rank-panel,
.side-card,
.poster-box {
  padding: 22px;
}

.release-list {
  display: grid;
  gap: 13px;
}

.release-list.compact {
  gap: 10px;
}

.mini-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 251, 235, 0.76);
  transition: 0.2s ease;
}

.release-list.compact .mini-card {
  grid-template-columns: 94px 1fr;
}

.mini-card:hover {
  background: #fef3c7;
}

.mini-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 13px;
}

.mini-rank {
  left: 7px;
  top: 7px;
  min-width: 28px;
  text-align: center;
  background: linear-gradient(135deg, var(--amber-700), var(--amber-500));
}

.mini-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mini-info strong,
.mini-info span,
.mini-info em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-info strong {
  color: var(--stone-950);
  font-size: 15px;
}

.mini-info span {
  color: var(--stone-600);
  font-size: 13px;
}

.mini-info em {
  color: var(--amber-700);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile,
.category-overview-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--amber-50), var(--white));
  border: 1px solid rgba(146, 64, 14, 0.1);
  box-shadow: var(--shadow-card);
  transition: 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(120, 53, 15, 0.16);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  height: 116px;
  overflow: hidden;
  background: var(--amber-900);
}

.category-thumbs.mosaic {
  height: 156px;
}

.category-text {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.category-text strong {
  color: var(--stone-950);
  font-size: 20px;
}

.category-text em,
.category-text small {
  color: var(--stone-600);
  font-style: normal;
}

.category-text small {
  font-size: 12px;
}

.cta-band {
  margin-top: 0;
  margin-bottom: 0;
  padding: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 0;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-950), var(--amber-800), var(--amber-950));
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.cta-band p {
  max-width: 640px;
  margin: 10px 0 0;
  color: rgba(255, 251, 235, 0.82);
}

.page-main {
  padding: 28px 0 80px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--stone-600);
  margin-bottom: 18px;
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--amber-800);
}

.archive-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(36px, 6vw, 68px);
  color: var(--white);
  background: radial-gradient(circle at 85% 10%, rgba(253, 230, 138, 0.26), transparent 26%), linear-gradient(120deg, var(--amber-950), var(--amber-800), var(--amber-950));
  box-shadow: var(--shadow-soft);
}

.archive-hero h1 {
  color: var(--white);
  font-size: clamp(38px, 7vw, 70px);
  line-height: 1;
  margin: 12px 0 16px;
}

.archive-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 251, 235, 0.84);
  font-size: 18px;
}

.archive-hero .hero-search {
  width: min(620px, 100%);
  margin-top: 26px;
}

.hero-search.large input,
.archive-hero .hero-search input {
  flex: 1;
  width: auto;
}

.toolbar {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.toolbar input,
.toolbar select {
  min-height: 48px;
  border-radius: 16px;
  padding: 0 16px;
  background: var(--amber-50);
  border: 1px solid rgba(146, 64, 14, 0.14);
}

.toolbar input {
  flex: 1;
}

.search-status {
  color: var(--stone-700);
  font-weight: 900;
  margin-bottom: 20px;
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: 0 28px 58px rgba(12, 10, 9, 0.28);
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.78), rgba(12, 10, 9, 0.35));
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-orb {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-500));
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.32);
}

.player-message {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 80%;
  transform: translate(-50%, -50%);
  color: var(--white);
  text-align: center;
  border-radius: 16px;
  padding: 16px 20px;
  background: rgba(12, 10, 9, 0.74);
}

.detail-card {
  padding: clamp(22px, 4vw, 34px);
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.detail-card h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  margin-top: 8px;
}

.detail-card h2 {
  margin: 28px 0 10px;
  color: var(--stone-950);
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: var(--stone-700);
  font-size: 17px;
}

.detail-score {
  flex: 0 0 auto;
  color: var(--white);
  border-radius: 18px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--amber-700), var(--amber-500));
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.22);
}

.detail-meta {
  margin-bottom: 12px;
}

.detail-meta span {
  color: var(--stone-700);
  background: var(--amber-50);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag-cloud a {
  color: var(--amber-800);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--amber-100);
  font-weight: 800;
  font-size: 13px;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.poster-box img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  margin-bottom: 16px;
  object-fit: cover;
}

.site-footer {
  color: rgba(255, 251, 235, 0.8);
  background: var(--stone-950);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.8fr 1fr;
  gap: 36px;
  padding: 58px 0 34px;
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-col h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 16px;
}

.footer-col a:hover {
  color: #fde68a;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 251, 235, 0.56);
  font-size: 13px;
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav-links,
  .nav-search {
    grid-column: 1 / -1;
    display: none;
  }

  .nav-shell.is-open .nav-links,
  .nav-shell.is-open .nav-search {
    display: flex;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-search input {
    flex: 1;
    width: auto;
  }

  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

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

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

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

  .detail-side {
    position: static;
  }

  .cta-band {
    width: 100%;
    border-radius: 0;
    padding: 44px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .section-shell,
  .footer-shell,
  .page-main {
    width: min(100% - 24px, 1180px);
  }

  .brand-name {
    font-size: 15px;
  }

  .hero-content {
    padding-bottom: 72px;
  }

  .hero-actions,
  .toolbar,
  .section-heading,
  .detail-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .movie-grid.three,
  .movie-grid.four,
  .poster-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .mini-card,
  .release-list.compact .mini-card {
    grid-template-columns: 98px 1fr;
  }

  .archive-hero {
    border-radius: 22px;
  }

  .player-card {
    border-radius: 18px;
  }

  .poster-box {
    display: none;
  }
}
