/* Static movie site styles built from the uploaded amber-gradient, card-based movie layout. */
:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --red-600: #dc2626;
  --teal-600: #0d9488;
  --cyan-600: #0891b2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --black: #020617;
  --white: #ffffff;
  --shadow-soft: 0 14px 38px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 22px 60px rgba(15, 23, 42, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500), var(--amber-600));
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.25);
}

.header-main {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand {
  font-size: clamp(20px, 3vw, 27px);
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--amber-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

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

.nav-link {
  position: relative;
  font-weight: 600;
  opacity: 0.94;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-100);
  opacity: 1;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--white);
}

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

.header-search input,
.mobile-panel input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  outline: none;
}

.header-search input,
.mobile-panel input {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  padding: 10px 16px;
  backdrop-filter: blur(14px);
}

.header-search input::placeholder,
.mobile-panel input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.mobile-panel button,
.btn-primary,
.btn-secondary,
.search-panel button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-panel button {
  padding: 10px 16px;
  color: var(--amber-600);
  background: var(--white);
}

.header-search button:hover,
.mobile-panel button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.search-panel button:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  background: rgba(146, 64, 14, 0.28);
  backdrop-filter: blur(12px);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.category-strip {
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(14px);
}

.strip-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 11px 0;
  scrollbar-width: none;
}

.strip-scroll::-webkit-scrollbar {
  display: none;
}

.strip-scroll a {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.92;
}

.strip-scroll a:hover {
  color: var(--amber-100);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600), var(--red-600));
}

.hero-slider {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  isolation: isolate;
  background-image: linear-gradient(90deg, rgba(7, 10, 19, 0.86), rgba(35, 18, 3, 0.60), rgba(0, 0, 0, 0.42)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  display: flex;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.45;
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  color: var(--white);
  padding: 96px 0 84px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  color: var(--amber-100);
  font-size: clamp(23px, 3.4vw, 42px);
  letter-spacing: -0.02em;
}

.hero p {
  max-width: 710px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 23px);
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
}

.btn-primary {
  color: var(--amber-600);
  background: var(--white);
  box-shadow: 0 18px 35px rgba(255, 255, 255, 0.18);
}

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

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

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

.hero-dot.is-active {
  background: var(--white);
}

.section {
  padding: 56px 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.15;
}

.section-title::before {
  content: "";
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.section-desc {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--gray-600);
}

.link-more {
  color: var(--amber-600);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card-link {
  display: grid;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.feature-grid .poster-frame {
  aspect-ratio: 16 / 10;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.duration {
  right: 10px;
  top: 10px;
  background: rgba(0, 0, 0, 0.68);
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: var(--amber-600);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card p {
  display: -webkit-box;
  min-height: 43px;
  margin: 0;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-meta,
.movie-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
}

.movie-card-foot span:first-child {
  color: var(--amber-600);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 214px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500), var(--teal-600));
  box-shadow: var(--shadow-soft);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, var(--teal-600), var(--cyan-600), var(--amber-500));
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #7c3aed, var(--orange-500), var(--red-600));
}

.category-card a {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  padding: 24px;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.category-count {
  align-self: end;
  margin-top: 28px;
  font-weight: 800;
}

.search-panel,
.page-hero,
.info-card,
.detail-card,
.review-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.page-hero {
  margin: 34px auto 0;
  padding: 36px;
  background: linear-gradient(135deg, #0f172a, #7c2d12 58%, #d97706);
  color: var(--white);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 22px;
}

.search-panel input,
.filter-bar input,
.filter-bar select {
  padding: 12px 16px;
  color: var(--gray-900);
  border-color: var(--gray-200);
  background: var(--white);
}

.search-panel button {
  padding: 0 24px;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
}

.result-count {
  color: var(--gray-600);
  font-weight: 700;
}

.ranking-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 28px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 46px 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
}

.ranking-number {
  color: var(--amber-600);
  font-size: 24px;
  font-weight: 900;
}

.ranking-item img {
  width: 92px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-text strong {
  display: block;
  margin-bottom: 4px;
}

.ranking-text small {
  color: var(--gray-500);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-600);
  font-weight: 700;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--black);
  box-shadow: var(--shadow-strong);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
  cursor: pointer;
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: var(--amber-600);
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  font-size: 14px;
}

.detail-card,
.review-card,
.info-card {
  padding: 26px;
}

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.meta-row span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.meta-row span {
  color: var(--gray-700);
  background: var(--gray-100);
}

.tag {
  color: var(--amber-600);
  background: var(--amber-50);
}

.detail-card h2,
.review-card h2,
.info-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-card p,
.review-card p,
.info-card p {
  margin: 0 0 14px;
  color: var(--gray-700);
}

.side-card {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 12px;
  align-self: start;
}

.side-card .ranking-item {
  grid-template-columns: 84px 1fr;
}

.side-card .ranking-number {
  display: none;
}

.side-card .ranking-item img {
  width: 84px;
  height: 58px;
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 52px 0 36px;
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 17px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--amber-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

.notice-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.sitemap-columns {
  columns: 4 220px;
  column-gap: 28px;
}

.sitemap-columns a {
  display: block;
  break-inside: avoid;
  padding: 5px 0;
  color: var(--gray-700);
}

.sitemap-columns a:hover {
  color: var(--amber-600);
}

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

@media (max-width: 1024px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

  .feature-grid,
  .category-overview-grid,
  .ranking-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .side-card {
    position: static;
  }
}

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

  .brand {
    font-size: 20px;
  }

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

  .hero-content {
    padding: 74px 0 76px;
  }

  .section {
    padding: 38px 0;
  }

  .section-header {
    display: grid;
    gap: 10px;
  }

  .movie-grid,
  .feature-grid,
  .category-overview-grid,
  .ranking-layout,
  .detail-layout,
  .footer-grid,
  .filter-bar,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 16px;
  }

  .movie-card h3 {
    min-height: auto;
  }

  .ranking-item {
    grid-template-columns: 38px 76px 1fr;
  }

  .ranking-item img {
    width: 76px;
    height: 52px;
  }

  .page-hero,
  .detail-card,
  .review-card,
  .info-card {
    padding: 22px;
  }
}

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

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

  .movie-card p,
  .movie-card-foot span:last-child {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
