/* Static movie site styles inspired by the uploaded amber-gradient card layout. */
:root {
  --color-bg: #fff7ed;
  --color-bg-soft: #fffbeb;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-line: #fde68a;
  --color-primary: #f59e0b;
  --color-primary-dark: #d97706;
  --color-dark: #111827;
  --shadow-soft: 0 18px 45px rgba(120, 53, 15, 0.16);
  --shadow-card: 0 12px 30px rgba(120, 53, 15, 0.12);
  --radius-large: 28px;
  --radius-card: 20px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 46%, #fff7ed 100%);
  color: var(--color-text);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #d97706 0%, #f97316 48%, #ea580c 100%);
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.22);
}

.top-shell {
  width: min(1220px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #b45309;
  background: #ffffff;
  box-shadow: inset 0 -8px 20px rgba(245, 158, 11, 0.18);
}

.brand-text {
  font-size: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.main-nav a,
.mobile-panel a {
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-panel a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 300px;
}

.header-search input,
.large-search input,
.filter-panel input,
.advanced-filters select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  outline: none;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
}

.header-search button,
.large-search button,
.filter-panel button,
.primary-button,
.library-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  color: #92400e;
  background: #ffffff;
  box-shadow: none;
}

.header-search button:hover,
.large-search button:hover,
.filter-panel button:hover,
.primary-button:hover,
.library-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.28);
}

.menu-toggle {
  display: none;
  color: #ffffff;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 8px 12px;
}

.mobile-panel {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 12px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.38) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.9), transparent 48%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 7vw, 82px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 760px;
  margin: 24px 0 0;
  color: #f9fafb;
  font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  padding: 6px 10px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  padding: 11px 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.36);
  font-size: 34px;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 30px;
  background: #f59e0b;
}

.search-band,
.content-section,
.page-shell,
.detail-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.search-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
  margin-top: -52px;
  position: relative;
  z-index: 6;
  padding: 28px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.search-band h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.search-band p,
.library-note,
.category-overview-card p,
.page-hero p,
.detail-one-line,
.detail-content p {
  color: var(--color-muted);
}

.large-search {
  display: flex;
  gap: 10px;
}

.large-search input {
  border-color: #fed7aa;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading a,
.text-link {
  color: var(--color-primary-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid #fde68a;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame,
.poster-wide,
.hero-media {
  position: relative;
  overflow: hidden;
  display: block;
  background:
    radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.45), transparent 24%),
    linear-gradient(135deg, #431407, #b45309 50%, #f59e0b);
}

.poster-frame::before,
.poster-wide::before,
.hero-media::before {
  content: attr(data-fallback);
  position: absolute;
  inset: auto 16px 16px;
  z-index: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.poster-frame img,
.poster-wide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

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

.poster-wide {
  aspect-ratio: 16 / 9;
}

.score-pill,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(8px);
}

.score-pill {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

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

.movie-card-body h3 {
  min-height: 3em;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card-body p {
  min-height: 3.2em;
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}

.meta-row span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #f59e0b;
}

.amber-section {
  margin-top: 72px;
  padding: 44px;
  border-radius: var(--radius-large);
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  box-shadow: var(--shadow-soft);
}

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

.category-tile {
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent 60%);
}

.category-tile span,
.category-tile em {
  position: absolute;
  left: 18px;
  z-index: 3;
  color: #ffffff;
}

.category-tile span {
  bottom: 42px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile em {
  bottom: 18px;
  font-style: normal;
  opacity: 0.86;
}

.two-column-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  padding-bottom: 76px;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid #fde68a;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(120, 53, 15, 0.09);
}

.compact-poster {
  border-radius: 14px;
}

.compact-info strong,
.compact-info em {
  display: block;
}

.compact-info em {
  color: var(--color-muted);
  font-style: normal;
  font-size: 13px;
}

.library-button {
  display: inline-flex;
  margin-top: 16px;
}

.page-shell {
  padding: 42px 0 80px;
}

.page-hero {
  overflow: hidden;
  margin-bottom: 34px;
  padding: 54px;
  border-radius: var(--radius-large);
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.42), transparent 26%),
    linear-gradient(135deg, #111827, #7c2d12 58%, #ea580c);
  box-shadow: var(--shadow-soft);
}

.page-hero p {
  max-width: 820px;
  color: #fff7ed;
  font-size: 18px;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 26px;
  align-items: center;
  padding: 18px;
  border: 1px solid #fde68a;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-overview-card .poster-wide {
  border-radius: 18px;
}

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

.sample-line {
  font-size: 14px;
}

.filter-panel {
  padding: 24px;
  border: 1px solid #fde68a;
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.filter-row,
.advanced-filters {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 16px;
}

.advanced-filters {
  grid-template-columns: 1.5fr 0.7fr 0.7fr 0.7fr auto;
}

.filter-panel input,
.advanced-filters select {
  border-color: #fed7aa;
  color: var(--color-text);
  background: #ffffff;
}

.quick-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.quick-filter-row button {
  padding: 8px 12px;
  color: #92400e;
  background: #fffbeb;
  box-shadow: none;
}

.filter-count {
  color: var(--color-muted);
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
  color: var(--color-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-primary-dark);
  font-weight: 800;
}

.detail-shell {
  padding-bottom: 80px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius-large);
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.3), transparent 24%),
    linear-gradient(135deg, #111827, #7c2d12 62%, #ea580c);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.detail-one-line {
  max-width: 760px;
  color: #fff7ed;
  font-size: 19px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid span {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta-grid b {
  display: block;
  margin-bottom: 2px;
  color: #fde68a;
  font-size: 12px;
}

.large-tags span {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.player-section {
  margin-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-large);
  background: #000000;
  box-shadow: var(--shadow-soft);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.25), transparent 28%),
    rgba(0, 0, 0, 0.58);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #92400e;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.player-overlay strong {
  font-size: 26px;
}

.player-overlay em {
  font-style: normal;
  color: #fde68a;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  margin: 0;
  color: #fde68a;
  font-size: 14px;
}

.detail-content {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.detail-content section {
  padding: 28px;
  border: 1px solid #fde68a;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-content h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

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

.info-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed #fed7aa;
}

.info-list dt {
  color: #92400e;
  font-weight: 900;
}

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

.site-footer {
  margin-top: 20px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-grid h2,
.footer-grid h3 {
  color: #ffffff;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #fbbf24;
}

.copyright {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

  .advanced-filters {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 780px) {
  .top-shell {
    min-height: 64px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  body.menu-open .mobile-panel {
    display: grid;
  }

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

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

  .hero-arrow {
    display: none;
  }

  .search-band,
  .large-search,
  .two-column-section,
  .category-overview-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .amber-section,
  .page-hero,
  .detail-hero,
  .filter-panel {
    padding: 22px;
  }

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

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

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

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

  .advanced-filters,
  .filter-row {
    grid-template-columns: 1fr;
  }

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