:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 10px 20px rgba(120, 53, 15, 0.10);
  --shadow-lg: 0 22px 45px rgba(120, 53, 15, 0.18);
  --radius-lg: 18px;
  --radius-xl: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--amber-50) 0%, #fff7ed 56%, #ffffff 100%);
  color: var(--gray-900);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid var(--amber-200);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1280px, 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;
  color: var(--amber-800);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: var(--shadow-md);
}

.brand-text {
  font-size: 24px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--amber-800), var(--orange-600), var(--amber-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-nav-link {
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--amber-800);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--white);
  background: var(--amber-600);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--amber-800);
  background: var(--amber-100);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 251, 235, 0.96);
  box-shadow: var(--shadow-md);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--amber-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(251, 191, 36, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(69, 26, 3, 0.95), rgba(120, 53, 15, 0.82) 45%, rgba(194, 65, 12, 0.52));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: var(--amber-100);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-400);
}

.hero h1,
.detail-copy h1,
.inner-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.hero-summary {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--amber-100);
  font-size: clamp(17px, 2.4vw, 24px);
  line-height: 1.7;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.tag-row span {
  padding: 5px 9px;
  color: var(--amber-800);
  background: var(--amber-100);
}

.hero-actions,
.search-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.quick-search button,
.filter-form button,
.search-actions button,
.player-button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.quick-search button,
.filter-form button,
.search-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: var(--shadow-md);
}

.primary-button:hover,
.quick-search button:hover,
.filter-form button:hover,
.search-actions button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--amber-100);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.20);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--amber-900);
  background: rgba(255, 251, 235, 0.86);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.48);
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-400);
}

.page-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.intro-strip {
  padding-top: 38px;
  padding-bottom: 22px;
}

.intro-card,
.ranking-panel,
.search-panel,
.article-block,
.related-panel,
.category-overview-card {
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
}

.intro-card {
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 30px;
  align-items: center;
}

.intro-card h2,
.section-heading h2,
.panel-heading h2,
.related-panel h2,
.article-block h2 {
  margin: 0;
  color: var(--amber-900);
  letter-spacing: -0.04em;
}

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

.intro-card p,
.section-heading p,
.inner-hero p,
.article-block p,
.category-overview-card p {
  color: var(--gray-700);
  line-height: 1.8;
}

.quick-search {
  display: flex;
  padding: 8px;
  border-radius: 999px;
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
}

.quick-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  background: transparent;
  color: var(--gray-900);
}

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

.section-more,
.panel-heading a,
.text-link {
  color: var(--amber-700);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link,
.poster-shell,
.collection-image,
.category-cover,
.related-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 18%, rgba(251, 191, 36, 0.42), transparent 32%),
    linear-gradient(135deg, var(--amber-900), var(--amber-600));
}

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

.poster-shell img,
.collection-image img,
.category-cover img,
.related-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-shell img,
.collection-card:hover .collection-image img,
.category-overview-card:hover .category-cover img,
.related-card:hover .related-cover img {
  transform: scale(1.06);
}

.duration-badge,
.rank-badge,
.related-cover span {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.movie-card-body {
  padding: 15px;
}

.movie-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--amber-700);
}

.movie-meta,
.movie-line {
  margin: 8px 0 0;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.55;
}

.movie-line {
  color: var(--gray-700);
}

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

.collection-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 150px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.collection-image {
  height: 100%;
}

.collection-copy {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.collection-copy strong {
  color: var(--amber-900);
  font-size: 18px;
}

.collection-copy small {
  color: var(--amber-700);
  font-weight: 900;
}

.collection-copy em {
  color: var(--gray-700);
  font-size: 13px;
  line-height: 1.6;
  font-style: normal;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.ranking-panel,
.related-panel,
.article-block {
  padding: 24px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--gray-100);
}

.ranking-row span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 900;
}

.ranking-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row em {
  grid-column: 2;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.inner-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(251, 191, 36, 0.34), transparent 28%),
    linear-gradient(135deg, var(--amber-900), var(--orange-600));
  color: var(--amber-100);
}

.inner-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.inner-hero p {
  max-width: 780px;
  color: var(--amber-100);
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-cover {
  min-height: 230px;
}

.category-overview-card > div {
  padding: 24px;
}

.category-overview-card h2 {
  margin: 0;
  color: var(--amber-900);
}

.category-count {
  color: var(--amber-700) !important;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--amber-100);
  background: var(--amber-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(2px) saturate(0.85);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(120, 53, 15, 0.86), rgba(194, 65, 12, 0.46));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--amber-200);
  font-size: 14px;
}

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

.detail-layout,
.detail-content {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: var(--amber-800);
  box-shadow: var(--shadow-lg);
}

.detail-one-line {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--amber-100);
  font-size: 21px;
  line-height: 1.7;
}

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

.content-main {
  display: grid;
  gap: 24px;
}

.player-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-lg);
}

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

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

.player-button {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.30), rgba(0, 0, 0, 0.52));
  border-radius: 0;
}

.player-button span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-size: 34px;
  box-shadow: var(--shadow-lg);
}

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

.article-block p {
  margin: 16px 0 0;
  font-size: 17px;
}

.highlight-block {
  border-left: 6px solid var(--amber-600);
  background: rgba(255, 251, 235, 0.92);
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--gray-100);
}

.info-list dt {
  color: var(--amber-700);
  font-weight: 900;
}

.info-list dd {
  margin: 0;
  color: var(--gray-700);
}

.related-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.related-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: var(--amber-50);
}

.related-cover {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.related-cover span {
  right: 6px;
  bottom: 6px;
  padding: 3px 7px;
}

.related-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.related-info strong {
  overflow: hidden;
  color: var(--gray-900);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-info em,
.related-info small {
  color: var(--gray-500);
  font-size: 12px;
  line-height: 1.45;
  font-style: normal;
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.55fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 24px;
}

.filter-form label {
  display: grid;
  gap: 8px;
  color: var(--amber-800);
  font-weight: 900;
}

.filter-form input,
.filter-form select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--amber-200);
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
  background: var(--white);
}

.search-count {
  padding: 0 24px 20px;
  color: var(--gray-700);
  font-weight: 800;
}

.search-panel .movie-grid {
  padding: 0 24px 24px;
}

.search-actions {
  justify-content: center;
  margin: 0;
  padding-bottom: 28px;
}

.site-footer {
  margin-top: 40px;
  color: var(--amber-100);
  background: linear-gradient(180deg, var(--amber-900), #451a03);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  max-width: 560px;
  color: var(--amber-200);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: flex-start;
}

.footer-links a {
  color: var(--amber-200);
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--white);
}

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

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

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

  .related-panel {
    position: static;
  }

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero {
    height: 620px;
  }

  .hero-copy {
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 92px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-card,
  .detail-layout,
  .filter-form,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    align-items: start;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }

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

  .category-overview-card,
  .collection-card {
    grid-template-columns: 1fr;
  }

  .collection-image,
  .category-cover {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .quick-search {
    border-radius: 18px;
    flex-direction: column;
    gap: 8px;
  }

  .quick-search input,
  .quick-search button {
    height: 48px;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 20px;
  }

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

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

  .related-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .section-heading,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
