/* Static movie site stylesheet */
:root {
  --primary-50: #fef3e2;
  --primary-100: #fde3bb;
  --primary-500: #d89410;
  --primary-600: #b6790d;
  --primary-700: #945f0a;
  --accent-50: #fff5ed;
  --accent-500: #f95c16;
  --accent-600: #ea420c;
  --secondary-50: #f5f7fa;
  --secondary-500: #5f729c;
  --secondary-800: #353d59;
  --secondary-900: #2f344c;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 18px 45px rgba(47, 52, 76, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 148, 16, 0.14), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 10px 24px rgba(249, 92, 22, 0.28);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--secondary-50);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--secondary-900);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-nav .nav-link {
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-nav .nav-link:hover {
  background: var(--primary-50);
}

.hero {
  position: relative;
  min-height: 640px;
  padding: 84px 0 58px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 15% 20%, rgba(249, 92, 22, 0.32), transparent 30rem),
    radial-gradient(circle at 82% 30%, rgba(216, 148, 16, 0.22), transparent 32rem);
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(47, 52, 76, 0.95), rgba(47, 52, 76, 0.72) 48%, rgba(47, 52, 76, 0.42)),
    linear-gradient(0deg, rgba(47, 52, 76, 0.88), rgba(47, 52, 76, 0.05));
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 46px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd08a;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero h1 span {
  background: linear-gradient(90deg, #fff0c4, #ff8c45);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 14px 32px rgba(249, 92, 22, 0.30);
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.stat-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
}

.stat-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-panel-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hero-panel-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 62%);
}

.hero-panel-content {
  padding: 24px;
}

.hero-panel-content h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.hero-panel-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(90deg, #ffe4a6, #ff8c45);
}

.quick-search {
  width: min(1180px, calc(100% - 32px));
  margin: -30px auto 38px;
  position: relative;
  z-index: 4;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-form {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(130px, 0.5fr)) auto;
  gap: 12px;
}

.search-form input,
.search-form select,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--secondary-900);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  outline: none;
}

.search-form input:focus,
.search-form select:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(216, 148, 16, 0.12);
}

.page-hero {
  padding: 70px 0 44px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 5%, rgba(249, 92, 22, 0.32), transparent 30rem),
    linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.page-hero-inner,
.content-section,
.filter-section,
.detail-layout,
.player-shell,
.category-listing,
.archive-intro {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.page-hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.8;
}

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

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

.section-heading h2 {
  margin: 0;
  color: var(--secondary-900);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 10px 0 0;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  color: var(--primary-600);
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 38px rgba(47, 52, 76, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 148, 16, 0.45);
  box-shadow: 0 20px 52px rgba(47, 52, 76, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-800), var(--secondary-900));
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.02) 58%);
}

.score-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.score-badge {
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.play-badge {
  right: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
}

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

.movie-card h3 {
  margin: 0;
  color: var(--secondary-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-desc {
  min-height: 48px;
  margin: 10px 0 0;
  color: #4b5563;
  line-height: 1.6;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag-row span,
.detail-tag,
.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--primary-700);
  border-radius: 999px;
  background: var(--primary-50);
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 126px;
  padding: 20px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(47, 52, 76, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 92, 22, 0.36);
}

.category-card strong {
  display: block;
  color: var(--secondary-900);
  font-size: 22px;
}

.category-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.filter-section {
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr repeat(4, minmax(120px, 0.35fr));
  gap: 12px;
}

.result-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(47, 52, 76, 0.07);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  width: 96px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--secondary-800);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 8px;
  color: var(--secondary-900);
  font-size: 20px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rank-score {
  color: var(--primary-600);
  font-size: 22px;
  font-weight: 900;
}

.player-area {
  padding: 36px 0 0;
  background: #111827;
}

.player-shell {
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(47, 52, 76, 0.42), rgba(0, 0, 0, 0.72));
}

.player-cover.hidden {
  display: none;
}

.player-cover button {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 20px 50px rgba(249, 92, 22, 0.45);
  cursor: pointer;
}

.player-cover button::before {
  content: "";
  margin-left: 7px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #ffffff;
}

.player-message {
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.72);
  background: #0f172a;
  font-size: 14px;
}

.detail-hero {
  padding: 58px 0;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(47, 52, 76, 0.94), rgba(47, 52, 76, 0.76)),
    var(--detail-bg, linear-gradient(135deg, var(--secondary-900), var(--secondary-800)));
  background-size: cover;
  background-position: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

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

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.detail-lead {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.85;
}

.text-panels {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto;
}

.info-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(47, 52, 76, 0.08);
}

.info-panel h2,
.info-panel h3 {
  margin: 0 0 14px;
  color: var(--secondary-900);
}

.info-panel p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.9;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  color: var(--secondary-900);
  font-weight: 800;
  text-align: right;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 0;
}

.pagination a,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  font-weight: 800;
}

.pagination span {
  color: #ffffff;
  border-color: var(--primary-500);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
}

.site-footer {
  margin-top: 50px;
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.74);
  background: var(--secondary-900);
}

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

.footer-logo {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 560px;
  margin: 0;
  line-height: 1.8;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.empty-state {
  display: none;
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

@media (max-width: 1024px) {
  .hero-inner,
  .detail-layout,
  .text-panels {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 560px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-stats,
  .movie-grid,
  .category-cloud,
  .search-form,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .quick-search {
    margin-top: -18px;
  }

  .section-heading,
  .footer-inner {
    display: block;
  }

  .section-more {
    display: inline-block;
    margin-top: 12px;
  }

  .rank-item {
    grid-template-columns: 52px 76px 1fr;
  }

  .rank-score {
    grid-column: 3;
    font-size: 18px;
  }

  .rank-thumb {
    width: 76px;
  }

  .detail-poster {
    max-width: 220px;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 24px;
  }
}
