:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --accent: #f97316;
  --danger: #ef4444;
  --line: #f3e8d2;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(251, 191, 36, 0.26);
  box-shadow: 0 8px 26px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, 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: 800;
  color: var(--brand-dark);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

.brand-name {
  font-size: 22px;
  letter-spacing: -0.02em;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--brand-soft);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand-dark);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

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

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

.mobile-link:hover,
.mobile-link.active {
  background: var(--surface-soft);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s ease, transform 1.2s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 90px 0 168px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #fbbf24;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.hero h2 {
  margin: 18px 0 0;
  color: #fde68a;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
}

.hero-summary {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.card-tags,
.tag-cloud,
.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 24px 0 0;
}

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

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(14px);
}

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

.primary-button,
.ghost-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button,
.small-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 16px 35px rgba(217, 119, 6, 0.32);
}

.primary-button {
  min-width: 136px;
  padding: 14px 24px;
}

.ghost-button {
  min-width: 136px;
  padding: 13px 23px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover {
  transform: translateY(-2px);
}

.hero-overlay-panel {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.hero-search,
.filter-row {
  display: flex;
  gap: 10px;
}

.hero-search input,
.filter-row input,
.filter-row select {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search input {
  padding: 13px 16px;
}

.hero-search button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  cursor: pointer;
}

.hero-chip-row,
.category-strip,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chip-row a {
  color: #ffffff;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-dots {
  display: inline-flex;
  gap: 9px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: #fbbf24;
}

.section-block,
.feature-band,
.detail-content,
.ranking-section,
.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-block {
  padding: 70px 0;
}

.section-block.warm {
  padding: 70px 24px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.18);
}

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

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

.section-heading a {
  color: var(--brand);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 119, 6, 0.38);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fdba74);
}

.movie-card.compact .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7));
  opacity: 0.86;
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.92);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  gap: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.card-body h3 {
  margin: 8px 0 8px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.card-body h3 a:hover {
  color: var(--brand);
}

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

.card-tags span,
.tag-cloud span,
.detail-meta span,
.ranking-meta span {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.5fr;
  gap: 30px;
  padding: 44px;
  border-radius: 34px;
  color: #ffffff;
  background: radial-gradient(circle at left top, rgba(253, 186, 116, 0.55), transparent 34%), linear-gradient(135deg, #78350f, #c2410c 52%, #f59e0b);
  box-shadow: var(--shadow);
}

.feature-band h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 900;
}

.feature-band p {
  color: rgba(255, 255, 255, 0.82);
}

.category-strip a {
  flex: 1 1 220px;
  padding: 18px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.category-strip strong,
.category-strip span {
  display: block;
}

.category-strip strong {
  margin-bottom: 6px;
  font-size: 19px;
}

.category-strip span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.page-hero {
  padding: 86px 16px 76px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #78350f, #d97706 54%, #fb923c);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 auto 16px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.page-hero .eyebrow {
  color: #fde68a;
}

.soft-hero {
  background: radial-gradient(circle at center top, rgba(254, 243, 199, 0.34), transparent 36%), linear-gradient(135deg, #78350f, #b45309);
}

.search-hero {
  background: linear-gradient(135deg, #7c2d12, #ea580c);
}

.ranking-hero {
  background: radial-gradient(circle at left top, rgba(239, 68, 68, 0.38), transparent 40%), linear-gradient(135deg, #431407, #b45309 60%, #ef4444);
}

.category-hero {
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

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

.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  padding: 24px;
  overflow: hidden;
  color: #ffffff;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(120, 53, 15, 0.2);
}

.category-card span {
  font-size: 26px;
  font-weight: 900;
}

.category-card strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
}

.filter-panel {
  margin-top: 34px;
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.filter-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.5fr));
}

.filter-row input,
.filter-row select {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
}

.filter-row input:focus,
.filter-row select:focus,
.hero-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.empty-state {
  display: none;
  padding: 42px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(217, 119, 6, 0.3);
  border-radius: 24px;
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

.ranking-section {
  padding: 42px 0 80px;
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 118px 56px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.07);
}

.ranking-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: var(--brand-soft);
}

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

.ranking-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.ranking-info p {
  margin: 0 0 10px;
  color: var(--muted);
}

.small-button {
  min-width: 82px;
  min-height: 40px;
  padding: 0 16px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.detail-layout {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.25fr) minmax(300px, 0.9fr);
  gap: 34px;
  align-items: center;
  padding: 72px 0;
}

.watch-player {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
}

.watch-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.watch-player.playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.36);
}

.play-overlay strong {
  font-size: 18px;
  letter-spacing: 0.06em;
}

.detail-copy {
  max-width: 520px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fde68a;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.detail-meta span,
.tag-cloud span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag-cloud {
  margin-top: 18px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 24px;
  padding: 62px 0 10px;
}

.story-card {
  padding: 30px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
}

.story-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 900;
}

.story-card p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 16px;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.amber-card {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.site-footer {
  margin-top: 40px;
  padding: 54px 0 28px;
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  border-top: 1px solid rgba(251, 191, 36, 0.28);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 22px;
}

.site-footer p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.footer-links a {
  color: #6b7280;
  font-size: 14px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  color: #9a3412;
  border-top: 1px solid rgba(217, 119, 6, 0.18);
  font-size: 14px;
}

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

  .menu-toggle {
    display: inline-block;
  }

  .hero-overlay-panel,
  .feature-band,
  .detail-layout,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-overlay-panel {
    align-items: stretch;
  }

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

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

  .ranking-row {
    grid-template-columns: 96px 44px 1fr;
  }

  .ranking-row .small-button {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    width: min(100% - 20px, 1180px);
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    min-height: 760px;
    padding: 70px 0 250px;
  }

  .hero-actions,
  .hero-search,
  .filter-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-overlay-panel {
    bottom: 18px;
    padding: 14px;
  }

  .section-block,
  .section-block.warm {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-block.warm,
  .feature-band {
    border-radius: 24px;
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .page-hero {
    padding-top: 64px;
    padding-bottom: 58px;
  }

  .ranking-row {
    grid-template-columns: 86px 1fr;
  }

  .ranking-index {
    position: absolute;
    margin: 10px;
  }

  .ranking-info,
  .ranking-row .small-button {
    grid-column: 2;
  }

  .detail-layout {
    min-height: 0;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .story-card {
    padding: 22px;
  }
}
